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

Use import rego.v1 #471

Merged
merged 1 commit into from
Nov 16, 2023
Merged

Use import rego.v1 #471

merged 1 commit into from
Nov 16, 2023

Conversation

anderseknert
Copy link
Member

Note that for now, this change only affects what we use internally in Regal, and not what we enforce.

This will be done too in due time, but given that rego_v1_import isn't a capability in any released version of OPA yet, we should hold off on recommending import rego.v1 until there is, and the feature works without known bugs, which will be from the next release.

@anderseknert
Copy link
Member Author

Build failing due to that issue where OPA v0.58.0 thinks default rules should have an if... which is a good reminder why we shouldn't recommend this just yet. We'll use edge for the OPA version in CI in the meantime.

@anderseknert anderseknert force-pushed the use-rego-v1 branch 2 times, most recently from 59ce7b3 to 7c3fb0f Compare November 15, 2023 14:35
@anderseknert
Copy link
Member Author

Some test to be fixed, but I think I may hold off on this one until the release after OPA v0.59.0. I'm feeling uneasy about having a released Regal version depend on capabilities that aren't in a released version of OPA yet, and since the default capabilities of Regal is gotten from the OPA version we depend on, this could potentially be problematic. I'll think more about it.

Note that for now, this change only affects what
we use internally in Regal, and not what we enforce.

This will be done too in due time, but given that
`rego_v1_import` isn't a capability in any released
version of OPA yet, we should hold off on recommending
`import rego.v1` until there is, and the feature works
without known bugs, which will be from the next release.

Signed-off-by: Anders Eknert <[email protected]>
@anderseknert anderseknert merged commit 5b3855f into main Nov 16, 2023
2 checks passed
@anderseknert anderseknert deleted the use-rego-v1 branch November 16, 2023 08:09
@anderseknert
Copy link
Member Author

Having thought more about it, let's not hold off on the merge here as this will likely be hairy to try and keep up to date for the next two weeks. Since we'll likely want to push a release before OPA v0.59.0, we should however make sure that we set the capabilities for that release to v0.58.0 and not the development commit Regal currently depends on.

srenatus pushed a commit to srenatus/regal that referenced this pull request Oct 1, 2024
Note that for now, this change only affects what
we use internally in Regal, and not what we enforce.

This will be done too in due time, but given that
`rego_v1_import` isn't a capability in any released
version of OPA yet, we should hold off on recommending
`import rego.v1` until there is, and the feature works
without known bugs, which will be from the next release.

Signed-off-by: Anders Eknert <[email protected]>
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.

2 participants