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
In the usage scenario I'm using OPA as a library and the returned output looks like this:
panic: Unable deactivate bundle: 3 errors occurred:
│ hello.rego:12: rego_parse_error: `if` keyword is required before rule body
│ hello.rego:16: rego_parse_error: `if` keyword is required before rule body
│ hello.rego:20: rego_parse_error: `if` keyword is required before rule body
Steps To Reproduce ( when using OPA as a library )
Build a policy image or bundle tarball with the above mentioned rego file and manifest
Spin up the bundle
Slightly modify the bundle by adding another rule
Call the bundle.Reconfigure method and on the bundle.Deactivate method it should throw the above mentioned panic
Expected behavior
If using rego v0 it should behave as OPA v0.70.0 did and during the bundle.Deactivation process take into consideration the specified rego version not use rego v1 with a v0 bundle
The text was updated successfully, but these errors were encountered:
…dule rego-version is missing in bundle manifest
* Passing runtime rego-version to deactivation options
* Preferring to pull rego-version from parsed modules if present
Fixes: open-policy-agent#7297
Signed-off-by: Johan Fylling <[email protected]>
Short description
OPA seems to throw a panic when running bundle.Deactivate on a rego v0 bundle tarball.
Examples:
Steps To Reproduce ( when using OPA as a library )
Expected behavior
If using rego v0 it should behave as OPA v0.70.0 did and during the bundle.Deactivation process take into consideration the specified rego version not use rego v1 with a v0 bundle
The text was updated successfully, but these errors were encountered: