tflint-ruleset-opa
tflint-ruleset-opa copied to clipboard
Bump github.com/open-policy-agent/opa from 0.66.0 to 0.67.1
Bumps github.com/open-policy-agent/opa from 0.66.0 to 0.67.1.
Release notes
Sourced from github.com/open-policy-agent/opa's releases.
v0.67.1
This is a bug fix release addressing the following issue:
- util+server: Fix bug around chunked request handling (#6906) authored by
@philipaconrad, reported by@David-Wobrock. A request handling bug was introduced in (#6868), which caused OPA to treat all incoming chunked requests as if they had zero-length request bodies.v0.67.0
This release contains a mix of features, a new builtin function (
strings.count), performance improvements, and bugfixes.Breaking Change
Request Body Size Limits
OPA now automatically rejects very large requests (#6868) authored by
@philipaconrad. Requests with aContent-Lengthlarger than 128 MB uncompressed, and gzipped requests with payloads that decompress to larger than 256 MB will be rejected, as part of hardening OPA against denial-of-service attacks. Previously, a large enough request could cause an OPA instance to run out of memory in low-memory sidecar deployment scenarios, just from attempting to read the request body into memory.These changes allow improvements in memory usage for the OPA HTTP server, and help OPA deployments avoid some accidental out-of-memory situations.
For most users, no changes will be needed to continue using OPA. However, to control this behavior, two new configuration keys are available:
server.decoding.max_lengthandserver.decoding.gzip.max_length. These control the max size in bytes to allow for an incoming request payload, and the maximum size in bytes to allow for a decompressed gzip request payload, respectively.Here's an example OPA configuration using the new keys:
# Set max request size to 64 MB and max gzip size (decompressed) to be 128 MB. server: decoding: max_length: 67108864 gzip: max_length: 134217728Topdown and Rego
- topdown: New
strings.countbuiltin which returns the number of non-overlapping instances of a substring in a string (#6827) authored by@Manish-Giri- format: Produce error when
--rego-v1formatted module has rule name conflicting with keyword (#6833) authored by@johanfylling- topdown: Add cap to caches for regex and glob built-in functions (#6828) authored by
@johanfylling. This fixes possible memory leaks where caches grow uncontrollably when large amounts of regexes or globs are generated or originate from the input document.Runtime, Tooling, SDK
- repl: Add support for correctly loading bundle modules (#6872) authored by
@ashutosh-narkar- plugins/discovery: Allow un-registration of discovery listener (#6851) authored by
@mjungsbluth. The discovery plugin allows OPA to register a bundle download status listener but previously did not offer a method to unregister that listener- plugins/logs: Reduce amount of work performed inside global lock in decision log plugin (#6859) authored by
@johanfylling- plugins/rest: Add a new client credential attribute to support Azure Workload Identity. This would allow workloads deployed on an Azure Kubernetes Services (AKS) cluster to authenticate and access Azure cloud resources (#6802) authored by
@ledbutter- cmd/inspect: Add ability for opa inspect to inspect a single file outside of any bundle (#6873) authored by
@tjons- cmd+bundle: Add
--follow-symlinksflag to theopa buildcommand to allow users to build directories with symlinked files, and have the contents of those symlinked files included in the built bundle (#6800) authored by@tjons- server: Add missing handling in the server for the
explain=failsquery value (#6886) authored by@acamatcisco
... (truncated)
Changelog
Sourced from github.com/open-policy-agent/opa's changelog.
0.67.1
This is a bug fix release addressing the following issue:
- util+server: Fix bug around chunked request handling (#6906) authored by
@philipaconrad, reported by@David-Wobrock. A request handling bug was introduced in (#6868), which caused OPA to treat all incoming chunked requests as if they had zero-length request bodies.0.67.0
This release contains a mix of features, a new builtin function (
strings.count), performance improvements, and bugfixes.Breaking Change
Request Body Size Limits
OPA now automatically rejects very large requests (#6868) authored by
@philipaconrad. Requests with aContent-Lengthlarger than 128 MB uncompressed, and gzipped requests with payloads that decompress to larger than 256 MB will be rejected, as part of hardening OPA against denial-of-service attacks. Previously, a large enough request could cause an OPA instance to run out of memory in low-memory sidecar deployment scenarios, just from attempting to read the request body into memory.These changes allow improvements in memory usage for the OPA HTTP server, and help OPA deployments avoid some accidental out-of-memory situations.
For most users, no changes will be needed to continue using OPA. However, to control this behavior, two new configuration keys are available:
server.decoding.max_lengthandserver.decoding.gzip.max_length. These control the max size in bytes to allow for an incoming request payload, and the maximum size in bytes to allow for a decompressed gzip request payload, respectively.Here's an example OPA configuration using the new keys:
# Set max request size to 64 MB and max gzip size (decompressed) to be 128 MB. server: decoding: max_length: 67108864 gzip: max_length: 134217728Topdown and Rego
- topdown: New
strings.countbuiltin which returns the number of non-overlapping instances of a substring in a string (#6827) authored by@Manish-Giri- format: Produce error when
--rego-v1formatted module has rule name conflicting with keyword (#6833) authored by@johanfylling- topdown: Add cap to caches for regex and glob built-in functions (#6828) authored by
@johanfylling. This fixes possible memory leaks where caches grow uncontrollably when large amounts of regexes or globs are generated or originate from the input document.Runtime, Tooling, SDK
- repl: Add support for correctly loading bundle modules (#6872) authored by
@ashutosh-narkar- plugins/discovery: Allow un-registration of discovery listener (#6851) authored by
@mjungsbluth. The discovery plugin allows OPA to register a bundle download status listener but previously did not offer a method to unregister that listener- plugins/logs: Reduce amount of work performed inside global lock in decision log plugin (#6859) authored by
@johanfylling- plugins/rest: Add a new client credential attribute to support Azure Workload Identity. This would allow workloads deployed on an Azure Kubernetes Services (AKS) cluster to authenticate and access Azure cloud resources (#6802) authored by
@ledbutter- cmd/inspect: Add ability for opa inspect to inspect a single file outside of any bundle (#6873) authored by
@tjons- cmd+bundle: Add
--follow-symlinksflag to theopa buildcommand to allow users to build directories with symlinked files, and have the contents of those symlinked files included in the built bundle (#6800) authored by@tjons
... (truncated)
Commits
b88c09ePrepare v0.67.1 release11e91b0util+server: Fix bug around chunked request handling. (#6906)b62ae6bPrepare v0.67.0 releasebec8e1abuild(deps): bump github/codeql-action from 3.25.13 to 3.25.14 (#6888)d48fdd9server: Add missing handling forexplain=failsto the REST API.959f9e5docs: Add an example of a manifest with attributea793f27repl: Add support for correctly loading bundle modulesc5706eeserver+util: Limit max request sizes, prealloc request buffers (#6868)0ca35e2build(deps): bump docker/setup-buildx-action from 3.4.0 to 3.5.0 (#6880)f9ccb66build(deps): bump github/codeql-action from 3.25.12 to 3.25.13 (#6881)- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)