Skip to content

docs: Add EvergreenCodeBlock for code with version#7706

Merged
charlieegan3 merged 1 commit intoopen-policy-agent:mainfrom
charlieegan3:set-current-versions
Jun 17, 2025
Merged

docs: Add EvergreenCodeBlock for code with version#7706
charlieegan3 merged 1 commit intoopen-policy-agent:mainfrom
charlieegan3:set-current-versions

Conversation

@charlieegan3
Copy link
Copy Markdown
Contributor

This adds a new EvergreenCodeBlock component to the documentation site that allows code blocks to contain template for the current versions of opa components. This means we can show the current version in docs, but don't need update the version in every code block when we release a new version.

Fixes #7705

In the future, it would be nice to pull the latest release for this on build since the envoy release sometimes lags behind the opa release a small amount, but for now this is a step in the right direction. The kube-mgmt version is also manually set, but at least this component owns all versioned code blocks in the documentation now.

This adds a new EvergreenCodeBlock component to the documentation site that allows
code blocks to contain template for the current versions of opa
components. This means we can show the current version in docs, but
don't need update the version in every code block when we release a new
version.

Fixes open-policy-agent#7705

In the future, it would be nice to pull the latest release for this on
build since the envoy release sometimes lags behind the opa release a
small amount, but for now this is a step in the right direction. The
kube-mgmt version is also manually set, but at least this component owns
all versioned code blocks in the documentation now.

Signed-off-by: Charlie Egan <charlie@styra.com>
@charlieegan3 charlieegan3 force-pushed the set-current-versions branch from 8ea0e8b to b0c5338 Compare June 17, 2025 10:43
@netlify
Copy link
Copy Markdown

netlify Bot commented Jun 17, 2025

Deploy Preview for openpolicyagent ready!

Name Link
🔨 Latest commit 8ea0e8b
🔍 Latest deploy log https://app.netlify.com/projects/openpolicyagent/deploys/685146aba195580008ad0220
😎 Deploy Preview https://deploy-preview-7706--openpolicyagent.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link
Copy Markdown

netlify Bot commented Jun 17, 2025

Deploy Preview for openpolicyagent ready!

Name Link
🔨 Latest commit b0c5338
🔍 Latest deploy log https://app.netlify.com/projects/openpolicyagent/deploys/685146eba8576b000818957a
😎 Deploy Preview https://deploy-preview-7706--openpolicyagent.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Copy Markdown
Contributor

@srenatus srenatus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice!

This could become a problem when our config formats ever change in a non-backwards-compatible way, though. But I suppose the risk is low, I can't remember any previous occurrence.

@charlieegan3
Copy link
Copy Markdown
Contributor Author

Yeah, it's not ideal I suppose... I guess in such a case we could build something that was based on tabs?

@charlieegan3 charlieegan3 merged commit 2f9eae5 into open-policy-agent:main Jun 17, 2025
20 checks passed
@charlieegan3 charlieegan3 deleted the set-current-versions branch June 17, 2025 12:25
github-merge-queue Bot pushed a commit to infonl/dimpact-zaakafhandelcomponent that referenced this pull request Jun 30, 2025
#3733)

