Update dependency open-policy-agent/opa to v1.14.0#472
Open
renovate[bot] wants to merge 1 commit intomainfrom
Open
Update dependency open-policy-agent/opa to v1.14.0#472renovate[bot] wants to merge 1 commit intomainfrom
renovate[bot] wants to merge 1 commit intomainfrom
Conversation
be5d10a to
5fefff1
Compare
5fefff1 to
450534b
Compare
450534b to
944a589
Compare
944a589 to
52bdc16
Compare
52bdc16 to
2158bbe
Compare
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:
v1.11.0→v1.14.0Release Notes
open-policy-agent/opa (open-policy-agent/opa)
v1.14.0Compare Source
This release contains a mix of new features, performance improvements, and bugfixes. Notably:
x in {...}expressions--h2cwith unix domain socket foropa runImproved rule indexing of variable assignments and
x in {...}expressions (#1841)With this change, the rule indexer will index expressions like:
On lookup, the rule body will only be returned if
input.roleis either one of"admin"or"user".The reverse case is also indexed:
in which the searched collection is
unknown.Authored by @srenatus reported by @nischalsheth
Runtime, SDK, Tooling
--h2cwith unix domain socket (UDS) (#8282) authored by @srenatus reported by @theJCregisteredTriggers(#8363) reported and authored by @szuecsResultValue[T]()helper method (#8320) authored by @srenatusCompiler, Topdown and Rego
ast: Add index else == nil test, fix it (#8348) authored by @srenatus
ast: Add scaffolding to introspect and skip compiler stages (#8304) (authored by @srenatus)
ast: Ensure term values implement
ast.StringLengther(#8374) authored by @charlieegan3ast: Fix double-fix for refs["with-a"].dash as package (#8286) authored by @srenatus
ast: Optimized template-expression handling of values known to be defined (#8310) authored by @anderseknert
ast: Put rule indices into rule tree, change Values to
[]*Rule(#8298) authored by @srenatusast: Replace
trueexpr when appending to empty body (#8299) authored by @anderseknertast: Return correct location of unsafe var in object (#7935) authored by @sspaink reported by @anderseknert
ast: Use
StageIDinWithStageAfterID, also forQueryCompiler(follow-up) (#8306) authored by @srenatuscompile: Add StringLength to lazy object (#8369) authored by @charlieegan3 reported by @robmyersrobmyers
parser: Add test to verify filename interning in Location (#8322) authored by @anderseknert
perf: Allocate less in array unification (#8351) authored by @anderseknert
perf: Various minor eval performance tweaks (#8290) authored by @anderseknert
perf:
json.patch+ interning improvements (#8289) authored by @anderseknerttopdown: Optimize bindings allocation with dynamic pre-sizing (#7266) authored by @alex60217101990
topdown: Preserve original package name with special characters in optimized builds (#8284) authored by @sspaink reported by @at50989
wasm: Updates (LLVM+tools) (#8295) authored by @srenatus
Docs, Website, Ecosystem
glob.matchbuilt-in documentation (#8252) authored by @sibasispadhi reported by @anderseknerthttp.send,regex, andglobbuilt-ins (#6730) authored by @anivar reported by @rudrakhpjson.patchtarget description (#8271) authored by @anderseknertinterface{}->anyin golang snippets (#8373) authored by @srenatusMiscellaneous
BenchmarkFunctionArgumentCountsquery (#8327) authored by @alex60217101990Applying fix for GHSA-9h8m-3fm2-qjrq
v1.13.2Compare Source
This release updates the version of Go used to build the OPA binaries and images to 1.25.7.
That version of the Go standard library contains a fix for GO-2026-4337.
Full Changelog: open-policy-agent/opa@v1.13.1...v1.13.2
v1.13.1Compare Source
v1.13.1
This bug fix release addresses an issue found in the new
array.flattenbuilt-in functionarray.flattenhandling of single item arrays (#8273) (#8272) authored by @anderseknertv1.13.0Compare Source
This release contains a mix of new features, performance improvements, and bugfixes. Notably:
immediateupload trigger mode in the Decision Loggerarray.flattenbuilt-in functionImmediate Upload Trigger Mode in Decision Logger (#8110)
An
immediatetrigger mode has been added to the Decision Logger; enabled by setting thedecision_logs.reporting.triggerconfiguration option toimmediate.When enabled, log events are pushed to the log service as soon as the configured upload chunk size criteria is met; or, at latest, when the configured upload delay is reached.
Authored by @sspaink
Runtime, SDK, Tooling
fmtwithout changes (#8222) authored by @Loic-Rnil*Profilershould not reportEnabled()(#8256) authored by @anderseknertCompiler, Topdown and Rego
Body.String()doesn't panic on empty body (#8244) authored by @srenatusarray.flattenbuilt-in function (#8226) authored by @anderseknertnumbers.range_stepbuilt-in could erroneously returnundefinedvalue (#8194) authored by @thevilledevstrings.render_templatebuilt-in (#7931) authored by @colinjlacy reported by @anderseknertregex.replacebuilt-in (#8179) authored by @srenatusfrom having been reverted in v1.12.1
json.match_schema(#6615) authored by @sspaink reported by @mscudlikPerformance
Ref.String()(#8202) authored by @anderseknertIsVarCompatibleString(#8164) authored by @anderseknertSet.IntersectandSet.Diff(#8167) authored by @thevilledevSet.Union(#8172) authored by @thevilledevExpr.MarshalJSON(#8204) authored by @thevilledevRule.MarshalJSON(#8205) authored by @thevilledevTerm.MarshalJSON(#8200) authored by @thevilledevWith.MarshalJSON(#8206) authored by @thevilledevString()implementations using appenders (#8192) authored by @anderseknertarray.reverse(#8177) authored by @thevilledevjson.removeandjson.filter(#8193) authored by @thevilledevobjectbuilt-ins (#8175) authored by @thevilledevunionbuilt-in (#8173) authored by @thevilledevgetObjectKeysParam(#8176) authored by @thevilledevDocs, Website, Ecosystem
Miscellaneous
pr_check.regowithopa fmt(#8201) authored by @thevilledevgo getagainstmainto spot redacted (#8146) authored by @charlieegan3go.yaml.in/yaml/v3yaml library (#8182) authored by @mruegbecause of redaction warning
v1.12.3Compare Source
v1.12.3
This is a bug fix release addressing two issues:
Bundle polling is being misconfigured when discovery bundle is updated (#8215)
This is an issue where the polling interval for discovery (
discovery.polling.min_delay_secondsanddiscovery.polling.max_delay_seconds) were misinterpreted on reconfiguration, causing extremely long update intervals.Reported by @loganmiller-chime, authored by @sspaink
Decision log
sizebufferbuffer_size_limit_bytesmisconfigured during reconfiguration (#8213)This is a regression in the decision log, where the
decision_logs.reporting.buffer_size_limit_byteswas mistakenly assigned the value ofdecision_logs.reporting.upload_size_limit_bytesduring reconfiguration.This issue is only present when
decision_logs.reporting.buffer_typeis set tosize, which is the default value.Authored by @sspaink
v1.12.2Compare Source
This bug fix release address issues found in the new string interpolation feature
authored by @anderseknert
authored by @thevilledev
authored by @thevilledev
v1.12.1Compare Source
This bug fix release reverts a change to
regex.replacethat unintentionally changed its behaviour for anchored regular expressions.regex.replacerespect cancellation" (authored by @srenatus)v1.12.0Compare Source
This release contains a mix of new features, performance improvements, and bugfixes. Notably:
String Interpolation (#4733)
The Rego language has been extended to support String Interpolation,
which provides a readable means to compose strings containing dynamic values determined at evaluation time.
An interpolated string is composed of a template-string containing zero or more template-expressions that evaluates to a value at evaluation time.
The
$character prefix identifies a template-string, and template-expressions are declared by being enclosed in curly-braces ({,}).Additionally,
undefinedtemplate-expression values don't halt evaluation; instead,<undefined>will be injected into the generated string.{ "deny": [ "User <undefined>'s role was 'guest', but must be one of [\"admin\", \"employee\"]" ], }String interpolation is a more readable and less error-prone substitute for the
sprintfbuilt-in function.Authored by @johanfylling reported by @anderseknert
Runtime, SDK, Tooling
someandevery(#8105, #8131, #8138) authored by @charlieegan3regex.replacerespect cancellation (#8089) authored by @srenatusreplaceandstrings.replace_nrespect cancellation (#8089) authored by @srenatusconcat(#8090) authored by @srenatusCompiler, Topdown and Rego
Docs, Website, Ecosystem
Miscellaneous
v1.11.1Compare Source
This is a bugfix release:
Memory exhaustion via forged gzip header
A crafted HTTP request any of OPA's HTTP endpoints would lead OPA to use a large amount of memory, triggering
an out-of-memory process exit.
This weakness in OPA's HTTP API gzip handling is as old as the gzip handling itself. A configurable limit was introduced in v0.67.0, but it has been shown that this security measure wasn't sufficient to avoid running out of memory in memory-constrained setups.
Thanks to @thevilledev for reporting and fixing this issue.
It only applies to OPA running as server (as a binary or in a container, as "sidecar"). To trigger an OOM process exit using this weakness, an adversary must be able to send an HTTP request directly to OPA. This would be the case if they are in the same network, there is no proxy in front of OPA, or if OPA was exposed to the internet, which is advised against.
By the nature of HTTP encodings, this would be effective before token-based authentication and authorization policies, so these measures do not protect against the attack vector.
If all OPA endpoints are using TLS-based authentication (mutual TLS, "mTLS"), then an adversary cannot do harm with this method.
Please note that while we're taking all of these issues seriously, OPA isn't designed for adversary environments. It's strongly advised not to expose any of its endpoints to the public internet. Furthermore, available security measures should be applied regardless, for a defense in depth approach. See the documentation for the available means of authentication and authorization in OPA.
Please also check out our Security Policy for reporting critical issues and bugs.
Decision Logs dropped (introduced in OPA v1.9.0)
When the decision logs buffer was uploaded, the buffer limit inadvertently got reset to the default upload limit (32kb).
This causes logs to be dropped that shouldn't have been dropped.
This default is overridden by the configuration value
decision_logs.reporting.upload_size_limit_bytes, see the docs on decision logs.There's a Prometheus metric for dropped events,
counter_decision_logs_dropped_buffer_size_limit_bytes_exceeded,and you can check that for unexpectedly high counts.
Reported by @johanneslarsson #8123, fixed by @sspaink.
The release is otherwise identical to v1.11.0.
Configuration
📅 Schedule: Branch creation - Between 12:00 AM and 03:59 AM, only on Monday ( * 0-3 * * 1 ) (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, 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.