Skip to content

build(deps): bump github.com/open-policy-agent/opa from 1.20.1 to 1.23.0 - #2949

Open
dependabot[bot] wants to merge 2 commits into
mainfrom
dependabot/go_modules/github.com/open-policy-agent/opa-1.21.1
Open

dependabot[bot] wants to merge 2 commits into
mainfrom
dependabot/go_modules/github.com/open-policy-agent/opa-1.21.1

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Oct 4, 2026 •

Copy link
Copy Markdown
Contributor

Bumps github.com/open-policy-agent/opa from 1.20.1 to 1.23.0.

Release notes

Sourced from github.com/open-policy-agent/opa's releases.

v1.23.0

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

  • Enforcement of bundle structure: now rooted at their .manifest file
  • Lucene (Solr) target for the Compile API
  • Hardening of the MySQL Compile API target: use of startswith, endswith and contains built-in functions is rejected
  • Improvements to the rule indexer
  • A new json.pointer_escape built-in function

[!NOTE] Help us improve OPA, and fill out the 2026 OPA Community Survey!

Bundles are rooted at their .manifest file (#9459)

Breaking change: OPA now treats the directory containing a bundle's .manifest file as the bundle root, as the bundle documentation describes. Previously, the root depended on the path a bundle was loaded from, which made bundle contents, data placement, and signatures depend on how a path was typed.

  • Bundle directories (opa build -b, opa run -b, opa eval -b, opa sign --bundle, ...) are rooted at the directory containing .manifest, even when it is nested below the provided path. Files above it are not part of the bundle. opa build and opa sign warn about policy and data files they leave out, but other commands do not, so keep other .manifest files (e.g., test fixtures) out of directories loaded as bundles.
  • Bundle tarballs loaded from disk must have .manifest at the root of the archive. opa build always writes it there.
  • Signatures: file names in .signatures.json are relative to the bundle root, with / separators on every platform. Bundles signed by opa sign <dir> or opa build -b <dir> with older OPA versions must be re-signed, and --exclude-files-verify patterns may need updating.
  • opa build with multiple bundles places each bundle's files under the path it was given with -b, with a new .manifest at the root. Leading .. segments are replaced with the name of the directory they refer to. Merging fails when two bundles would be placed under the same path. opa sign with multiple bundle paths names files under each bundle's path, like opa build does when merging. A merged opa build output has its own new .manifest, so signatures from multiple separate source bundles cannot be used to verify a merged build.
  • opa build -t plan and -t wasm replace any plan, or wasm resolvers that were carried in from the input bundles.
  • .manifest, .signatures.json, and patch.json must be at the bundle root, and only files named exactly .manifest are treated as manifests.

For example, consider this tarball, built without opa build:

$ tar tzf bundle.tar.gz
bundle/.manifest
bundle/data.json
bundle/authz.rego

Previously, opa run -b bundle.tar.gz loaded it with bundle/data.json placed under data.bundle. It is now rejected because .manifest is not at the root of the archive. Running opa build -b bundle/ on the extracted directory produces a bundle rooted at bundle/, with data.json placed at the root of data.

... (truncated)

Changelog

Sourced from github.com/open-policy-agent/opa's changelog.

1.23.0

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

  • Enforcement of bundle structure: now rooted at their .manifest file
  • Lucene (Solr) target for the Compile API
  • Hardening of the MySQL Compile API target: use of startswith, endswith and contains built-in functions is rejected
  • Improvements to the rule indexer
  • A new json.pointer_escape built-in function

[!NOTE] Help us improve OPA, and fill out the 2026 OPA Community Survey!

Bundles are rooted at their .manifest file (#9459)

Breaking change: OPA now treats the directory containing a bundle's .manifest file as the bundle root, as the bundle documentation describes. Previously, the root depended on the path a bundle was loaded from, which made bundle contents, data placement, and signatures depend on how a path was typed.

  • Bundle directories (opa build -b, opa run -b, opa eval -b, opa sign --bundle, ...) are rooted at the directory containing .manifest, even when it is nested below the provided path. Files above it are not part of the bundle. opa build and opa sign warn about policy and data files they leave out, but other commands do not, so keep other .manifest files (e.g., test fixtures) out of directories loaded as bundles.
  • Bundle tarballs loaded from disk must have .manifest at the root of the archive. opa build always writes it there.
  • Signatures: file names in .signatures.json are relative to the bundle root, with / separators on every platform. Bundles signed by opa sign <dir> or opa build -b <dir> with older OPA versions must be re-signed, and --exclude-files-verify patterns may need updating.
  • opa build with multiple bundles places each bundle's files under the path it was given with -b, with a new .manifest at the root. Leading .. segments are replaced with the name of the directory they refer to. Merging fails when two bundles would be placed under the same path. opa sign with multiple bundle paths names files under each bundle's path, like opa build does when merging. A merged opa build output has its own new .manifest, so signatures from multiple separate source bundles cannot be used to verify a merged build.
  • opa build -t plan and -t wasm replace any plan, or wasm resolvers that were carried in from the input bundles.
  • .manifest, .signatures.json, and patch.json must be at the bundle root, and only files named exactly .manifest are treated as manifests.

For example, consider this tarball, built without opa build:

$ tar tzf bundle.tar.gz
bundle/.manifest
bundle/data.json
bundle/authz.rego

Previously, opa run -b bundle.tar.gz loaded it with bundle/data.json placed under data.bundle. It is now rejected because .manifest is not at the root of the archive. Running opa build -b bundle/ on the extracted directory produces a bundle rooted at bundle/, with data.json placed at the root of data.

... (truncated)

Commits
  • 7c0ba9d Release v1.23.0 (#9636)
  • 51eddd0 docs: Update builtin availability in other interpreters (#9611)
  • 5f45471 compile: drop startswith/endswith/contains for the MySQL target (#9616)
  • 94618dd build(deps): bump the dependencies group across 2 directories with 8 updates ...
  • 30878bf docs: fix the examples of the data filtering fragment (#9630)
  • d49351a cmd(fmt): honor --drop-v0-imports when formatting stdin
  • 6824432 ast: Add function for JSON pointer escape (#9598)
  • 7b037a9 compile: compile without indices where nothing evaluates (#9605)
  • e9ffcc5 compile: release the checking compiler after a rego build (#9604)
  • cec6860 wasm: Update generated binaries
  • Additional commits viewable in compare view

@dependabot
dependabot Bot requested a review from a team as a code owner October 4, 2026 03:52
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file go Pull requests that update Go code labels Oct 4, 2026
@jterry75

Copy link
Copy Markdown
Contributor

Tingmao Wang (@micromaomao) - Can you take a look at the failure here please. Looks like the policy doesn't compile on the .revision

@dependabot @github

dependabot Bot commented on behalf of github Oct 18, 2026

Copy link
Copy Markdown
Contributor Author

A newer version of github.com/open-policy-agent/opa exists, but since this PR has been edited by someone other than Dependabot I haven't updated it. You'll get a PR for the updated version as normal once this PR is merged.

@jterry75

Copy link
Copy Markdown
Contributor

Dependabot (@dependabot) recreate

@dependabot dependabot Bot changed the title build(deps): bump github.com/open-policy-agent/opa from 1.20.1 to 1.21.1 build(deps): bump github.com/open-policy-agent/opa from 1.20.1 to 1.21.2 Oct 19, 2026
@dependabot
dependabot Bot force-pushed the dependabot/go_modules/github.com/open-policy-agent/opa-1.21.1 branch 2 times, most recently from a66260a to 53ca793 Compare October 19, 2026 19:45
@jterry75

Copy link
Copy Markdown
Contributor

Takuro Sato (@takuro-sato) / Tingmao Wang (@micromaomao) - Can one of you take a look. They must have done a breaking chance because the policies don't seem to compile anymore.

@anmaxvl

Copy link
Copy Markdown
Contributor

Dependabot (@dependabot) recreate

1 similar comment
@anmaxvl

Copy link
Copy Markdown
Contributor

Dependabot (@dependabot) recreate

Bumps [github.com/open-policy-agent/opa](https://github.com/open-policy-agent/opa) from 1.20.1 to 1.23.0.
- [Release notes](https://github.com/open-policy-agent/opa/releases)
- [Changelog](https://github.com/open-policy-agent/opa/blob/main/CHANGELOG.md)
- [Commits](open-policy-agent/opa@v1.20.1...v1.23.0)

---
updated-dependencies:
- dependency-name: github.com/open-policy-agent/opa
  dependency-version: 1.21.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot changed the title build(deps): bump github.com/open-policy-agent/opa from 1.20.1 to 1.21.2 build(deps): bump github.com/open-policy-agent/opa from 1.20.1 to 1.23.0 Dec 3, 2026
@dependabot
dependabot Bot force-pushed the dependabot/go_modules/github.com/open-policy-agent/opa-1.21.1 branch from 347e294 to 7818f30 Compare December 3, 2026 06:27
Signed-off-by: github-actions[bot] <41898282+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

dependencies Pull requests that update a dependency file go Pull requests that update Go code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants