Skip to content

build(deps): Bump github.com/open-policy-agent/opa from 1.22.4 to 1.23.0 in /core - #2226

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

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

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

⚠️ Dependabot is rebasing this PR ⚠️

Rebasing might not happen immediately, so don't worry if this takes some time.

Note: if you make any changes to this PR yourself, they will take precedence over the rebase.


Bumps github.com/open-policy-agent/opa from 1.22.4 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 November 30, 2026 23:18
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file go Pull requests that update go code labels Nov 30, 2026
@coderabbitai

coderabbitai Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 55a6646a-1ddc-439f-b8e9-77c292540dc9

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@dependabot @github

dependabot Bot commented on behalf of github Nov 30, 2026

Copy link
Copy Markdown
Contributor Author

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

@github-actions github-actions Bot reopened this Nov 30, 2026
@github-project-automation github-project-automation Bot moved this from New/ToDo to Done in Rossoctl Issue Prioritization Nov 30, 2026
@github-actions github-actions Bot added the ready-for-ai-review Request automated AI code review from clawgenti label Nov 30, 2026

@clawgenti clawgenti left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Clawgenti Code Review

Dependency-only bump; OPA 1.23.0's one breaking change does not reach Cortex.

  • The breaking change is bundle rooting at the directory containing .manifest (tarballs must carry .manifest at the root; signatures are relative to the root and older-signed bundles must be re-signed; -t plan/-t wasm replace carried resolvers). Cortex loads policy only through the OPA SDK from a remote bundle: core/plugins/opa/plugin.go:339-382 builds services + bundles with resource: bundles?spiffe=… and polling, and sets no signing/verification block and no disk-rooted bundle. A bundle built by opa build already has .manifest at the archive root, so the new rooting is a no-op here.
  • The other 1.23.0 items (Lucene target for the Compile API, MySQL Compile hardening, rule-indexer work, json.pointer_escape) are additions or apply to a Compile API Cortex does not use. V1Compatible: true is unchanged.
  • Sums verified against sum.golang.org for opa v1.23.0 and gopkg.in/ini.v1 v1.68.0, in each of the five go.sum files the PR touches. Verify module graph is tidy is green.

Author: dependabot[bot] (CONTRIBUTOR — dependency bot)
Areas reviewed: go.mod/go.sum in the four modules plus scripts/readme-demo; release notes v1.23.0; the OPA plugin's SDK configuration
Agent/IDE config (.claude/.vscode): none
Commits: 2 commits, signed-off: yes
CI status: passing (41 success, 2 skipped)
Not checked:

  • a local go build/test run — module zips are not fetchable here (proxy blob host times out); sums were checked against sum.golang.org and CI's Go jobs cover the build.
  • a live bundle-server round trip against 1.23.0 — no bundle server or SPIFFE identity is available in this sandbox; the no-signing/no-disk-bundle reading above is from the SDK config in the source.

Generated by repoman github-pr-review@af425c8.

