-
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
OPA panics in nested use of every
#6790
Labels
Comments
anakrish
changed the title
OPA raises error in valid use of
OPA panics in nested use of Jun 4, 2024
every
every
The nesting might not be needed. |
Thank you for reporting this issue @anakrish! |
Some further information: this is a compile-time issue in the type-checker triggered when the every-domain contains a function call. package test
import rego.v1
x if {
every p in [foo(1), 2/2] {
p == 1
}
}
foo(x) := x There might be further triggers. |
johanfylling
added a commit
to johanfylling/opa
that referenced
this issue
Jun 26, 2024
Fixes: open-policy-agent#6790 Signed-off-by: Johan Fylling <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Short description
opa panics
Steps To Reproduce
The following rego:
causes OPA to panic
Expected behavior
The expected behavior is that it should successfully evaluates the policy.
OPA version: 0.65.0
The text was updated successfully, but these errors were encountered: