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 virtual document cache is not being invalidated after the with keyword is processed. As a result, if the same rule is evaluated twice (once using with and again without using with) the second rule evaluation will return the result of the first. E.g.,
package x
p { input.x = 1 }
q { p with input as {"x": 1} }
Query: data.x
If OPA evaluates p after q the cache will not have been invalidated and the result will be {p: true, q: true}.
The text was updated successfully, but these errors were encountered:
The virtual document cache was not being invalidated. As a result, if
the same rule was evaluated twice where the first expression included a
with modifier, the result on the second evaluation may be incorrect.
Fixesopen-policy-agent#736
Signed-off-by: Torin Sandall <torinsandall@gmail.com>
The virtual document cache was not being invalidated. As a result, if
the same rule was evaluated twice where the first expression included a
with modifier, the result on the second evaluation may be incorrect.
Fixes#736
Signed-off-by: Torin Sandall <torinsandall@gmail.com>
The virtual document cache is not being invalidated after the
with
keyword is processed. As a result, if the same rule is evaluated twice (once usingwith
and again without usingwith
) the second rule evaluation will return the result of the first. E.g.,Query:
data.x
If OPA evaluates
p
afterq
the cache will not have been invalidated and the result will be{p: true, q: true}
.The text was updated successfully, but these errors were encountered: