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 rewriting was not recursing into with keyword values in assignment
statements. This would typically lead to false-positive safety
errors. Also, fix assignment check to propagate errors in nested
bodies.
Fixesopen-policy-agent#1154
Signed-off-by: Torin Sandall <torinsandall@gmail.com>
Expected Behavior
Both of the following rules should be safe. They only differ in that one assigns
x :=
and the other assignsx =
Actual Behavior
First rule is safe. Second rule is unsafe:
error: compile error: 1 error occurred: t.rego:2: rego_unsafe_var_error: var q is unsafe
Steps to Reproduce the Problem
opa run
with either one of the above modules.Additional Info
The text was updated successfully, but these errors were encountered: