Skip to content

Commit db53d77

Browse files
authored
Prepare v0.68.0 release (#6976)
Signed-off-by: Johan Fylling <[email protected]>
1 parent 2d28934 commit db53d77

File tree

4 files changed

+5107
-5
lines changed

4 files changed

+5107
-5
lines changed

CHANGELOG.md

+64-4
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,75 @@
33
All notable changes to this project will be documented in this file. This
44
project adheres to [Semantic Versioning](http://semver.org/).
55

6-
## Unreleased
6+
## 0.68.0
77

8-
- allow OpenTelemetry resource attributes to be configured under distributed_tracing config
8+
This release contains a mix of features and bugfixes.
9+
10+
### Breaking Changes
11+
12+
#### `entrypoint` annotation implies `document` scope ([#6798](https://github.com/open-policy-agent/opa/issues/6798))
13+
14+
The [entrypoint annotation's](https://www.openpolicyagent.org/docs/latest/policy-language/#entrypoint) scope requirement
15+
has changed from `rule` to `document` ([https://github.com/open-policy-agent/opa/issues/6798](#6798)).
16+
Furthermore, if no `scope` annotation is declared for a METADATA block preceding a rule, the presence of an `entrypoint`
17+
annotation with a `true` value will assign the block a `document` scope, where the `rule` scope is otherwise the default.
18+
19+
In practice, a rule entrypoint always point to the entire document and not a particular rule definition. The previous behavior was a bug, and one we've now addressed.
920

10-
### CLI
21+
Authored by @anderseknert
22+
23+
### Topdown and Rego
24+
25+
- ast: Fixing nil-pointer dereference in compiler for partial rule edge case ([#6930](https://github.com/open-policy-agent/opa/issues/6930)) authored by @johanfylling
26+
- ast+parser: Add hint to future-proof imports ([6968](https://github.com/open-policy-agent/opa/pull/6968)) authored by @srenatus
27+
- topdown: Adding unification scope to virtual-cache key. Fixing issue where false positive cache hits can occur when unification "restricts" the scope of ref-head rule evaluation ([#6926](https://github.com/open-policy-agent/opa/issues/6926)) authored by @johanfylling reported by @anderseknert
28+
- topdown: Marshal JWT encode sign inputs as JSON ([#6934](https://github.com/open-policy-agent/opa/pull/6934)) authored by @charlieegan3
29+
30+
### Runtime, Tooling, SDK
1131

12-
- `opa exec`: This command never supported "pretty" formatting (`--format=pretty` or `-f pretty`), only `json`. Passing `pretty` is now invalid.
32+
- ast: Make type checker `copy` method copy all values ([#6949](https://github.com/open-policy-agent/opa/pull/6949)) authored by @anderseknert
33+
- ast: Include term locations in rule heads when requested ([#6860](https://github.com/open-policy-agent/opa/issues/6860)) authored by @anderseknert
34+
- debug: Adding experimental debugger SDK ([#6876](https://github.com/open-policy-agent/opa/issues/6876)) authored by @johanfylling
35+
- distributedtracing: allow OpenTelemetry resource attributes to be configured under distributed_tracing config ([#6942](https://github.com/open-policy-agent/opa/issues/6942)) authored and reported by @brettmc
36+
- download: Fixing issue when saving OCI bundles on disk ([#6939](https://github.com/open-policy-agent/opa/issues/6939)) authored and reported by @Sergey-Kizimov
37+
- logging: Always include HTTP request context in incoming req context ([#6951](https://github.com/open-policy-agent/opa/issues/6951)) authored by @ashutosh-narkar reported by @alvarogomez93
38+
- plugins/bundle: Avoid race-condition during bundle reconfiguration and activation ([#6849](https://github.com/open-policy-agent/opa/issues/6849)) authored by @ashutosh-narkar reported by @Pushpalanka
39+
- plugins/bundle: Escape reserved chars used in persisted bundle directory name ([#6915](https://github.com/open-policy-agent/opa/issues/6915)) authored by @ashutosh-narkar reported by @alvarogomez93
40+
- plugins/rest: Support AWS_CONTAINER_CREDENTIALS_FULL_URI metadata endpoint ([#6893](https://github.com/open-policy-agent/opa/issues/6893)) authored and reported by @mbamber
41+
- util+server: Fix bug around chunked request handling. ([#6904](https://github.com/open-policy-agent/opa/issues/6904)) authored by @philipaconrad reported by @David-Wobrock
42+
- `opa exec`: This command never supported "pretty" formatting (`--format=pretty` or `-f pretty`), only `json`. Passing `pretty` is now invalid. ([#6923](https://github.com/open-policy-agent/opa/pull/6923)) authored by @srenatus
1343
Note that the flag is now unnecessary, but it's kept so existing calls like `opa exec -fjson ...` remain valid.
1444

45+
#### Security Fix: CVE-2024-8260 ([#6933](https://github.com/open-policy-agent/opa/pull/6933))
46+
47+
This release includes a fix where OPA would accept UNC locations on Windows. Reading those could leak NTLM hashes.
48+
The attack vector would include an adversary tricking the user in passing an UNC path to OPA, e.g. `opa eval -d $FILE`.
49+
UNC paths are now forbidden. If this is an issue for you, please reach out on Slack or GitHub issues.
50+
51+
Reported by Shelly Raban
52+
Authored by @ashutosh-narkar
53+
54+
### Docs, Website, Ecosystem
55+
56+
- docs: Suggest using `opa-config.yaml` as name for config file (#6966) ([#6959](https://github.com/open-policy-agent/opa/issues/6959)) authored by @anderseknert
57+
- docs: Add documentation for OPA Spring Boot integration ([#6898](https://github.com/open-policy-agent/opa/pull/6898)) authored by @charlieegan3
58+
- docs: Update Istio tutorial ([#6896](https://github.com/open-policy-agent/opa/pull/6896)) authored by @Pindar
59+
- docs: Update contrib docs ([#6974](https://github.com/open-policy-agent/opa/pull/6974)) authored by @charlieegan3
60+
- docs: Add Lula to the OPA ecosystem ([#6902](https://github.com/open-policy-agent/opa/pull/6902)) authored by @brandtkeller
61+
- docs: Add github action policy testing automation ([#6954](https://github.com/open-policy-agent/opa/pull/6954)) authored by @oycyc
62+
- docs: Mention `http.send` in inter-query cache config docs ([#6953](https://github.com/open-policy-agent/opa/pull/6953)) authored by @anderseknert
63+
- docs+topdown: Fixing typos in built-in descriptions ([#6940](https://github.com/open-policy-agent/opa/pull/6940)) authored by @msorens
64+
65+
### Miscellaneous
66+
67+
- build: Make it possible to build only wasm testcases ([#6920](https://github.com/open-policy-agent/opa/pull/6920)) authored by @andreaTP
68+
- Dependency updates; notably:
69+
- build(deps): bump github.com/containerd/containerd from 1.7.20 to 1.7.21
70+
- build(deps): bump github.com/prometheus/client_golang from 1.19.1 to 1.20.2
71+
- build(deps): bump golang.org/x/net from 0.27.0 to 0.28.0
72+
- build(deps): bump golang.org/x/time from 0.5.0 to 0.6.0
73+
- build(deps): bump google.golang.org/grpc from 1.65.0 to 1.66.0
74+
1575
## 0.67.1
1676

1777
This is a bug fix release addressing the following issue:

0 commit comments

Comments
 (0)