-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Strict-mode shouldn't allow rule ref-heads to shadow input
and data
documents
#6291
Comments
@johanfylling it would be good if we can enforce this check as part of the |
Yes, I think we shouldn't be afraid of adding new checks/stuff to Some other things that we should gate behind the
There is probably some point in time leading up to the |
when: * strict-mode is enabled * `rego.v1` is imported Fixes: open-policy-agent#6291 Signed-off-by: Johan Fylling <[email protected]>
when: * strict-mode is enabled * `rego.v1` is imported Fixes: #6291 Signed-off-by: Johan Fylling <[email protected]>
Currently, when strict-mode is enabled, rules like
data.a.b := 1
andinput.a.b := 1
doesn't generate errors.Today, the
input
case will cause a complete replacement of the input document.The
data
case doesn't produce error or output (!).The text was updated successfully, but these errors were encountered: