Skip to content

build(deps): bump github.com/open-policy-agent/opa from 1.20.1 to 1.21.2 - #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.21.2.

Release notes

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

v1.21.2

This release builds the OPA binary artifacts with the latest version of Go (v1.27.2), its standard library, and the golang.org/x/net dependency (v0.60.0).

See these security advisories:

Furthermore, it addresses a mismatch in how encoded slashes were handled in the input to a basic authorization policy and the Data API (#9323, reported by @​abhishekkushwaha4u, fixed by @​sspaink).

v1.21.1

This release fixes a compiler regression introduced in OPA v1.21.0.

Fix some … in/every in comprehensions nested in object and set literals (#9280)

A comprehension using some … in or every in its body, nested inside an object or set literal, was wrongly treated as ground, so the compiler skipped rewriting it. some … in then failed with rego_unsafe_var_error; every caused a compiler panic:

package example
p := {"k": [r.a | some r in input.xs]}           # rego_unsafe_var_error: var r is unsafe
q := {[1 | every x in input.xs { x > 0 }]}       # panic

Array literals weren't affected, and neither were literals that contain some other non-ground term.

authored by @​srenatus, reported by @​tun0

v1.21.0

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

  • Improved rule indexing
  • Improved rule recursion check
  • YAML is parsed against the 1.2 core schema (breaking change)

Rules with general refs no longer collide in the recursion check (#6813)

Before, this was a recursion error:

package play
p[x].foo.bar if {
x := "a"
not p[x].foo.baz
}
</tr></table>

... (truncated)

Changelog

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

1.21.2

This release builds the OPA binary artifacts with the latest version of Go (v1.27.2), its standard library, and the golang.org/x/net dependency (v0.60.0).

See these security advisories:

Furthermore, it addresses a mismatch in how encoded slashes were handled in the input to a basic authorization policy and the Data API (#9323, reported by @​abhishekkushwaha4u, fixed by @​sspaink).

1.21.1

This release fixes a compiler regression introduced in OPA v1.21.0.

Fix some … in/every in comprehensions nested in object and set literals (#9280)

A comprehension using some … in or every in its body, nested inside an object or set literal, was wrongly treated as ground, so the compiler skipped rewriting it. some … in then failed with rego_unsafe_var_error; every caused a compiler panic:

package example
p := {"k": [r.a | some r in input.xs]}           # rego_unsafe_var_error: var r is unsafe
q := {[1 | every x in input.xs { x > 0 }]}       # panic

Array literals weren't affected, and neither were literals that contain some other non-ground term.

authored by @​srenatus, reported by @​tun0

1.21.0

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

  • Improved rule indexing
  • Improved rule recursion check
  • YAML is parsed against the 1.2 core schema (breaking change)

Rules with general refs no longer collide in the recursion check (#6813)

Before, this was a recursion error:

package play
p[x].foo.bar if {
</tr></table>

... (truncated)

Commits
  • 3f7474e Release 1.21.2
  • a48c42a server: resolve encoded request paths consistently in authorizer and handlers...
  • 60edfb2 build: bump go (1.27.1 -> 1.27.2) (#9340)
  • 2a109e5 Prepare v1.21.1 release
  • 9057ccb ast: treat SomeDecl/Every exprs as non-ground in Expr.IsGround
  • dc6269f Release v1.21.0 (#9258)
  • f6aa85f ast: count a ref once when an index entry replaces its var entry
  • b7a4a42 build(deps): bump the dependencies group across 2 directories with 11 updates
  • 3f11d3a docs: update Agent Evidence Admission repo links (#9255)
  • 2dcd8ab topdown: fix flaky TestRegexBuiltinCache (#9254)
  • 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 from fb6407b to a66260a Compare October 19, 2026 19:43
Bumps [github.com/open-policy-agent/opa](https://github.com/open-policy-agent/opa) from 1.20.1 to 1.21.2.
- [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.21.2)

---
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 force-pushed the dependabot/go_modules/github.com/open-policy-agent/opa-1.21.1 branch from a66260a to 53ca793 Compare October 19, 2026 19:45
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.

2 participants