Bumps [github.com/open-policy-agent/opa](https://github.com/open-policy-agent/opa) from 1.22.4 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.22.4...v1.23.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot force-pushed the dependabot/go_modules/core/github.com/open-policy-agent/opa-1.23.0 branch from b42fed4 to 676619a Compare December 1, 2026 18:45

@clawgenti clawgenti left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Clawgenti Code Review

Dependency-only bump; both breaking changes in OPA 1.23.0 miss Cortex, and the new sums match upstream. One operational note (inline): this head leaves the two cmd/* modules untidy, which the queued Dependabot go mod tidy workflow normally fixes on the branch.

What I checked, against the v1.23.0 tag rather than the PR's summary:

  • The release has exactly two "Breaking change" items: bundle rooting at .manifest (#9459) and the MySQL Compile API rejecting startswith/endswith/contains (#9624). Cortex uses the SDK only (sdk.New + Decision, core/plugins/opa/plugin.go:294), loading one remote HTTP bundle (resource: bundles?spiffe=…, polling) with no signing block, no persistence directory and no disk loader. The notes say HTTP-downloaded bundles "are still loaded as before" (with a warning for a misplaced .manifest), and the Go bundle.Reader path-format change does not apply — nothing in the repo imports opa/bundle or opa/compile.
  • The other 1.23.0 items (Lucene Compile target, rule-indexer work, json.pointer_escape) are additions, and the Compile API is not used.
  • sdk.Options still has Config, Logger, ConsoleLogger, Ready and V1Compatible (1.23.0 only adds V2Compatible), so the plugin's config compiles unchanged.
  • Go directives: core is go 1.26.10; OPA 1.23.0 requires go 1.26.0 — no workspace break. The gopkg.in/ini.v1 bump is OPA's own dependency (its 1.23.0 go.mod requires 1.68.0).
  • Sums: both new entries match sum.golang.org exactly (opa h1:tLgjdI44…, ini h1:Ml6Jlmf…).

Author: dependabot[bot] (CONTRIBUTOR — dependency bot)
Areas reviewed: core/go.mod, core/go.sum, OPA SDK usage, v1.23.0 release notes, Go directives across the workspace
Agent/IDE config (.claude/.vscode): none
Commits: 1 commit, signed-off: yes
CI status: pending (all jobs queued at review time)
Not checked:

  • a local go build/test against OPA 1.23.0 — the module proxy's blob host times out in this sandbox; sums were checked against sum.golang.org and CI's Go jobs cover the build.
  • a live bundle-server round trip — no bundle server or SPIFFE identity here.

Generated by repoman github-pr-review@af425c8.

Comment thread core/go.mod
github.com/lestrrat-go/jwx/v2 v2.1.7
github.com/maximhq/bifrost/core v1.7.15
github.com/open-policy-agent/opa v1.22.4
github.com/open-policy-agent/opa v1.23.0

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

suggestion — this bump leaves cmd/cortex and cmd/cortex-envoy untidy. At this head, GOWORK=off go list -m all in either module reports "updates to go.mod needed": both still pin opa v1.22.4 // indirect (and ini v1.67.3), and their go.sum has no 1.23.0 entries, so the Verify module graph is tidy job (go mod tidy -diff, GOWORK=off) will flag them.

This is the known Dependabot pattern in this repo, and the Dependabot go mod tidy workflow is queued for this head (run 46718403404) to push exactly that tidy commit. That workflow was skipped on the previous head (b42fed) even though that head carried the tidy entries, so if it is skipped again, run go mod tidy in cmd/cortex and cmd/cortex-envoy. Either way the head SHA changes and the next scan re-reviews; nothing for you to fix.

Auto-tidied by dependabot-tidy workflow to keep cmd/* go.sum
files in sync with core after a Dependabot bump.

Signed-off-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
@github-actions github-actions Bot closed this Dec 1, 2026
@github-actions github-actions Bot reopened this Dec 1, 2026

@clawgenti clawgenti left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Clawgenti Code Review

Summary

github.com/open-policy-agent/opa 1.22.4 → 1.23.0 in core, plus OPA's own gopkg.in/ini.v1 1.67.3 → 1.68.0. The delta from the previously reviewed head (676619a) is the restored tidy commit: cmd/cortex, cmd/cortex-envoy, cmd/agentop and scripts/readme-demo now all pin opa 1.23.0 / ini 1.68.0 in go.mod and go.sum, so the inline tidy suggestion on the previous head is resolved.

The 1.23.0 breaking change (bundles rooted at their .manifest) does not change behaviour for this plugin. I checked the code paths rather than taking the notes' word:

  • The SDK's HTTP/OCI download path wraps the reader in WithLegacyManifestPlacement(d.logger.Warn) (opa@v1.23.0/v1/download/download.go:394), so a legacy nested .manifest yields a warning, not a load failure (v1/bundle/bundle.go:1954-1962).
  • The hard error is only on a raw bundle.NewReader, i.e. the on-disk loader (v1/plugins/bundle/plugin.go:903). Cortex's SDK config (core/plugins/opa/plugin.go:339-372) has no persist/bundle directory and no signing block, so that loader is never used.
  • Probe: a tarball whose .manifest sits under bundle/ is accepted by 1.22.4 and rejected by 1.23.0's bundle.NewReader with bundle file "bundle/.manifest" must be at the bundle root — the path the on-disk loader takes, not the download path. A tarball with the manifest at the root, or with no .manifest at all (the minimal shape the plugin README documents), loads on both versions.
  • The other 1.23.0 items (Lucene Compile target, MySQL Compile hardening, rule-indexer work, json.pointer_escape) are either additions or touch the Compile API, which this plugin does not use.
  • ini 1.68.0 adds two opt-in fields only (PreserveEmptyShadowValues, EscapeSliceDelimiters), both default off.

Go directives: core/go.mod is go 1.26.10; opa 1.23.0 requires go 1.26.0.

Author: dependabot[bot] (CONTRIBUTOR — dependency bot)
Areas reviewed: go.mod/go.sum in core, cmd/cortex, cmd/cortex-envoy, cmd/agentop, scripts/readme-demo; OPA 1.23.0 release notes; the SDK bundle-loading paths; the OPA plugin config
Agent/IDE config (.claude/.vscode): none
Commits: 2 commits, all signed-off: yes
CI status: DCO passed; verify-pr-title queued, CodeRabbit skipped; no build/test workflows are attached to this head at review time
Not checked:

  • go mod tidy -diff in core and cmd/* — blocked: modernc.org/sqlite v1.56.0 is not in the local module cache and its zip host is unreachable from this sandbox. The version propagation itself was verified in all five modules.
  • a live bundle-server round trip — no bundle server or SPIFFE identity in this sandbox.

Verified by: go test ./plugins/opa/... at head (pass, and identical at base); bundle-shape probes at 1.22.4 vs 1.23.0 (root manifest, nested manifest, no manifest); go mod download zip-hash comparison for opa 1.23.0 and ini 1.68.0 (both match every changed go.sum).

Generated by repoman github-pr-review@af425c8.

This branch has not been deployed

No deployments
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 ready-for-ai-review Request automated AI code review from clawgenti

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant