You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: CHANGELOG.md
+54-7
Original file line number
Diff line number
Diff line change
@@ -3,15 +3,17 @@
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.64.0
7
7
8
-
The `go` stanza of OPA's `go.mod` had become out of sync: Projects importing OPA as a Go library would see their `go` stanza moved to 1.21 (if it wasn't that before).
9
-
This was introduced with v0.63.0, but the main branch's `go.mod` still claimed to be a `go 1.20` compatible.
10
-
Now, it states the true state of affairs: OPA, used as Go dependency, requires at least Go 1.21, and thus works with all officially supported Go versions (1.21.x and 1.22.x).
8
+
> **_NOTES:_**
9
+
>
10
+
> * The minimum version of Go required to build the OPA module is **1.21**
11
11
12
-
#### Breaking Change
12
+
This release contains a mix of features, a new builtin function (`json.marshal_with_options()`), performance improvements, and bugfixes.
Previously if Discovery was enabled, other features like bundle downloading and status reporting could not be configured manually.
17
19
The reason for this was to prevent OPAs being deployed that could not be controlled through discovery. It's possible that
@@ -25,7 +27,52 @@ configuration fields. For example, if the discovered configuration changes the `
25
27
additional compared to the bootstrap configuration are used, all other changes are ignored. This implies labels in the
26
28
bootstrap configuration override those in the discovered configuration. But for fields such as `default_decision`, `default_authorization_decision`,
27
29
`nd_builtin_cache`, the discovered configuration would override the bootstrap configuration. Now the behavior is more consistent
28
-
for the entire configuration and helps to avoid accidental configuration errors.
30
+
for the entire configuration and helps to avoid accidental configuration errors. ([#5722](https://github.com/open-policy-agent/opa/issues/5722)) authored by @ashutosh-narkar
31
+
32
+
### Add `rego_version` attribute to the bundle manifest
33
+
34
+
A new global `rego_version` attribute is added to the bundle manifest, to inform the OPA runtime about what Rego version (`v0`/`v1`) to
35
+
use while parsing/compiling contained Rego files. There is also a new `file_rego_versions` attribute which allows individual
36
+
files to override the global Rego version specified by `rego_version`.
37
+
38
+
When the version of the contained Rego is advertised by the bundle through this attribute, it is not required to run OPA with the
39
+
`--v1-compatible` (or future `--v0-compatible`) flag in order to correctly parse, compile and evaluate the bundle's modules.
40
+
41
+
A bundle's `rego_version` attribute takes precedence over any applied `--v1-compatible`/`--v0-compatible` flag. ([#6578](https://github.com/open-policy-agent/opa/issues/6578)) authored by @johanfylling
42
+
43
+
### Runtime, Tooling, SDK
44
+
- compile: Fix panic from CLI + metadata entrypoint overlaps. The panic occurs when `opa build` was provided an entrypoint from both a CLI flag, and via entrypoint metadata annotation. ([#6661](https://github.com/open-policy-agent/opa/issues/6661)) authored by @philipaconrad
45
+
- cmd/deps: Improve memory footprint and execution time of `deps` command for policies with high dependency connectivity ([#6685](https://github.com/open-policy-agent/opa/issues/6685)) authored by @johanfylling
46
+
- server: Keep default decision path in-sync with manager's config ([#6697](https://github.com/open-policy-agent/opa/issues/6697)) authored by @ashutosh-narkar
47
+
- server: Remove unnecessary AST-to-JSON conversions ([#6665](https://github.com/open-policy-agent/opa/pull/6665)) and ([#6669](https://github.com/open-policy-agent/opa/pull/6669)) authored by @koponen-styra
48
+
- sdk: Allow customizations of the plugin manager via SDK ([#6662](https://github.com/open-policy-agent/opa/issues/6662)) authored by @xico42
49
+
- sdk: Fix issue where active parser options aren't propagated to module reload during bundle activation resulting in errors while activating bundles with `v1` syntax ([#6689](https://github.com/open-policy-agent/opa/pull/6689)) authored by @xico42
50
+
- plugins/rest: Close response body in OAuth2 client credentials flow ([#6708](https://github.com/open-policy-agent/opa/pull/6708)) authored by @johanneslarsson
51
+
52
+
### Topdown and Rego
53
+
- ast: Import `rego.v1` in `v0` support modules when applicable ([#6450](https://github.com/open-policy-agent/opa/issues/6450)) authored by @johanfylling
54
+
- rego: Set query Rego version from configured imports ([#6701](https://github.com/open-policy-agent/opa/issues/6701)) authored by @johanfylling
55
+
- topdown: New `json.marshal_with_options()` builtin for indented/"pretty-printed" and/or line-prefixed JSON ([#6630](https://github.com/open-policy-agent/opa/issues/6630)) authored by @sean-r-williams
56
+
57
+
### Docs, Website, Ecosystem
58
+
- Add Raygun to ecosystem projects ([#6712](https://github.com/open-policy-agent/opa/pull/6712)) authored by @johndbro1
59
+
- Add env0 to ecosystem projects ([#6658](https://github.com/open-policy-agent/opa/pull/6658)) authored by @yarivg
60
+
- Add Rego Language Comparisons to ecosystem projects ([#6663](https://github.com/open-policy-agent/opa/pull/6663)) authored by @charlieegan3
61
+
- docs/configuration: Tidy up headers in Services section ([#6695](https://github.com/open-policy-agent/opa/pull/6695)) authored by @tsandall
62
+
- docs: Use cuboid rather than cube to explain concepts of sets and composite values in policy-language section of documentation ([#6691](https://github.com/open-policy-agent/opa/pull/6691)) authored by @kd-labs
63
+
64
+
### Miscellaneous
65
+
- go.{mod,sum}: Update the `go` stanza of OPA's `go.mod` to `go 1.21`. OPA, used as Go dependency, requires at least `go 1.21`, and thus works with all officially supported Go versions (`1.21.x` and `1.22.x`) ([#6678](https://github.com/open-policy-agent/opa/pull/6678)) authored by @srenatus
66
+
- ci: Update Github Actions for Node 20. This change updates the `upload-artifact` and `download-artifact` Github actions to the latest version (v4) ([#6670](https://github.com/open-policy-agent/opa/pull/6670)) authored by @philipaconrad
67
+
- build: Update WASM Rego test generation docker command to address CVE-2022-24765 in Git ([#6703](https://github.com/open-policy-agent/opa/issues/6703)) authored by @ashutosh-narkar
68
+
- Dependency updates; notably:
69
+
- build(go): bump 1.22.1 -> 1.22.2 ([#6672](https://github.com/open-policy-agent/opa/pull/6672)) authored by @srenatus
70
+
- build(deps): bump aquasecurity/trivy-action from 0.18.0 to 0.19.0
71
+
- build(deps): bump github.com/containerd/containerd from 1.7.14 to 1.7.15
72
+
- build(deps): bump github.com/prometheus/client_model from 0.5.0 to 0.6.1
73
+
- build(deps): bump golang.org/x/net from 0.22.0 to 0.24.0
74
+
- build(deps): bump google.golang.org/grpc from 1.62.1 to 1.63.2
0 commit comments