Skip to content
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 inspect fails on unknown Rego functions #6591

Closed
johanfylling opened this issue Feb 15, 2024 · 0 comments · Fixed by #6592
Closed

opa inspect fails on unknown Rego functions #6591

johanfylling opened this issue Feb 15, 2024 · 0 comments · Fixed by #6592
Labels

Comments

@johanfylling
Copy link
Contributor

If the inspected bundle contains a module with a reference to an unknown function (expected to be present through other means at eval-time), inspection will fail.

E.g. the following module:

package play
import data.x.y

p {
    y(1) == true
}

will fail with:

policy.rego:5: rego_unsafe_var_error: expression is unsafe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant