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

Adding regression test for edge case where partial rule hides recursion cycle #6318

Conversation

johanfylling
Copy link
Contributor

In OPA versions older than 0.56.0, a recursion cycle could be hidden to the compiler if partial object rules were "properly" organized. This issue was fixed in OPA 0.56.0 without being reported, this PR adds a regression test.

…on cycle

In OPA versions older than 0.56.0, a recursion cycle could be hidden to the compiler if partial object rules were "properly" organized.
This issue was fixed in OPA 0.56.0 without being reported, this PR adds a regression test.

Signed-off-by: Johan Fylling <johan.dev@fylling.se>
Copy link
Member

@anderseknert anderseknert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Don't forget to link the PR to the issue, or close it manually once merged.

@johanfylling
Copy link
Contributor Author

johanfylling commented Oct 16, 2023

Don't forget to link the PR to the issue, or close it manually once merged.

There is no issue to close. We're just adding a test for something we inadvertently fixed a few releases ago. I don't think this is something to advertise in the changelog, and it'd be weird to resolve an issue solved in another release ..

Perhaps the proper course of action is to make a CVE for OPA <= 0.55.0, as discussed here.

@anderseknert
Copy link
Member

I meant that issue should be closed with this getting merged. Given what is required to trigger this, I don't think a CVE is warranted, as I later talked about in that same thread :)

@johanfylling johanfylling merged commit 83c6744 into open-policy-agent:main Oct 16, 2023
24 checks passed
@johanfylling johanfylling deleted the test/partial_rule_hides_recursion_cycle branch October 16, 2023 11:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants