OPA v0.59.0 #526
charlieegan3
announced in
Announcements
OPA v0.59.0
#526
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
View Release in OPA Repo
This release adds tooling to help prepare existing policies for the upcoming OPA 1.0 release.
It also contains a mix of improvements, bugfixes and security fixes for third-party libraries.
Rego v1
The upcoming release of OPA 1.0, which will be released at a future date, will introduce breaking changes to the Rego language. Most notably:
import future.keywords
into a module before use will be part of the Rego language by default, without the need to first import them.if
keyword will be required before the body of a rule.contains
keyword will be required when declaring a multi-value rule (partial set rule).This current release (
0.59.0
) introduces a new--rego-v1
flag to theopa fmt
andopa check
commands to facilitate the transition of existing policies to be compatible with the 1.0 syntax.When used with
opa fmt
, the--rego-v1
flag will format the module(s) according to the new Rego syntax in OPA 1.0.Formatted modules are compatible with both the current version of OPA and 1.0.
Modules using deprecated built-ins will terminate formatting with an error. Future versions of OPA will support rewriting applicable function calls with equivalent Rego compatible with 1.0.
When used with
opa check
, the--rego-v1
flag will check that the modules are compatible with both the current version of OPA and 1.0.Relevant Changes
--rego-v1
flag tocheck
cmd (#6429) authored by @johanfyllingopa fmt
(#6297) authored by @johanfyllingrego.v1
import (#6375) (authored by @johanfylling)rego.v1
) (#6356) authored by @ashutosh-narkarrego.v1
import (#6247) introduced in OPA 0.58.0, authored by @johanfyllingRuntime, Tooling, SDK
rule_head_refs
capabilities feature flag (#6334) authored by @johanfyllingTopdown and Rego
strings.render_template
to render templated strings (#6371) authored by @RDVasavadaMiscellaneous
Beta Was this translation helpful? Give feedback.
All reactions