-
Notifications
You must be signed in to change notification settings - Fork 769
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 1.0 Preparatory Work #3681
Comments
I have shared some examples for v0/v1 duality in https://github.com/charlieegan3/v0-v1-rego-example. Posting here for future reference. |
xpost: #3577 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions. |
any news here? |
Nope, but we’re planning to get started later this week. |
https://github.com/open-policy-agent/opa/releases/tag/v1.0.0 was released on Dec 20th, 2024. |
Should we use this issue instead? #3577 |
The open-policy-agent/opa project is the process of doing the final preparations for OPA 1.0 and wanted to give you a heads up on the recommended upgrade path for projects using Rego. The plan is for the next release of OPA to be 1.0, this will introduce breaking changes to Rego.
We have some tools and resources to make the upgrade process as smooth as possible.
opa check --strict
is a good place to start, this will flag issues with imports, use of deprecated builtins, and use of now reserved keywords. I think that @anderseknert has done some of the work here in for the gatekeeper library Ensure OPA strict mode compliance gatekeeper-library#429.opa fmt --write --rego-v1 $DIR
should be the next step, this will migrate files to the new v1 syntax where possible.regal lint $DIR
finally, it’s also recommend use the Regal linter on the policy files. In particular the Bug violations are important to check.Any feedback on the process and OPA 1.0's changes generally is appreciated as you go through the process.
Below is a WIP TODO list of things I'm aware of, please feel free to add new items too.
The text was updated successfully, but these errors were encountered: