Skip to content

Bump github.com/open-policy-agent/opa from 1.21.2 to 1.21.3 - #161

Merged
xiwenc merged 1 commit into
mainfrom
dependabot/go_modules/github.com/open-policy-agent/opa-1.21.3
Oct 28, 2026
Merged

xiwenc merged 1 commit into
mainfrom
dependabot/go_modules/github.com/open-policy-agent/opa-1.21.3

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Oct 26, 2026

Copy link
Copy Markdown
Contributor

Bumps github.com/open-policy-agent/opa from 1.21.2 to 1.21.3.

Release notes

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

v1.21.3

Bundle signature verification could be side-stepped (GHSA-g2pf-6v5v-qcc8)

An attacker able to alter bundle bytes could supply arbitrary policy and data to an OPA that was configured to verify bundle signatures. This could happen if the attacker controls any of:

  • OPA bundle/discovery service (including an artifact store it uses)
  • MitM between OPA and bundle/discovery service
  • write access to a file:// bundle path or the bundle persistence directory

Two separate side-steps are fixed:

Issue 1. Signature verification keyed on keyid rather than on the signing block

OPA only required a .signatures.json file when signing.keyid was set, so a bundle stripped of its signature was accepted if only e.g. bundles[_].signing was set instead of bundles[_].signing.keyid. Verification now depends on the presence of a signing block, as documented; keyid only selects which key to use.

Affected:

  • bundles[_].signing or discovery.signing configured without keyid: an empty block, or one with only scope or exclude_files.
  • Embedders (SDK, custom plugins, v1/loader, v1/compile) calling bundle.NewVerificationConfig(keys, "", ...) with an empty key id.

Not affected:

  • Configurations with an explicit bundles[_].signing.keyid or discovery.signing.keyid.
  • opa run/opa eval/opa build with --verification-key, which defaults --verification-key-id to default. Passing --verification-key-id "" explicitly was affected.
  • Configurations with top-level keys but no signing block: not a verification opt-in before or after this fix. Unsigned bundles are still accepted, and OPA now logs a warning at startup for bundles in this state.

Workaround: on affected versions, set an explicit keyid on every bundle that must be signed:

bundles:
  authz:
    service: acmecorp
    resource: bundle.tar.gz
    signing:
      keyid: my_key # must name an entry under the top-level `keys`
discovery:
  resource: /discovery.tar.gz
  signing:
    keyid: my_discovery_key
keys:
</tr></table>

... (truncated)

Changelog

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

1.21.3

Security Fix: TODO-CVE-XXXX-XXXXX - Bundle signature verification could be side-stepped (GHSA-g2pf-6v5v-qcc8)

An attacker able to alter bundle bytes could supply arbitrary policy and data to an OPA that was configured to verify bundle signatures. This could happen if the attacker controls any of:

  • OPA bundle/discovery service (including an artifact store it uses)
  • MitM between OPA and bundle/discovery service
  • write access to a file:// bundle path or the bundle persistence directory

Two separate side-steps are fixed:

Issue 1. Signature verification keyed on keyid rather than on the signing block

OPA only required a .signatures.json file when signing.keyid was set, so a bundle stripped of its signature was accepted if only e.g. bundles[_].signing was set instead of bundles[_].signing.keyid. Verification now depends on the presence of a signing block, as documented; keyid only selects which key to use.

Affected:

  • bundles[_].signing or discovery.signing configured without keyid: an empty block, or one with only scope or exclude_files.
  • Embedders (SDK, custom plugins, v1/loader, v1/compile) calling bundle.NewVerificationConfig(keys, "", ...) with an empty key id.

Not affected:

  • Configurations with an explicit bundles[_].signing.keyid or discovery.signing.keyid.
  • opa run/opa eval/opa build with --verification-key, which defaults --verification-key-id to default. Passing --verification-key-id "" explicitly was affected.
  • Configurations with top-level keys but no signing block: not a verification opt-in before or after this fix. Unsigned bundles are still accepted, and OPA now logs a warning at startup for bundles in this state.

Workaround: on affected versions, set an explicit keyid on every bundle that must be signed:

bundles:
  authz:
    service: acmecorp
    resource: bundle.tar.gz
    signing:
      keyid: my_key # must name an entry under the top-level `keys`
discovery:
  resource: /discovery.tar.gz
  signing:
    keyid: my_discovery_key
keys:
my_key:
</tr></table>

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [github.com/open-policy-agent/opa](https://github.com/open-policy-agent/opa) from 1.21.2 to 1.21.3.
- [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.21.2...v1.21.3)

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

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file go Pull requests that update go code labels Oct 26, 2026
@xiwenc
xiwenc merged commit a443125 into main Oct 28, 2026
8 checks passed
@dependabot
dependabot Bot deleted the dependabot/go_modules/github.com/open-policy-agent/opa-1.21.3 branch October 28, 2026 05:36
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.

1 participant