[!WARNING]
Some dependencies could not be looked up. Check the Dependency Dashboard for more information.
Release Notes
open-policy-agent/opa (opa)
### [`v0.66.0`](https://togithub.com/open-policy-agent/opa/releases/tag/v0.66.0)
[Compare Source](https://togithub.com/open-policy-agent/opa/compare/v0.65.0...v0.66.0)
v0.66.0
This release contains a mix of features, performance improvements, and bugfixes.
##### Improved Test Reports ([2546](https://togithub.com/open-policy-agent/opa/issues/2546))
The `opa test` command now includes a new `--var-values` flag that enriches reporting of failed tests with the values and locations for variables in the failing expression.
E.g.:
FAILURES
--------------------------------------------------------------------------------
data.test.test_my_policy: FAIL (0ms)
test.rego:8:
x == y + z
| | |
| | 3
| y + z: 5
| y: 2
1
SUMMARY
--------------------------------------------------------------------------------
test.rego:
data.test.test_foo: FAIL (0ms)
--------------------------------------------------------------------------------
FAIL: 1/1
Authored by [@johanfylling](https://togithub.com/johanfylling), reported by [@grosser](https://togithub.com/grosser).
##### Reading stdin in `opa exec` ([#6538](https://togithub.com/open-policy-agent/opa/issues/6538))
The `opa exec` command now supports reading `input` documents from stdin with the `--stdin-input` (`-I`) flag.
E.g.:
```shell
$ echo '{"user": "alice"}' | opa exec --stdin-input --bundle my_bundle
```
Authored by [@colinjlacy](https://togithub.com/colinjlacy), reported by [@humbertoc-silva](https://togithub.com/humbertoc-silva).
##### Topdown and Rego
- ast: Fix blanket "unexpected assign token" error message / usability issue ([#6563](https://togithub.com/open-policy-agent/opa/issues/6563)) authored by [@anderseknert](https://togithub.com/anderseknert)
- ast: Fix wrong location on metadata parse errors on first line ([#6587](https://togithub.com/open-policy-agent/opa/issues/6587)) authored by [@anderseknert](https://togithub.com/anderseknert)
- ast: Fix/inspect unknowns in with stmt ([#6812](https://togithub.com/open-policy-agent/opa/issues/6812)) authored by [@johanfylling](https://togithub.com/johanfylling) reported by [@surajupadhyay01](https://togithub.com/surajupadhyay01)
- ast: Include original text in annotation location text attribute ([#6779](https://togithub.com/open-policy-agent/opa/issues/6779)) authored by [@anderseknert](https://togithub.com/anderseknert)
- ast: Expanding nested expressions in `every` domain ([#6790](https://togithub.com/open-policy-agent/opa/issues/6790)) authored by [@johanfylling](https://togithub.com/johanfylling) reported by [@anakrish](https://togithub.com/anakrish)
- topdown: Add http.send request attribute to ignore headers for caching key ([#6642](https://togithub.com/open-policy-agent/opa/issues/6642)) authored and reported by [@rudrakhp](https://togithub.com/rudrakhp)
##### Runtime, Tooling, SDK
- build: Use chainguard images from dockerhub ([#6830](https://togithub.com/open-policy-agent/opa/pull/6830)) authored by [@srenatus](https://togithub.com/srenatus)
- bundle: Preallocate buffers for file contents. ([#6818](https://togithub.com/open-policy-agent/opa/pull/6818)) authored by [@philipaconrad](https://togithub.com/philipaconrad)
- plugins: Reduce locks during decision logging ([#6797](https://togithub.com/open-policy-agent/opa/pull/6797)) authored by [@mjungsbluth](https://togithub.com/mjungsbluth)
- plugins/rest: Do local map modification in OAuth2 client credentials flow ([#6769](https://togithub.com/open-policy-agent/opa/issues/6769)) authored and reported by [@eubaranov](https://togithub.com/eubaranov)
- loader: Use a better error message when trying to merge non-objects ([#6803](https://togithub.com/open-policy-agent/opa/issues/6803)) authored by [@anderseknert](https://togithub.com/anderseknert)
- server/authorizer: Fix gzip payload handling ([#6804](https://togithub.com/open-policy-agent/opa/issues/6804)) authored by [@philipaconrad](https://togithub.com/philipaconrad) reported by [@nevumx](https://togithub.com/nevumx)
##### Docs, Website, Ecosystem
- docs: Remove missing prometheus metric `go_memstats_gc_cpu_fraction` ([#6783](https://togithub.com/open-policy-agent/opa/issues/6783)) authored by [@philipaconrad](https://togithub.com/philipaconrad)
- docs: Mention that default functions may not evaluate ([#6265](https://togithub.com/open-policy-agent/opa/issues/6265)) authored by [@anderseknert](https://togithub.com/anderseknert)
- docs: Fix spelling and grammar of `an HTTP` ([#6786](https://togithub.com/open-policy-agent/opa/pull/6786)) authored by [@jdbaldry](https://togithub.com/jdbaldry)
- docs/website: Add vs code and zed to ecosystem page ([#6788](https://togithub.com/open-policy-agent/opa/pull/6788)) authored by [@charlieegan3](https://togithub.com/charlieegan3)
- docs/website: Add Flipt to the OPA ecosystem ([#6781](https://togithub.com/open-policy-agent/opa/pull/6781)) authored by [@markphelps](https://togithub.com/markphelps)
- docs/website: Add Flipt blog to their ecosystem page ([#6789](https://togithub.com/open-policy-agent/opa/pull/6789)) authored by [@charlieegan3](https://togithub.com/charlieegan3)
- docs/website: Revise language SDK content ([#6811](https://togithub.com/open-policy-agent/opa/pull/6811)) authored by [@charlieegan3](https://togithub.com/charlieegan3)
##### Miscellaneous
- Dependency updates; notably:
- build(go): bump golang from 1.22.3 to 1.22.4
- build(deps): bump github.com/containerd/containerd from 1.7.17 to 1.7.18
- build(deps): bump golang.org/x/net from 0.25.0 to 0.26.0
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ 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.
[ ] If you want to rebase/retry this PR, check this box
This PR has been generated by Mend Renovate. View repository job log here.
This PR contains the following updates:
v0.65.0
->v0.66.0
Release Notes
open-policy-agent/opa (opa)
### [`v0.66.0`](https://togithub.com/open-policy-agent/opa/releases/tag/v0.66.0) [Compare Source](https://togithub.com/open-policy-agent/opa/compare/v0.65.0...v0.66.0) v0.66.0 This release contains a mix of features, performance improvements, and bugfixes. ##### Improved Test Reports ([2546](https://togithub.com/open-policy-agent/opa/issues/2546)) The `opa test` command now includes a new `--var-values` flag that enriches reporting of failed tests with the values and locations for variables in the failing expression. E.g.: FAILURES -------------------------------------------------------------------------------- data.test.test_my_policy: FAIL (0ms) test.rego:8: x == y + z | | | | | 3 | y + z: 5 | y: 2 1 SUMMARY -------------------------------------------------------------------------------- test.rego: data.test.test_foo: FAIL (0ms) -------------------------------------------------------------------------------- FAIL: 1/1 Authored by [@johanfylling](https://togithub.com/johanfylling), reported by [@grosser](https://togithub.com/grosser). ##### Reading stdin in `opa exec` ([#6538](https://togithub.com/open-policy-agent/opa/issues/6538)) The `opa exec` command now supports reading `input` documents from stdin with the `--stdin-input` (`-I`) flag. E.g.: ```shell $ echo '{"user": "alice"}' | opa exec --stdin-input --bundle my_bundle ``` Authored by [@colinjlacy](https://togithub.com/colinjlacy), reported by [@humbertoc-silva](https://togithub.com/humbertoc-silva). ##### Topdown and Rego - ast: Fix blanket "unexpected assign token" error message / usability issue ([#6563](https://togithub.com/open-policy-agent/opa/issues/6563)) authored by [@anderseknert](https://togithub.com/anderseknert) - ast: Fix wrong location on metadata parse errors on first line ([#6587](https://togithub.com/open-policy-agent/opa/issues/6587)) authored by [@anderseknert](https://togithub.com/anderseknert) - ast: Fix/inspect unknowns in with stmt ([#6812](https://togithub.com/open-policy-agent/opa/issues/6812)) authored by [@johanfylling](https://togithub.com/johanfylling) reported by [@surajupadhyay01](https://togithub.com/surajupadhyay01) - ast: Include original text in annotation location text attribute ([#6779](https://togithub.com/open-policy-agent/opa/issues/6779)) authored by [@anderseknert](https://togithub.com/anderseknert) - ast: Expanding nested expressions in `every` domain ([#6790](https://togithub.com/open-policy-agent/opa/issues/6790)) authored by [@johanfylling](https://togithub.com/johanfylling) reported by [@anakrish](https://togithub.com/anakrish) - topdown: Add http.send request attribute to ignore headers for caching key ([#6642](https://togithub.com/open-policy-agent/opa/issues/6642)) authored and reported by [@rudrakhp](https://togithub.com/rudrakhp) ##### Runtime, Tooling, SDK - build: Use chainguard images from dockerhub ([#6830](https://togithub.com/open-policy-agent/opa/pull/6830)) authored by [@srenatus](https://togithub.com/srenatus) - bundle: Preallocate buffers for file contents. ([#6818](https://togithub.com/open-policy-agent/opa/pull/6818)) authored by [@philipaconrad](https://togithub.com/philipaconrad) - plugins: Reduce locks during decision logging ([#6797](https://togithub.com/open-policy-agent/opa/pull/6797)) authored by [@mjungsbluth](https://togithub.com/mjungsbluth) - plugins/rest: Do local map modification in OAuth2 client credentials flow ([#6769](https://togithub.com/open-policy-agent/opa/issues/6769)) authored and reported by [@eubaranov](https://togithub.com/eubaranov) - loader: Use a better error message when trying to merge non-objects ([#6803](https://togithub.com/open-policy-agent/opa/issues/6803)) authored by [@anderseknert](https://togithub.com/anderseknert) - server/authorizer: Fix gzip payload handling ([#6804](https://togithub.com/open-policy-agent/opa/issues/6804)) authored by [@philipaconrad](https://togithub.com/philipaconrad) reported by [@nevumx](https://togithub.com/nevumx) ##### Docs, Website, Ecosystem - docs: Remove missing prometheus metric `go_memstats_gc_cpu_fraction` ([#6783](https://togithub.com/open-policy-agent/opa/issues/6783)) authored by [@philipaconrad](https://togithub.com/philipaconrad) - docs: Mention that default functions may not evaluate ([#6265](https://togithub.com/open-policy-agent/opa/issues/6265)) authored by [@anderseknert](https://togithub.com/anderseknert) - docs: Fix spelling and grammar of `an HTTP` ([#6786](https://togithub.com/open-policy-agent/opa/pull/6786)) authored by [@jdbaldry](https://togithub.com/jdbaldry) - docs/website: Add vs code and zed to ecosystem page ([#6788](https://togithub.com/open-policy-agent/opa/pull/6788)) authored by [@charlieegan3](https://togithub.com/charlieegan3) - docs/website: Add Flipt to the OPA ecosystem ([#6781](https://togithub.com/open-policy-agent/opa/pull/6781)) authored by [@markphelps](https://togithub.com/markphelps) - docs/website: Add Flipt blog to their ecosystem page ([#6789](https://togithub.com/open-policy-agent/opa/pull/6789)) authored by [@charlieegan3](https://togithub.com/charlieegan3) - docs/website: Revise language SDK content ([#6811](https://togithub.com/open-policy-agent/opa/pull/6811)) authored by [@charlieegan3](https://togithub.com/charlieegan3) ##### Miscellaneous - Dependency updates; notably: - build(go): bump golang from 1.22.3 to 1.22.4 - build(deps): bump github.com/containerd/containerd from 1.7.17 to 1.7.18 - build(deps): bump golang.org/x/net from 0.25.0 to 0.26.0Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ 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 has been generated by Mend Renovate. View repository job log here.