|
3 | 3 | All notable changes to this project will be documented in this file. This
|
4 | 4 | project adheres to [Semantic Versioning](http://semver.org/).
|
5 | 5 |
|
6 |
| -## Unreleased |
| 6 | +## 0.66.0 |
| 7 | + |
| 8 | +This release contains a mix of features, performance improvements, and bugfixes. |
| 9 | + |
| 10 | +### Improved Test Reports ([2546](https://github.com/open-policy-agent/opa/issues/2546)) |
| 11 | + |
| 12 | +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. |
| 13 | +E.g.: |
| 14 | + |
| 15 | +``` |
| 16 | +FAILURES |
| 17 | +-------------------------------------------------------------------------------- |
| 18 | +data.test.test_my_policy: FAIL (0ms) |
| 19 | +
|
| 20 | + test.rego:8: |
| 21 | + x == y + z |
| 22 | + | | | |
| 23 | + | | 3 |
| 24 | + | y + z: 5 |
| 25 | + | y: 2 |
| 26 | + 1 |
| 27 | +
|
| 28 | +SUMMARY |
| 29 | +-------------------------------------------------------------------------------- |
| 30 | +test.rego: |
| 31 | +data.test.test_foo: FAIL (0ms) |
| 32 | +-------------------------------------------------------------------------------- |
| 33 | +FAIL: 1/1 |
| 34 | +``` |
| 35 | + |
| 36 | +Authored by @johanfylling, reported by @grosser. |
| 37 | + |
| 38 | +### Reading stdin in `opa exec` ([#6538](https://github.com/open-policy-agent/opa/issues/6538)) |
| 39 | + |
| 40 | +The `opa exec` command now supports reading `input` documents from stdin with the `--stdin-input` (`-I`) flag. |
| 41 | +E.g.: |
| 42 | + |
| 43 | +```shell |
| 44 | +$ echo '{"user": "alice"}' | opa exec --stdin-input --bundle my_bundle |
| 45 | +``` |
| 46 | + |
| 47 | +Authored by @colinjlacy, reported by @humbertoc-silva. |
| 48 | + |
| 49 | +### Topdown and Rego |
| 50 | + |
| 51 | +- ast: Fix blanket "unexpected assign token" error message / usability issue ([#6563](https://github.com/open-policy-agent/opa/issues/6563)) authored by @anderseknert |
| 52 | +- ast: Fix wrong location on metadata parse errors on first line ([#6587](https://github.com/open-policy-agent/opa/issues/6587)) authored by @anderseknert |
| 53 | +- ast: Fix/inspect unknowns in with stmt ([#6812](https://github.com/open-policy-agent/opa/issues/6812)) authored by @johanfylling reported by @surajupadhyay01 |
| 54 | +- ast: Include original text in annotation location text attribute ([#6779](https://github.com/open-policy-agent/opa/issues/6779)) authored by @anderseknert |
| 55 | +- ast: Expanding nested expressions in `every` domain ([#6790](https://github.com/open-policy-agent/opa/issues/6790)) authored by @johanfylling reported by @anakrish |
| 56 | +- topdown: Add http.send request attribute to ignore headers for caching key ([#6642](https://github.com/open-policy-agent/opa/issues/6642)) authored and reported by @rudrakhp |
| 57 | + |
| 58 | +### Runtime, Tooling, SDK |
| 59 | + |
| 60 | +- build: Use chainguard images from dockerhub ([#6830](https://github.com/open-policy-agent/opa/pull/6830)) authored by @srenatus |
| 61 | +- bundle: Preallocate buffers for file contents. ([#6818](https://github.com/open-policy-agent/opa/pull/6818)) authored by @philipaconrad |
| 62 | +- plugins: Reduce locks during decision logging ([#6797](https://github.com/open-policy-agent/opa/pull/6797)) authored by @mjungsbluth |
| 63 | +- plugins/rest: Do local map modification in OAuth2 client credentials flow ([#6769](https://github.com/open-policy-agent/opa/issues/6769)) authored and reported by @eubaranov |
| 64 | +- loader: Use a better error message when trying to merge non-objects ([#6803](https://github.com/open-policy-agent/opa/issues/6803)) authored by @anderseknert |
| 65 | +- server/authorizer: Fix gzip payload handling ([#6804](https://github.com/open-policy-agent/opa/issues/6804)) authored by @philipaconrad reported by @nevumx |
| 66 | + |
| 67 | +### Docs, Website, Ecosystem |
| 68 | + |
| 69 | +- docs: Remove missing prometheus metric `go_memstats_gc_cpu_fraction` ([#6783](https://github.com/open-policy-agent/opa/issues/6783)) authored by @philipaconrad |
| 70 | +- docs: Mention that default functions may not evaluate ([#6265](https://github.com/open-policy-agent/opa/issues/6265)) authored by @anderseknert |
| 71 | +- docs: Fix spelling and grammar of `an HTTP` ([#6786](https://github.com/open-policy-agent/opa/pull/6786)) authored by @jdbaldry |
| 72 | +- docs/website: Add vs code and zed to ecosystem page ([#6788](https://github.com/open-policy-agent/opa/pull/6788)) authored by @charlieegan3 |
| 73 | +- docs/website: Add Flipt to the OPA ecosystem ([#6781](https://github.com/open-policy-agent/opa/pull/6781)) authored by @markphelps |
| 74 | +- docs/website: Add Flipt blog to their ecosystem page ([#6789](https://github.com/open-policy-agent/opa/pull/6789)) authored by @charlieegan3 |
| 75 | +- docs/website: Revise language SDK content ([#6811](https://github.com/open-policy-agent/opa/pull/6811)) authored by @charlieegan3 |
| 76 | + |
| 77 | +### Miscellaneous |
| 78 | + |
| 79 | +- Dependency updates; notably: |
| 80 | + - build(go): bump golang from 1.22.3 to 1.22.4 |
| 81 | + - build(deps): bump github.com/containerd/containerd from 1.7.17 to 1.7.18 |
| 82 | + - build(deps): bump golang.org/x/net from 0.25.0 to 0.26.0 |
7 | 83 |
|
8 | 84 | ## 0.65.0
|
9 | 85 |
|
|
0 commit comments