You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The PUT v1/data handler calls checkPathScope which in turn uses strings.HasPrefix to check for conflicts with bundle roots: https://github.com/open-policy-agent/opa/blob/master/server/server.go#L1943. This leads to false-positive errors. For example, if the bundle roots are ["foo"] and the caller sends PUT v1/data/fo the request will be rejected because fo is a prefix of foo.
The text was updated successfully, but these errors were encountered:
Allow writing to /data/foo when /data/foobar is a bundle root.
Fixesopen-policy-agent#2868
Signed-off-by: Anders Eknert <anders@eknert.com>
Signed-off-by: Ansu Varghese <avarghese@us.ibm.com>
The PUT v1/data handler calls
checkPathScope
which in turn usesstrings.HasPrefix
to check for conflicts with bundle roots: https://github.com/open-policy-agent/opa/blob/master/server/server.go#L1943. This leads to false-positive errors. For example, if the bundle roots are["foo"]
and the caller sendsPUT v1/data/fo
the request will be rejected becausefo
is a prefix offoo
.The text was updated successfully, but these errors were encountered: