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
johanfylling added a commit to johanfylling/opa that referenced this issue Feb 15, 2024
…hen inspected

Fixes: open-policy-agent#6591
Signed-off-by: Johan Fylling <johan.dev@fylling.se>
ashutosh-narkar pushed a commit that referenced this issue Feb 15, 2024
…hen inspected

Fixes: #6591
Signed-off-by: Johan Fylling <johan.dev@fylling.se>
tsidebottom pushed a commit to tsidebottom/opa- that referenced this issue Apr 17, 2024
…hen inspected

Fixes: open-policy-agent#6591
Signed-off-by: Johan Fylling <johan.dev@fylling.se>
Signed-off-by: Thomas Sidebottom <thomas.sidebottom@va.gov>
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