OPA v0.50.0 #356
ashutosh-narkar
announced in
Announcements
OPA v0.50.0
#356
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This release contains a mix of new features, bugfixes, security fixes, optimizations and build updates related to
OPA's published images.
New Built-in Functions: JSON Schema Verification and Validation
These new built-in functions add functionality to verify and validate JSON Schema (#5486) (co-authored by @jkulvich and @johanfylling).
json.verify_schema
: Checks that the input is a valid JSON schema objectjson.match_schema
: Checks that the document matches the JSON schemaSee the documentation for all details.
Annotations scoped to
package
carries across modulespackage
scoped schema annotations are now applied across modules instead of only local to the module whereit's declared (#5251) (authored by @johanfylling). This change may cause compile-time errors and behavioural changes to
type checking when the
schemas
annotation is used, and to rules calling therego.metadata.chain()
built-in function:rego_type_error: package annotation redeclared
error if two or more of these are annotated with the
package
scope.package
scope, theschemas
annotation will be applied to type checking also for rules declared inanother file than the annotation declaration, as long as the package is the same.
rego.metadata.chain()
built-in function will now contain an entry for thepackage even if the annotations are declared in another file, if the scope is
package
.Remote bundle URL shorthand for
run
commandTo load a remote bundle using
opa run
, theset
directive can be provided multiple times as shown below:The following command can be used as a shorthand to easily start OPA with a remote bundle (#5674) (authored by @anderseknert):
Performance Improvements for
json.patch
Built-in FunctionPerformance improvements in
json.patch
were achieved with the introduction of a newEditTree
data structure,which is built for applying in-place modifications to an
ast.Term
, and can render the final result of all edits efficientlyby applying all patches in a JSON-Patch sequence rapidly, and then collapsing all edits at the end with minimal wasted
ast.Term
copying (authored by @philipaconrad).For more details and benchmarks refer #5494 and #5390.
Surface decision log errors via status API
Errors encountered during decision log uploads will now be surfaced via the Status API in addition to being logged. This
functionality should give users greater visibility into any issues OPA may face while processing, uploading logs etc (#5637) (authored by @ashutosh-narkar).
See the documentation for more details.
OPA Published Images Update
All published OPA images now run with a non-root uid/gid. The
uid:gid
is set to1000:1000
for all images. As a resultthere is no longer a need for the
-rootless
image variant and hence it will be not be published as part of future releases.This change is in line with container security best practices. OPA can still be run with root privileges by explicitly setting the user,
either with the
--user
argument fordocker run
, or by specifying thesecurityContext
in the Kubernetes Pod specification.Runtime, Tooling, SDK
nil
data (#5703) authored by @anderseknert/metrics/alloc_bytes
to show OPA's memory utilization (#5715) authored by @anderseknertpresented as part of the TLS connection. This new data will be available under the key
client_certificates
(#5538) authored by @charlieegan3Topdown and Rego
strict
mode check to include unused arguments (#5602) authored by @boranx. This change may causecompile-time errors for policies that have unused arguments in the scope when the
strict
mode is enabled. Thesevariables could be replaced with
_
(wildcard) or get cleaned up if they are not intended to be used in the body of the functions.schemas
annotations even if--schema
flag isn't used (#5506) authored by @johanfyllingallow_net
capability when fetching remote schemas (#5670) authored by @johanfyllingrepresentation. This location information can be used by tools that work with the OPA AST (#3143) authored by @charlieegan3
Docs
Website + Ecosystem
Ecosystem:
Website:
Miscellaneous
👉 Release page
Beta Was this translation helpful? Give feedback.
All reactions