Repository navigation
build(deps): Bump github.com/open-policy-agent/opa from 1.22.4 to 1.23.0 in /core - #2226
dependabot[bot] wants to merge 2 commits into
Conversation
|
Important Review skippedBot user detected. To trigger a single review, invoke the
|
|
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 If you change your mind, just re-open this PR and I'll resolve any conflicts on it. |
clawgenti
left a comment
There was a problem hiding this comment.
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.manifestat the root; signatures are relative to the root and older-signed bundles must be re-signed;-t plan/-t wasmreplace carried resolvers). Cortex loads policy only through the OPA SDK from a remote bundle:core/plugins/opa/plugin.go:339-382buildsservices+bundleswithresource: bundles?spiffe=…and polling, and sets nosigning/verificationblock and no disk-rooted bundle. A bundle built byopa buildalready has.manifestat 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: trueis unchanged. - Sums verified against
sum.golang.orgforopa v1.23.0andgopkg.in/ini.v1 v1.68.0, in each of the fivego.sumfiles the PR touches.Verify module graph is tidyis 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>
b42fed4 to
676619a
Compare
clawgenti
left a comment
There was a problem hiding this comment.
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 rejectingstartswith/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 Gobundle.Readerpath-format change does not apply — nothing in the repo importsopa/bundleoropa/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.Optionsstill hasConfig,Logger,ConsoleLogger,ReadyandV1Compatible(1.23.0 only addsV2Compatible), so the plugin's config compiles unchanged.- Go directives:
coreisgo 1.26.10; OPA 1.23.0 requiresgo 1.26.0— no workspace break. Thegopkg.in/ini.v1bump is OPA's own dependency (its 1.23.0go.modrequires 1.68.0). - Sums: both new entries match
sum.golang.orgexactly (opah1:tLgjdI44…, inih1: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 againstsum.golang.organd 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.
| 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 |
There was a problem hiding this comment.
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>
clawgenti
left a comment
There was a problem hiding this comment.
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.manifestyields 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 nopersist/bundle directory and no signing block, so that loader is never used. - Probe: a tarball whose
.manifestsits underbundle/is accepted by 1.22.4 and rejected by 1.23.0'sbundle.NewReaderwithbundle 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.manifestat 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 -diffincoreandcmd/*— blocked:modernc.org/sqlite v1.56.0is 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.
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.
... (truncated)
Changelog
Sourced from github.com/open-policy-agent/opa's changelog.
... (truncated)
Commits
7c0ba9dRelease v1.23.0 (#9636)51eddd0docs: Update builtin availability in other interpreters (#9611)5f45471compile: drop startswith/endswith/contains for the MySQL target (#9616)94618ddbuild(deps): bump the dependencies group across 2 directories with 8 updates ...30878bfdocs: fix the examples of the data filtering fragment (#9630)d49351acmd(fmt): honor--drop-v0-importswhen formatting stdin6824432ast: Add function for JSON pointer escape (#9598)7b037a9compile: compile without indices where nothing evaluates (#9605)e9ffcc5compile: release the checking compiler after a rego build (#9604)cec6860wasm: Update generated binaries