Update openpolicyagent/opa Docker tag to v1.17.0 (main)#1708
Open
renovate[bot] wants to merge 1 commit into
Open
Update openpolicyagent/opa Docker tag to v1.17.0 (main)#1708renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1708 +/- ##
=======================================
Coverage 85.00% 85.00%
=======================================
Files 104 104
Lines 13579 13579
=======================================
Hits 11543 11543
Misses 1522 1522
Partials 514 514 Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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:
1.15.2→1.17.0Warning
Some dependencies could not be looked up. Check the Dependency Dashboard for more information.
Release Notes
open-policy-agent/opa (openpolicyagent/opa)
v1.17.0Compare Source
This release contains a mix of new features, performance improvements, and bugfixes. Notably:
future.keywords.notimport that adds improved semantics to thenotkeyword.Improved Negation Semantics (#8387)
This OPA release introduces a new
future.keywords.notimportthat fixes a long-standing semantic issue with negation in Rego.
Without the import, the compiler expands a negated composite expression like
not f(g(input.x))into a series of sub-expressions evaluated before thenot:If any sub-expression fails — for example,
input.xis undefined orgproduces an undefined result — the entire rule fails rather than the
notsucceeding.This is unintuitive: the user's intent is "the condition does not hold," but
an undefined intermediate value causes a silent failure instead of the expected
notresult.With
import future.keywords.not, composite-expression negation wraps the full compilerexpansion in an implicit body:
Now, if any sub-expression is undefined or fails, the body is unsatisfiable
and the
notexpression succeeds; matching the intuition that "the condition does not hold."Authored by @johanfylling
Rule Labels in Decision Logs (#2089)
Rule annotations now support a
labelsfield. Labels from all successfully evaluatedrules are collected and included in each decision log entry as a top-level
rule_labelsarray. Each element is the merged label map for one successfully evaluated rule, with
inner-scope-wins precedence across the rule's annotation chain
(
subpackages<package<document<rule). Merged maps are deduplicatedacross rules so that identical label sets collapse to a single entry.
The resulting decision log entry will contain:
{"rule_labels": [{"service": "authz", "severity": "low", "team": "platform"}]}Note how
severity: infofrom the package scope is overridden byseverity: lowfromthe rule scope. Queries against
rule_labelscan now rely on each entry carrying thefull label context for a single rule, rather than one entry per contributing scope.
Both the runtime and the Go SDK now process metadata annotations by default.
Authored by @srenatus, reported by @tsandall
Runtime, SDK, Tooling
$refinallOfin JSON schemas (#6523) authored by @deeglaze reported by @mosiac1Compiler, Topdown and Rego
json.verify_schemaandjson.match_schemabuilt-in functions (#6089) authored by @sspaink reported by @ewout8indexfield inMakeNumberRefStmtIR statement (#6266) authored by @sspaink reported by @johanfyllingGenerateJSONfunction (#8690) authored by @anderseknertDocs, Website, Ecosystem
Miscellaneous
inmem.NewFromASTObjectand add missing string case toast.InternedValue(#8707) authored by @anderseknertgo install->go install toolto control checksums (#8646) authored by @srenatusv1.16.2Compare Source
This release updates the version of Go used to build the OPA binaries and images to 1.26.3;
addressing a number of vulnerabilities.
v1.16.1Compare Source
This is a patch release addressing a regression (#8590) in the plugin manager that may cause the service to hang on shutdown.
v1.16.0Compare Source
This release contains a mix of new features, performance improvements, and bugfixes. Notably:
uri.parseanduri.is_validbuilt-in functionsNew
uri.parseanduri.is_validbuilt-in functions (#8263)Two new built-in functions have been added:
uri.parsefor parsing a given URI, anduri.is_validfor verifying the structure of a given URI.uri.parse
Parses a URI and returns an object containing its components according to RFC 3986. Empty components are omitted.
uri.is_valid
Returns
trueif the input can be parsed as a URI,falseotherwise.Authored by @charlieegan3 reported by @anivar
Data API Request/Response Metadata (#8570)
Wrapping projects can now attach custom metadata to Data API requests and have evaluation produce response metadata.
Two distinct metadata paths are introduced:
Request metadata: parsed from extra top-level keys in the request body, made available to builtins via
BuiltinContext.RequestMetadata. Logged in the decision log underCustom["request_metadata"].Response metadata: a separate map (
BuiltinContext.ResponseMetadata) that builtins can populate during evaluation. Only included in the API response and decision log if non-empty.In vanilla OPA, no builtins write response metadata, so responses are unchanged. The request metadata map is only allocated when the request carries extra fields; the response map is one empty map per request.
To avoid conflicts with future OPA top-level keys, callers should use a namespaced key:
{"input": {...}, "com.example.opa/md": {...}}.Request with metadata:
Response (response metadata included if, for example, set by a custom builtin):
{ "decision_id": "04789f85-de5a-477b-8aa5-6d59d7742135", "result": true, "com.example.opa/response": { "snapshot_version": "v3" } }Decision log entry:
{ "custom": { "request_metadata": { "com.example.opa/metadata": { "corp-id": "acme-42" } }, "response_metadata": { "com.example.opa/response": { "snapshot_version": "v3" } } }, "decision_id": "04789f85-de5a-477b-8aa5-6d59d7742135", "input": { "user": "alice" }, "msg": "Decision Log", "path": "example/allow", "result": true }Authored by @srenatus
Runtime, SDK, Tooling
--coverage(#8438) authored by @grosserwiths in expression (#8508) authored by @anderseknerteverybody (#8558) authored by @johanfyllingopa fmtfrom formatting single attribute objects with comments (#7565) authored by @sspaink reported by @anderseknert*tls.Config(#8473) authored by @srenatus reported by @ashu2496Note: Experimental.
Compiler, Topdown and Rego
-in front of a ref (#5014) authored by @mmzzuu reported by @philipaconradtime.parse_duration_nsbuilt-in function (#2719) authored by @sspaink reported by @freeseachergraph.reachable_pathsto return all reachable paths (#5871) authored by @davidmarne-wf reported by @ericjkaounits.parse_bytesbuilt-in function to prevent timeout bypass (#8326) authored by @isaiahvita reported by @anderseknertDocs, Website, Ecosystem
countandsumbuilt-in functions (#8566) authored by @alliasgher reported by @srenatusnotundefined example (#8580) authored by @menma1234Miscellaneous
print()logging (#8567) authored by @srenatusConfiguration
📅 Schedule: (UTC)
* 0-3 * * *)🚦 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.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.