This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
|
[docker.io/openpolicyagent/opa](https://images.chainguard.dev/directory/image/glibc-dynamic/overview)
([source](https://redirect.github.com/open-policy-agent/opa)) | minor |
`1.5.1` -> `1.6.0` |
|
[docker.io/openpolicyagent/opa](https://images.chainguard.dev/directory/image/glibc-dynamic/overview)
([source](https://redirect.github.com/open-policy-agent/opa)) | minor |
`1.5.1-static` -> `1.6.0-static` |

---

> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency
Dashboard for more information.

---

### Release Notes

<details>
<summary>open-policy-agent/opa (docker.io/openpolicyagent/opa)</summary>

###
[`v1.6.0`](https://redirect.github.com/open-policy-agent/opa/blob/HEAD/CHANGELOG.md#160)

[Compare
Source](https://redirect.github.com/open-policy-agent/opa/compare/v1.5.1...v1.6.0)

This release contains a mix of new features, performance improvements,
and bugfixes. Notably:

- Improvements to the OPA website and documentation
- Allowing keywords in Rego references
- Parallel test execution
- Faster built-in function execution

##### Modernized OPA Website
([#&#8203;7037](https://redirect.github.com/open-policy-agent/opa/issues/7037))

We're continuing to modernize the OPA website with a new design and
improved user experience.

Some highlights:

-
[Builtins](https://www.openpolicyagent.org/docs/policy-reference#built-in-functions):
You can now search them on the docs page!
- Sidebar redesign: Making it easier to find what you're looking for in
our docs
- Feedback forms: Closing the feedback loop between docs authors and
readers -- Please let us know if you dislike, or like, a docs page.
- [Downloads page](https://www.openpolicyagent.org/docs#1-download-opa):
Find your OS' installation instructions on a less cluttered page!
- And much more

Authored by [@&#8203;sky3n3t](https://redirect.github.com/sky3n3t) and
[@&#8203;charlieegan3](https://redirect.github.com/charlieegan3)

##### Allowing keywords in Rego references
([#&#8203;7709](https://redirect.github.com/open-policy-agent/opa/pull/7709))

Previously, Rego references could not contain terms that conflict with
Rego keywords such as `package`, `if`, `else`, `not`, etc.
in certain constructs:

```rego
package example

allow if {
    input.package.source         # not allowed (before v1.6.0)
    input["package"].destination # allowed
}
```

The constraints for valid Rego references have been relaxed to allow
keywords.
The above example is now valid and will no longer cause a compilation
error.

Authored by
[@&#8203;johanfylling](https://redirect.github.com/johanfylling)

##### Parallel Test Execution
([#&#8203;7442](https://redirect.github.com/open-policy-agent/opa/issues/7442))

By default, OPA will now run tests in parallel (defaulting to one
parallel execution thread per available CPU core), significantly
speeding up test execution time for large test suites.
The performance boost is closely tied to the number of tests in your
project and your selected parallelism level. For larger projects and
default settings, 2-3x performance gains have been measured on a MacBook
Pro.

Parallelism can be disabled to run tests sequentially by setting the
`--parallel` flag to `1`. E.g. `opa test . --parallel=1`.

Authored by [@&#8203;sspaink](https://redirect.github.com/sspaink)
reported by
[@&#8203;anderseknert](https://redirect.github.com/anderseknert)

##### Faster Builtin Function Evaluation

The builtin context, an internal construct of OPA's evaluation engine,
was previously provided to every builtin function.
As it turns out, only very few of them actually need it, for caching,
cancellation, or lookups.
Those builtins are still provided with a builtin context, but for calls
to all other builtins, we save the memory required by it.
The impact is tremendous: Even though the size of a single builtin
context is only about 270 bytes, in an example application (Regal), this
change brings about 360 MB of reduced memory usage!

Authored by
[@&#8203;anderseknert](https://redirect.github.com/anderseknert)

##### Runtime, Tooling, SDK

- cmd/check: `opa check --bundle` report virtual/base doc conflicts
([#&#8203;7701](https://redirect.github.com/open-policy-agent/opa/pull/7701))
authored by
[@&#8203;anderseknert](https://redirect.github.com/anderseknert)\
When `opa check` is used with the `--bundle` flag, an error will be
reported if the provided json/yaml data has a conflicting overlap with
the virtual documents generated by Rego rules. Such conflicts are
ambiguous and can lead to unexpected evaluation results, and should be
resolved.
- cmd/inspect: Fixing missing annotations location in `opa inspect` with
JSON format
([#&#8203;7459](https://redirect.github.com/open-policy-agent/opa/issues/7459))
authored by
[@&#8203;johanfylling](https://redirect.github.com/johanfylling)
reported by [@&#8203;mostealth](https://redirect.github.com/mostealth)
- cmd/parse: Expose `--v0-compatible` flag
([#&#8203;7668](https://redirect.github.com/open-policy-agent/opa/pull/7668))
authored by [@&#8203;tsandall](https://redirect.github.com/tsandall)
- cmd/refactor: Fix src:dst parsing to deal with colons
([#&#8203;7648](https://redirect.github.com/open-policy-agent/opa/pull/7648))
authored by [@&#8203;tsandall](https://redirect.github.com/tsandall)
- metrics: Fix restartable timer bug.
([#&#8203;7669](https://redirect.github.com/open-policy-agent/opa/pull/7669))
authored by
[@&#8203;philipaconrad](https://redirect.github.com/philipaconrad)
- metrics: Prealloc maps + add benchmark
([#&#8203;7664](https://redirect.github.com/open-policy-agent/opa/pull/7664))
authored by
[@&#8203;philipaconrad](https://redirect.github.com/philipaconrad)
- oracle: Add support for some and every
([#&#8203;7716](https://redirect.github.com/open-policy-agent/opa/pull/7716))
authored by
[@&#8203;charlieegan3](https://redirect.github.com/charlieegan3)
- oracle: Support object refs in FindDefinition
([#&#8203;7711](https://redirect.github.com/open-policy-agent/opa/pull/7711))
authored by
[@&#8203;charlieegan3](https://redirect.github.com/charlieegan3)
- plugin/decision: Check if event is too large after compression
([#&#8203;7526](https://redirect.github.com/open-policy-agent/opa/issues/7526))
authored by [@&#8203;sspaink](https://redirect.github.com/sspaink)
- runtime,server: Replace gorilla/mux dependency with http.ServeMux
([#&#8203;7676](https://redirect.github.com/open-policy-agent/opa/pull/7676))
authored by
[@&#8203;anderseknert](https://redirect.github.com/anderseknert)\
**Note**: This is a potentially breaking change for go API users
directly interfacing with the OPA server's routing.
- server: Fix deferred metrics timers.
([#&#8203;7671](https://redirect.github.com/open-policy-agent/opa/pull/7671))
authored by
[@&#8203;philipaconrad](https://redirect.github.com/philipaconrad)
- server: Fix query url when opa is served not from root path
([#&#8203;7644](https://redirect.github.com/open-policy-agent/opa/pull/7644))
authored by
[@&#8203;olegKoshmeliuk](https://redirect.github.com/olegKoshmeliuk)\
**Note**: This is only applicable for the web UI hosted by OPA on its
root path (`/`) and OPA is served at some other path than root.

##### Compiler, Topdown and Rego

- ast: Ensure surplus leading zeros always error
([#&#8203;7726](https://redirect.github.com/open-policy-agent/opa/pull/7726))
authored by
[@&#8203;charlieegan3](https://redirect.github.com/charlieegan3)\
**Note**: Primitive Rego number values with leading zeros (e.g. `0123`)
are now considered invalid at time of parsing and will generate an
error. If you're impacted by this change, please update your policies to
not have numbers with leading zeros. E.g. `0123` should be changed to
`123`.
- ast: Fixing type-checker schema cache race condition for inlined
schemas
([#&#8203;7679](https://redirect.github.com/open-policy-agent/opa/issues/7679),
[7571](https://redirect.github.com/open-policy-agent/opa/issues/7571))
authored by
[@&#8203;johanfylling](https://redirect.github.com/johanfylling)
reported by
[@&#8203;daniel-petrov-gig](https://redirect.github.com/daniel-petrov-gig)
- perf: Improve performance when referencing "global" in loop
([#&#8203;7654](https://redirect.github.com/open-policy-agent/opa/issues/7654))
authored by
[@&#8203;anderseknert](https://redirect.github.com/anderseknert)
- topdown: Fix issue where path in `walk` would get mutated
([#&#8203;7656](https://redirect.github.com/open-policy-agent/opa/issues/7656))
authored by
[@&#8203;anderseknert](https://redirect.github.com/anderseknert)
reported by
[@&#8203;robmyersrobmyers](https://redirect.github.com/robmyersrobmyers)
- topdown/http: Lenient application/json Content-Type header
([#&#8203;6684](https://redirect.github.com/open-policy-agent/opa/issues/6684))
authored by [@&#8203;sspaink](https://redirect.github.com/sspaink)
reported by [@&#8203;mrvanes](https://redirect.github.com/mrvanes)

##### Docs, Website, Ecosystem

- adopters: add Pix4D as adopters for its RBAC service
([#&#8203;7645](https://redirect.github.com/open-policy-agent/opa/pull/7645))
authored by [@&#8203;marcaurele](https://redirect.github.com/marcaurele)
- api: Expand docs for RegisterBuiltin — no thread-safety
([#&#8203;7667](https://redirect.github.com/open-policy-agent/opa/issues/7667))
authored by
[@&#8203;anderseknert](https://redirect.github.com/anderseknert)
reported by
[@&#8203;parth-mehta-989](https://redirect.github.com/parth-mehta-989)
- docs: Added a search function for the builtins section of
policy-reference
([#&#8203;7704](https://redirect.github.com/open-policy-agent/opa/pull/7704))
authored by [@&#8203;sky3n3t](https://redirect.github.com/sky3n3t)
- docs: Add another OR note in AND section
([#&#8203;7706](https://redirect.github.com/open-policy-agent/opa/pull/7706))
authored by
[@&#8203;charlieegan3](https://redirect.github.com/charlieegan3)
- docs: Add basic docs covering CI/CD use case
([#&#8203;7703](https://redirect.github.com/open-policy-agent/opa/pull/7703))
authored by
[@&#8203;charlieegan3](https://redirect.github.com/charlieegan3)
- docs: Add current ecosystem contribution docs
([#&#8203;7678](https://redirect.github.com/open-policy-agent/opa/pull/7678))
authored by
[@&#8203;charlieegan3](https://redirect.github.com/charlieegan3)
- docs: Add EvergreenCodeBlock for code with version
([#&#8203;7706](redirect.github.com/open-policy-agent/opa/pull/7706))
authored by
[@&#8203;charlieegan3](https://redirect.github.com/charlieegan3)
- docs: Add feedback form for user reported issues
([#&#8203;7662](https://redirect.github.com/open-policy-agent/opa/pull/7662))
authored by
[@&#8203;charlieegan3](https://redirect.github.com/charlieegan3)
- docs: Address broken links
([#&#8203;7661](https://redirect.github.com/open-policy-agent/opa/pull/7661))
authored by
[@&#8203;charlieegan3](https://redirect.github.com/charlieegan3)
- docs: Archive explain that only latest patch is shown
([#&#8203;7682](https://redirect.github.com/open-policy-agent/opa/pull/7682))
authored by
[@&#8203;charlieegan3](https://redirect.github.com/charlieegan3)
- docs: Fix bug where the search match respects case
([#&#8203;7713](https://redirect.github.com/open-policy-agent/opa/pull/7713))
authored by [@&#8203;sky3n3t](https://redirect.github.com/sky3n3t)
- docs: Hide feedback pop-up forever if dismissed
([#&#8203;7674](https://redirect.github.com/open-policy-agent/opa/pull/7674))
authored by
[@&#8203;charlieegan3](https://redirect.github.com/charlieegan3)
- docs: Improve bundle structure documentation
([#&#8203;7683](https://redirect.github.com/open-policy-agent/opa/pull/7683))
authored by
[@&#8203;charlieegan3](https://redirect.github.com/charlieegan3)
- docs: Improve explanations for initial examples
([#&#8203;7677](https://redirect.github.com/open-policy-agent/opa/pull/7677))
authored by
[@&#8203;charlieegan3](https://redirect.github.com/charlieegan3)
- docs: Install/Download Instruction Update
([#&#8203;7687](https://redirect.github.com/open-policy-agent/opa/pull/7687))
authored by
[@&#8203;charlieegan3](https://redirect.github.com/charlieegan3)
- docs: Move code example data inside the PlaygroundComponent
([#&#8203;7724](https://redirect.github.com/open-policy-agent/opa/pull/7724))
authored by [@&#8203;sky3n3t](https://redirect.github.com/sky3n3t)
- docs: policy-reference, update sig algs formatting
([#&#8203;7685](https://redirect.github.com/open-policy-agent/opa/pull/7685))
authored by
[@&#8203;charlieegan3](https://redirect.github.com/charlieegan3)
- docs: Redirect old admission control link
([#&#8203;7730](https://redirect.github.com/open-policy-agent/opa/pull/7730))
authored by
[@&#8203;charlieegan3](https://redirect.github.com/charlieegan3)
- docs: Refactored Networking Reference docs
([#&#8203;7686](https://redirect.github.com/open-policy-agent/opa/pull/7686))
authored by [@&#8203;sky3n3t](https://redirect.github.com/sky3n3t)
- docs: Revise sidebar order and layout
([#&#8203;7731](https://redirect.github.com/open-policy-agent/opa/pull/7731))
authored by
[@&#8203;charlieegan3](https://redirect.github.com/charlieegan3)
- docs: Reworked existing policy examples to use PlaygroundExample
([#&#8203;7690](https://redirect.github.com/open-policy-agent/opa/pull/7690))
authored by [@&#8203;sky3n3t](https://redirect.github.com/sky3n3t)
- docs: Show a feedback popup on the docs site
([#&#8203;7663](https://redirect.github.com/open-policy-agent/opa/pull/7663))
authored by
[@&#8203;charlieegan3](https://redirect.github.com/charlieegan3)
- docs: Show edge rather than latest release
([#&#8203;7717](https://redirect.github.com/open-policy-agent/opa/pull/7717))
authored by
[@&#8203;charlieegan3](https://redirect.github.com/charlieegan3)
- docs: Show TOC on CLI page
([#&#8203;7712](https://redirect.github.com/open-policy-agent/opa/pull/7712))
authored by
[@&#8203;charlieegan3](https://redirect.github.com/charlieegan3)
- docs: Update colors for feedback form in dark mode
([#&#8203;7691](https://redirect.github.com/open-policy-agent/opa/pull/7691))
authored by
[@&#8203;charlieegan3](https://redirect.github.com/charlieegan3)
- docs: Update policy-ref allowing anchor linking
([#&#8203;7675](https://redirect.github.com/open-policy-agent/opa/pull/7675))
authored by
[@&#8203;charlieegan3](https://redirect.github.com/charlieegan3)
- docs: Update rego in deployment examples
([#&#8203;7707](https://redirect.github.com/open-policy-agent/opa/pull/7707))
authored by
[@&#8203;charlieegan3](https://redirect.github.com/charlieegan3)
- docs: Update sidebar
([#&#8203;7723](https://redirect.github.com/open-policy-agent/opa/pull/7723))
authored by
[@&#8203;charlieegan3](https://redirect.github.com/charlieegan3)
- website: Disable cancel script
([#&#8203;7719](https://redirect.github.com/open-policy-agent/opa/pull/7719))
authored by
[@&#8203;charlieegan3](https://redirect.github.com/charlieegan3)
- website: Explain automation in RELEASE.md
([#&#8203;7721](https://redirect.github.com/open-policy-agent/opa/pull/7721))
authored by
[@&#8203;charlieegan3](https://redirect.github.com/charlieegan3)
- website: Fix badge endpoints
([#&#8203;7653](https://redirect.github.com/open-policy-agent/opa/pull/7653))
authored by
[@&#8203;charlieegan3](https://redirect.github.com/charlieegan3)
- website: Refactor site components with CSS modules
([#&#8203;7666](https://redirect.github.com/open-policy-agent/opa/pull/7666))
authored by
[@&#8203;charlieegan3](https://redirect.github.com/charlieegan3)
- website: Update docusaurus components to 3.8.1
([#&#8203;7718](https://redirect.github.com/open-policy-agent/opa/pull/7718))
authored by
[@&#8203;charlieegan3](https://redirect.github.com/charlieegan3)

##### Miscellaneous

- build: Better detection of go changes
([#&#8203;7696](https://redirect.github.com/open-policy-agent/opa/pull/7696))
authored by
[@&#8203;charlieegan3](https://redirect.github.com/charlieegan3)
- build: Bump golang 1.24.3 -> 1.24.4
([#&#8203;7672](https://redirect.github.com/open-policy-agent/opa/pull/7672))
authored by [@&#8203;srenatus](https://redirect.github.com/srenatus)
- Adding Clarification to merge instructions when cutting a patch
release
([#&#8203;7660](https://redirect.github.com/open-policy-agent/opa/pull/7660))
authored by
[@&#8203;johanfylling](https://redirect.github.com/johanfylling)
- build: Make summary failure source clearer
([#&#8203;7697](https://redirect.github.com/open-policy-agent/opa/pull/7697))
authored by
[@&#8203;charlieegan3](https://redirect.github.com/charlieegan3)
- build: Skip jobs for non docs changes
([#&#8203;7688](https://redirect.github.com/open-policy-agent/opa/pull/7688))
authored by
[@&#8203;charlieegan3](https://redirect.github.com/charlieegan3)
- deps: Use `google.golang.org/protobuf`
([#&#8203;7655](https://redirect.github.com/open-policy-agent/opa/pull/7655))
authored by [@&#8203;sspaink](https://redirect.github.com/sspaink)
- perf: Simplify interning
([#&#8203;7714](https://redirect.github.com/open-policy-agent/opa/pull/7714))
authored by
[@&#8203;anderseknert](https://redirect.github.com/anderseknert)
- perf: Only pass built-in context to calls depending on it
([#&#8203;7728](https://redirect.github.com/open-policy-agent/opa/pull/7728))
authored by
[@&#8203;anderseknert](https://redirect.github.com/anderseknert)
- perf: Improve built-in `concat` performance
([#&#8203;7702](https://redirect.github.com/open-policy-agent/opa/pull/7702))
authored by
[@&#8203;anderseknert](https://redirect.github.com/anderseknert)
- perf: More efficient data/v1 POST handler
([#&#8203;7673](https://redirect.github.com/open-policy-agent/opa/pull/7673))
authored by
[@&#8203;anderseknert](https://redirect.github.com/anderseknert)
- test: Fix flaky TestRaisingHTTPClientQueryError
([#&#8203;7698](https://redirect.github.com/open-policy-agent/opa/pull/7698))
authored by [@&#8203;sspaink](https://redirect.github.com/sspaink)
- test: Fix flaky topdown query cache tests
([#&#8203;7590](https://redirect.github.com/open-policy-agent/opa/issues/7590))
authored by [@&#8203;sspaink](https://redirect.github.com/sspaink)
- Dependency updates; notably:
- build(deps): Bump gqlparser from v2.5.27 to v2.5.28
([#&#8203;7699](https://redirect.github.com/open-policy-agent/opa/issues/7699))
authored by
[@&#8203;robmyersrobmyers](https://redirect.github.com/robmyersrobmyers)
  - build(deps): bump github.com/go-logr/logr from 1.4.2 to 1.4.3
- build(deps): bump github.com/vektah/gqlparser/v2 from 2.5.26 to 2.5.27
  - build(deps): bump golang.org/x/net from 0.39.0 to 0.40.0
  - build(deps): bump google.golang.org/grpc from 1.72.0 to 1.72.2
  - build(deps): bump oras.land/oras-go/v2 from 2.5.0 to 2.6.0
  - build(deps): bump go.opentelemetry.io deps to 1.36.0/0.61.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about these
updates again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/infonl/dimpact-zaakafhandelcomponent).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MC42Mi4xIiwidXBkYXRlZEluVmVyIjoiNDAuNjIuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
github-merge-queue Bot pushed a commit to infonl/dimpact-zaakafhandelcomponent that referenced this pull request Jun 30, 2025
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
|
[openpolicyagent/opa](https://images.chainguard.dev/directory/image/glibc-dynamic/overview)
([source](https://redirect.github.com/open-policy-agent/opa)) | minor |
`1.5.1-static` -> `1.6.0-static` |

---

> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency
Dashboard for more information.

---

### Release Notes

<details>
<summary>open-policy-agent/opa (openpolicyagent/opa)</summary>

###
[`v1.6.0`](https://redirect.github.com/open-policy-agent/opa/blob/HEAD/CHANGELOG.md#160)

[Compare
Source](https://redirect.github.com/open-policy-agent/opa/compare/v1.5.1...v1.6.0)

This release contains a mix of new features, performance improvements,
and bugfixes. Notably:

- Improvements to the OPA website and documentation
- Allowing keywords in Rego references
- Parallel test execution
- Faster built-in function execution

##### Modernized OPA Website
([#&#8203;7037](https://redirect.github.com/open-policy-agent/opa/issues/7037))

We're continuing to modernize the OPA website with a new design and
improved user experience.

Some highlights:

-
[Builtins](https://www.openpolicyagent.org/docs/policy-reference#built-in-functions):
You can now search them on the docs page!
- Sidebar redesign: Making it easier to find what you're looking for in
our docs
- Feedback forms: Closing the feedback loop between docs authors and
readers -- Please let us know if you dislike, or like, a docs page.
- [Downloads page](https://www.openpolicyagent.org/docs#1-download-opa):
Find your OS' installation instructions on a less cluttered page!
- And much more

Authored by [@&#8203;sky3n3t](https://redirect.github.com/sky3n3t) and
[@&#8203;charlieegan3](https://redirect.github.com/charlieegan3)

##### Allowing keywords in Rego references
([#&#8203;7709](https://redirect.github.com/open-policy-agent/opa/pull/7709))

Previously, Rego references could not contain terms that conflict with
Rego keywords such as `package`, `if`, `else`, `not`, etc.
in certain constructs:

```rego
package example

allow if {
    input.package.source         # not allowed (before v1.6.0)
    input["package"].destination # allowed
}
```

The constraints for valid Rego references have been relaxed to allow
keywords.
The above example is now valid and will no longer cause a compilation
error.

Authored by
[@&#8203;johanfylling](https://redirect.github.com/johanfylling)

##### Parallel Test Execution
([#&#8203;7442](https://redirect.github.com/open-policy-agent/opa/issues/7442))

By default, OPA will now run tests in parallel (defaulting to one
parallel execution thread per available CPU core), significantly
speeding up test execution time for large test suites.
The performance boost is closely tied to the number of tests in your
project and your selected parallelism level. For larger projects and
default settings, 2-3x performance gains have been measured on a MacBook
Pro.

Parallelism can be disabled to run tests sequentially by setting the
`--parallel` flag to `1`. E.g. `opa test . --parallel=1`.

Authored by [@&#8203;sspaink](https://redirect.github.com/sspaink)
reported by
[@&#8203;anderseknert](https://redirect.github.com/anderseknert)

##### Faster Builtin Function Evaluation

The builtin context, an internal construct of OPA's evaluation engine,
was previously provided to every builtin function.
As it turns out, only very few of them actually need it, for caching,
cancellation, or lookups.
Those builtins are still provided with a builtin context, but for calls
to all other builtins, we save the memory required by it.
The impact is tremendous: Even though the size of a single builtin
context is only about 270 bytes, in an example application (Regal), this
change brings about 360 MB of reduced memory usage!

Authored by
[@&#8203;anderseknert](https://redirect.github.com/anderseknert)

##### Runtime, Tooling, SDK

- cmd/check: `opa check --bundle` report virtual/base doc conflicts
([#&#8203;7701](https://redirect.github.com/open-policy-agent/opa/pull/7701))
authored by
[@&#8203;anderseknert](https://redirect.github.com/anderseknert)\
When `opa check` is used with the `--bundle` flag, an error will be
reported if the provided json/yaml data has a conflicting overlap with
the virtual documents generated by Rego rules. Such conflicts are
ambiguous and can lead to unexpected evaluation results, and should be
resolved.
- cmd/inspect: Fixing missing annotations location in `opa inspect` with
JSON format
([#&#8203;7459](https://redirect.github.com/open-policy-agent/opa/issues/7459))
authored by
[@&#8203;johanfylling](https://redirect.github.com/johanfylling)
reported by [@&#8203;mostealth](https://redirect.github.com/mostealth)
- cmd/parse: Expose `--v0-compatible` flag
([#&#8203;7668](https://redirect.github.com/open-policy-agent/opa/pull/7668))
authored by [@&#8203;tsandall](https://redirect.github.com/tsandall)
- cmd/refactor: Fix src:dst parsing to deal with colons
([#&#8203;7648](https://redirect.github.com/open-policy-agent/opa/pull/7648))
authored by [@&#8203;tsandall](https://redirect.github.com/tsandall)
- metrics: Fix restartable timer bug.
([#&#8203;7669](https://redirect.github.com/open-policy-agent/opa/pull/7669))
authored by
[@&#8203;philipaconrad](https://redirect.github.com/philipaconrad)
- metrics: Prealloc maps + add benchmark
([#&#8203;7664](https://redirect.github.com/open-policy-agent/opa/pull/7664))
authored by
[@&#8203;philipaconrad](https://redirect.github.com/philipaconrad)
- oracle: Add support for some and every
([#&#8203;7716](https://redirect.github.com/open-policy-agent/opa/pull/7716))
authored by
[@&#8203;charlieegan3](https://redirect.github.com/charlieegan3)
- oracle: Support object refs in FindDefinition
([#&#8203;7711](https://redirect.github.com/open-policy-agent/opa/pull/7711))
authored by
[@&#8203;charlieegan3](https://redirect.github.com/charlieegan3)
- plugin/decision: Check if event is too large after compression
([#&#8203;7526](https://redirect.github.com/open-policy-agent/opa/issues/7526))
authored by [@&#8203;sspaink](https://redirect.github.com/sspaink)
- runtime,server: Replace gorilla/mux dependency with http.ServeMux
([#&#8203;7676](https://redirect.github.com/open-policy-agent/opa/pull/7676))
authored by
[@&#8203;anderseknert](https://redirect.github.com/anderseknert)\
**Note**: This is a potentially breaking change for go API users
directly interfacing with the OPA server's routing.
- server: Fix deferred metrics timers.
([#&#8203;7671](https://redirect.github.com/open-policy-agent/opa/pull/7671))
authored by
[@&#8203;philipaconrad](https://redirect.github.com/philipaconrad)
- server: Fix query url when opa is served not from root path
([#&#8203;7644](https://redirect.github.com/open-policy-agent/opa/pull/7644))
authored by
[@&#8203;olegKoshmeliuk](https://redirect.github.com/olegKoshmeliuk)\
**Note**: This is only applicable for the web UI hosted by OPA on its
root path (`/`) and OPA is served at some other path than root.

##### Compiler, Topdown and Rego

- ast: Ensure surplus leading zeros always error
([#&#8203;7726](https://redirect.github.com/open-policy-agent/opa/pull/7726))
authored by
[@&#8203;charlieegan3](https://redirect.github.com/charlieegan3)\
**Note**: Primitive Rego number values with leading zeros (e.g. `0123`)
are now considered invalid at time of parsing and will generate an
error. If you're impacted by this change, please update your policies to
not have numbers with leading zeros. E.g. `0123` should be changed to
`123`.
- ast: Fixing type-checker schema cache race condition for inlined
schemas
([#&#8203;7679](https://redirect.github.com/open-policy-agent/opa/issues/7679),
[7571](https://redirect.github.com/open-policy-agent/opa/issues/7571))
authored by
[@&#8203;johanfylling](https://redirect.github.com/johanfylling)
reported by
[@&#8203;daniel-petrov-gig](https://redirect.github.com/daniel-petrov-gig)
- perf: Improve performance when referencing "global" in loop
([#&#8203;7654](https://redirect.github.com/open-policy-agent/opa/issues/7654))
authored by
[@&#8203;anderseknert](https://redirect.github.com/anderseknert)
- topdown: Fix issue where path in `walk` would get mutated
([#&#8203;7656](https://redirect.github.com/open-policy-agent/opa/issues/7656))
authored by
[@&#8203;anderseknert](https://redirect.github.com/anderseknert)
reported by
[@&#8203;robmyersrobmyers](https://redirect.github.com/robmyersrobmyers)
- topdown/http: Lenient application/json Content-Type header
([#&#8203;6684](https://redirect.github.com/open-policy-agent/opa/issues/6684))
authored by [@&#8203;sspaink](https://redirect.github.com/sspaink)
reported by [@&#8203;mrvanes](https://redirect.github.com/mrvanes)

##### Docs, Website, Ecosystem

- adopters: add Pix4D as adopters for its RBAC service
([#&#8203;7645](https://redirect.github.com/open-policy-agent/opa/pull/7645))
authored by [@&#8203;marcaurele](https://redirect.github.com/marcaurele)
- api: Expand docs for RegisterBuiltin — no thread-safety
([#&#8203;7667](https://redirect.github.com/open-policy-agent/opa/issues/7667))
authored by
[@&#8203;anderseknert](https://redirect.github.com/anderseknert)
reported by
[@&#8203;parth-mehta-989](https://redirect.github.com/parth-mehta-989)
- docs: Added a search function for the builtins section of
policy-reference
([#&#8203;7704](https://redirect.github.com/open-policy-agent/opa/pull/7704))
authored by [@&#8203;sky3n3t](https://redirect.github.com/sky3n3t)
- docs: Add another OR note in AND section
([#&#8203;7706](https://redirect.github.com/open-policy-agent/opa/pull/7706))
authored by
[@&#8203;charlieegan3](https://redirect.github.com/charlieegan3)
- docs: Add basic docs covering CI/CD use case
([#&#8203;7703](https://redirect.github.com/open-policy-agent/opa/pull/7703))
authored by
[@&#8203;charlieegan3](https://redirect.github.com/charlieegan3)
- docs: Add current ecosystem contribution docs
([#&#8203;7678](https://redirect.github.com/open-policy-agent/opa/pull/7678))
authored by
[@&#8203;charlieegan3](https://redirect.github.com/charlieegan3)
- docs: Add EvergreenCodeBlock for code with version
([#&#8203;7706](redirect.github.com/open-policy-agent/opa/pull/7706))
authored by
[@&#8203;charlieegan3](https://redirect.github.com/charlieegan3)
- docs: Add feedback form for user reported issues
([#&#8203;7662](https://redirect.github.com/open-policy-agent/opa/pull/7662))
authored by
[@&#8203;charlieegan3](https://redirect.github.com/charlieegan3)
- docs: Address broken links
([#&#8203;7661](https://redirect.github.com/open-policy-agent/opa/pull/7661))
authored by
[@&#8203;charlieegan3](https://redirect.github.com/charlieegan3)
- docs: Archive explain that only latest patch is shown
([#&#8203;7682](https://redirect.github.com/open-policy-agent/opa/pull/7682))
authored by
[@&#8203;charlieegan3](https://redirect.github.com/charlieegan3)
- docs: Fix bug where the search match respects case
([#&#8203;7713](https://redirect.github.com/open-policy-agent/opa/pull/7713))
authored by [@&#8203;sky3n3t](https://redirect.github.com/sky3n3t)
- docs: Hide feedback pop-up forever if dismissed
([#&#8203;7674](https://redirect.github.com/open-policy-agent/opa/pull/7674))
authored by
[@&#8203;charlieegan3](https://redirect.github.com/charlieegan3)
- docs: Improve bundle structure documentation
([#&#8203;7683](https://redirect.github.com/open-policy-agent/opa/pull/7683))
authored by
[@&#8203;charlieegan3](https://redirect.github.com/charlieegan3)
- docs: Improve explanations for initial examples
([#&#8203;7677](https://redirect.github.com/open-policy-agent/opa/pull/7677))
authored by
[@&#8203;charlieegan3](https://redirect.github.com/charlieegan3)
- docs: Install/Download Instruction Update
([#&#8203;7687](https://redirect.github.com/open-policy-agent/opa/pull/7687))
authored by
[@&#8203;charlieegan3](https://redirect.github.com/charlieegan3)
- docs: Move code example data inside the PlaygroundComponent
([#&#8203;7724](https://redirect.github.com/open-policy-agent/opa/pull/7724))
authored by [@&#8203;sky3n3t](https://redirect.github.com/sky3n3t)
- docs: policy-reference, update sig algs formatting
([#&#8203;7685](https://redirect.github.com/open-policy-agent/opa/pull/7685))
authored by
[@&#8203;charlieegan3](https://redirect.github.com/charlieegan3)
- docs: Redirect old admission control link
([#&#8203;7730](https://redirect.github.com/open-policy-agent/opa/pull/7730))
authored by
[@&#8203;charlieegan3](https://redirect.github.com/charlieegan3)
- docs: Refactored Networking Reference docs
([#&#8203;7686](https://redirect.github.com/open-policy-agent/opa/pull/7686))
authored by [@&#8203;sky3n3t](https://redirect.github.com/sky3n3t)
- docs: Revise sidebar order and layout
([#&#8203;7731](https://redirect.github.com/open-policy-agent/opa/pull/7731))
authored by
[@&#8203;charlieegan3](https://redirect.github.com/charlieegan3)
- docs: Reworked existing policy examples to use PlaygroundExample
([#&#8203;7690](https://redirect.github.com/open-policy-agent/opa/pull/7690))
authored by [@&#8203;sky3n3t](https://redirect.github.com/sky3n3t)
- docs: Show a feedback popup on the docs site
([#&#8203;7663](https://redirect.github.com/open-policy-agent/opa/pull/7663))
authored by
[@&#8203;charlieegan3](https://redirect.github.com/charlieegan3)
- docs: Show edge rather than latest release
([#&#8203;7717](https://redirect.github.com/open-policy-agent/opa/pull/7717))
authored by
[@&#8203;charlieegan3](https://redirect.github.com/charlieegan3)
- docs: Show TOC on CLI page
([#&#8203;7712](https://redirect.github.com/open-policy-agent/opa/pull/7712))
authored by
[@&#8203;charlieegan3](https://redirect.github.com/charlieegan3)
- docs: Update colors for feedback form in dark mode
([#&#8203;7691](https://redirect.github.com/open-policy-agent/opa/pull/7691))
authored by
[@&#8203;charlieegan3](https://redirect.github.com/charlieegan3)
- docs: Update policy-ref allowing anchor linking
([#&#8203;7675](https://redirect.github.com/open-policy-agent/opa/pull/7675))
authored by
[@&#8203;charlieegan3](https://redirect.github.com/charlieegan3)
- docs: Update rego in deployment examples
([#&#8203;7707](https://redirect.github.com/open-policy-agent/opa/pull/7707))
authored by
[@&#8203;charlieegan3](https://redirect.github.com/charlieegan3)
- docs: Update sidebar
([#&#8203;7723](https://redirect.github.com/open-policy-agent/opa/pull/7723))
authored by
[@&#8203;charlieegan3](https://redirect.github.com/charlieegan3)
- website: Disable cancel script
([#&#8203;7719](https://redirect.github.com/open-policy-agent/opa/pull/7719))
authored by
[@&#8203;charlieegan3](https://redirect.github.com/charlieegan3)
- website: Explain automation in RELEASE.md
([#&#8203;7721](https://redirect.github.com/open-policy-agent/opa/pull/7721))
authored by
[@&#8203;charlieegan3](https://redirect.github.com/charlieegan3)
- website: Fix badge endpoints
([#&#8203;7653](https://redirect.github.com/open-policy-agent/opa/pull/7653))
authored by
[@&#8203;charlieegan3](https://redirect.github.com/charlieegan3)
- website: Refactor site components with CSS modules
([#&#8203;7666](https://redirect.github.com/open-policy-agent/opa/pull/7666))
authored by
[@&#8203;charlieegan3](https://redirect.github.com/charlieegan3)
- website: Update docusaurus components to 3.8.1
([#&#8203;7718](https://redirect.github.com/open-policy-agent/opa/pull/7718))
authored by
[@&#8203;charlieegan3](https://redirect.github.com/charlieegan3)

##### Miscellaneous

- build: Better detection of go changes
([#&#8203;7696](https://redirect.github.com/open-policy-agent/opa/pull/7696))
authored by
[@&#8203;charlieegan3](https://redirect.github.com/charlieegan3)
- build: Bump golang 1.24.3 -> 1.24.4
([#&#8203;7672](https://redirect.github.com/open-policy-agent/opa/pull/7672))
authored by [@&#8203;srenatus](https://redirect.github.com/srenatus)
- Adding Clarification to merge instructions when cutting a patch
release
([#&#8203;7660](https://redirect.github.com/open-policy-agent/opa/pull/7660))
authored by
[@&#8203;johanfylling](https://redirect.github.com/johanfylling)
- build: Make summary failure source clearer
([#&#8203;7697](https://redirect.github.com/open-policy-agent/opa/pull/7697))
authored by
[@&#8203;charlieegan3](https://redirect.github.com/charlieegan3)
- build: Skip jobs for non docs changes
([#&#8203;7688](https://redirect.github.com/open-policy-agent/opa/pull/7688))
authored by
[@&#8203;charlieegan3](https://redirect.github.com/charlieegan3)
- deps: Use `google.golang.org/protobuf`
([#&#8203;7655](https://redirect.github.com/open-policy-agent/opa/pull/7655))
authored by [@&#8203;sspaink](https://redirect.github.com/sspaink)
- perf: Simplify interning
([#&#8203;7714](https://redirect.github.com/open-policy-agent/opa/pull/7714))
authored by
[@&#8203;anderseknert](https://redirect.github.com/anderseknert)
- perf: Only pass built-in context to calls depending on it
([#&#8203;7728](https://redirect.github.com/open-policy-agent/opa/pull/7728))
authored by
[@&#8203;anderseknert](https://redirect.github.com/anderseknert)
- perf: Improve built-in `concat` performance
([#&#8203;7702](https://redirect.github.com/open-policy-agent/opa/pull/7702))
authored by
[@&#8203;anderseknert](https://redirect.github.com/anderseknert)
- perf: More efficient data/v1 POST handler
([#&#8203;7673](https://redirect.github.com/open-policy-agent/opa/pull/7673))
authored by
[@&#8203;anderseknert](https://redirect.github.com/anderseknert)
- test: Fix flaky TestRaisingHTTPClientQueryError
([#&#8203;7698](https://redirect.github.com/open-policy-agent/opa/pull/7698))
authored by [@&#8203;sspaink](https://redirect.github.com/sspaink)
- test: Fix flaky topdown query cache tests
([#&#8203;7590](https://redirect.github.com/open-policy-agent/opa/issues/7590))
authored by [@&#8203;sspaink](https://redirect.github.com/sspaink)
- Dependency updates; notably:
- build(deps): Bump gqlparser from v2.5.27 to v2.5.28
([#&#8203;7699](https://redirect.github.com/open-policy-agent/opa/issues/7699))
authored by
[@&#8203;robmyersrobmyers](https://redirect.github.com/robmyersrobmyers)
  - build(deps): bump github.com/go-logr/logr from 1.4.2 to 1.4.3
- build(deps): bump github.com/vektah/gqlparser/v2 from 2.5.26 to 2.5.27
  - build(deps): bump golang.org/x/net from 0.39.0 to 0.40.0
  - build(deps): bump google.golang.org/grpc from 1.72.0 to 1.72.2
  - build(deps): bump oras.land/oras-go/v2 from 2.5.0 to 2.6.0
  - build(deps): bump go.opentelemetry.io deps to 1.36.0/0.61.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **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.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/infonl/dimpact-zaakafhandelcomponent).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MC42Mi4xIiwidXBkYXRlZEluVmVyIjoiNDAuNjIuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Docker version variable not expanded in K8s tutorial

2 participants