chore(deps): update dependency open-policy-agent/opa to v0.40.0 (opa/dockerfile) (master) #417
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.39.0
->0.40.0
Release Notes
open-policy-agent/opa
v0.40.0
Compare Source
This release contains a number of fixes and enhancements.
Metadata introspection
The rich metadata added in the v0.38.0 release can now be introspected
from the policies themselves!
METADATA
title: Edits by owner only
description: |
Only the owner is allowed to edit their data.
This snippet will evaluate to
Both the rule's metadata can be accessed, via
rego.metadata.rule()
, and theentire chain of metadata attached to the rule via the various scopes that different
metadata annotations can have, via
rego.metadata.chain()
.All the details can be found in the documentation of these new built-in functions.
Function mocking
It is now possible to mock functions in tests! Both built-in and non-built-in
functions can be mocked:
For further information about policy testing with data and function mock, see the Policy Testing docs
All details about
with
can be found in its Policy Language section.Assignments with
:=
Remaining restrictions around the use of
:=
in rules and functions have been lifted (#4555).These constructs are now valid:
...
...
...
In the wake of this, rules may now be "redeclared", i.e. you can use
:=
for more than one rule body:body 1
body 2
This was forbidden before, but didn't serve a real purpose: it would catch trivial-to-catch errors
like
But it would do no good in more difficult to debug "multiple assignment" problems like
Tooling, SDK, and Runtime
opa capabilities
: Expose capabilities through CLI, and allow using versions when passing--capabilities v0.39.0
to the various commands (#4236) authored by @IoannisMatzarisopa eval
: Don't use source locations when formatting partially evaluated output (#4609)opa inspect
: Fixing an issue where some errors encountered by the inspect command aren't properly reportedopa fmt
: Fix a bug with missing whitespace when formatting multiplewith
statements on one indented line (#4634)Experimental OCI support
When configured to do so, OPA's bundle and discovery plugins will retrieve bundles from any OCI registry.
Please see the Services Configuration section
for details.
Note that at this point, it's best considered a "feature preview". Be aware of this:
so its content may accumulate. By default, the OCI downloader will use a temporary file location.
docs, see OCI.md.
Thanks to @carabasdaniel for starting the work on this!
Rego and Topdown
net.cidr_merge
(#4596), reported by @alexhu20http.send
can now parse and cache YAML responses, analogous to JSON responsesDocumentation
every
over other constructions (#4603)Website + Ecosystem
Miscellaneous
Configuration
📅 Schedule: At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR has been generated by Renovate Bot.