Skip to content

build(deps): bump github.com/open-policy-agent/opa from 1.18.2 to 1.19.0 - #3231

Merged
rhafer merged 1 commit into
mainfrom
dependabot/go_modules/github.com/open-policy-agent/opa-1.19.0
Aug 3, 2026
Merged

build(deps): bump github.com/open-policy-agent/opa from 1.18.2 to 1.19.0#3231
rhafer merged 1 commit into
mainfrom
dependabot/go_modules/github.com/open-policy-agent/opa-1.19.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Aug 3, 2026

Copy link
Copy Markdown
Contributor

Bumps github.com/open-policy-agent/opa from 1.18.2 to 1.19.0.

Release notes

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

v1.19.0

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

  • A fixed SQL injection vector in the Compile API
  • Stricter safety checking for Rego assignments (:=)
  • A cgo-free, faster WebAssembly runtime (wazero replaces wasmtime-go)
  • Startup warnings for unknown configuration options
  • A new strings.split_n built-in function
  • A REPL line reader that handles pasted input correctly, migrating existing history files

Fix SQL injection vector in Compile API: Quote SQL filter field identifiers (#8945)

The field names in the SQL emitted by the Compile API come from partially evaluated refs, so a policy that selects a dynamic key — such as input.fruits[input.column] — puts caller-controlled text in an identifier position. That text was emitted verbatim, which turns

WHERE fruit.name = 'allowed'

into

WHERE fruit.name = 'allowed' OR 1=1 -- = 'allowed'

and an application appending the filter to its query returns rows the policy denies.

Field segments that are not bare identifiers are now quoted at the UCAST-to-SQL boundary, with any embedded quote character escaped. Ordinary column names stay unquoted, so existing filters keep their current shape and remain case-insensitive on Postgres.

Authored by @​thevilledev

Behavior change: stricter safety for assignment (:=) (#3546)

The assignment operator (:=) is documented as "syntactic sugar for =, local variable creation, and additional compiler checks," and the safety checker reflects that: after rewriting, := is treated identically to = (unification), so an assignment's right-hand side can be made safe by unifying "backwards" through the left-hand side. This means policies like x := y; x = 7 compile (binding y to 7) even though y is never assigned, and x := y; obj[x] can silently degrade an expected constant-time lookup into full iteration.

This change makes the right-hand-side of := be treated as a read that must be made safe by other expressions, and can no longer be satisfied through the left-hand-side. Affected policies that previously compiled now fail with a rego_unsafe_var_error. Reference iteration on the right-hand-side (e.g. some k; v := obj[k]) is unaffected.

... (truncated)

Changelog

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

1.19.0

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

  • A fixed SQL injection vector in the Compile API
  • Stricter safety checking for Rego assignments (:=)
  • A cgo-free, faster WebAssembly runtime (wazero replaces wasmtime-go)
  • Startup warnings for unknown configuration options
  • A new strings.split_n built-in function
  • A REPL line reader that handles pasted input correctly, migrating existing history files

Fix SQL injection vector in Compile API: Quote SQL filter field identifiers (#8945)

The field names in the SQL emitted by the Compile API come from partially evaluated refs, so a policy that selects a dynamic key — such as input.fruits[input.column] — puts caller-controlled text in an identifier position. That text was emitted verbatim, which turns

WHERE fruit.name = 'allowed'

into

WHERE fruit.name = 'allowed' OR 1=1 -- = 'allowed'

and an application appending the filter to its query returns rows the policy denies.

Field segments that are not bare identifiers are now quoted at the UCAST-to-SQL boundary, with any embedded quote character escaped. Ordinary column names stay unquoted, so existing filters keep their current shape and remain case-insensitive on Postgres.

Authored by @​thevilledev

Behavior change: stricter safety for assignment (:=) (#3546)

The assignment operator (:=) is documented as "syntactic sugar for =, local variable creation, and additional compiler checks," and the safety checker reflects that: after rewriting, := is treated identically to = (unification), so an assignment's right-hand side can be made safe by unifying "backwards" through the left-hand side. This means policies like x := y; x = 7 compile (binding y to 7) even though y is never assigned, and x := y; obj[x] can silently degrade an expected constant-time lookup into full iteration.

This change makes the right-hand-side of := be treated as a read that must be made safe by other expressions, and can no longer be satisfied through the left-hand-side. Affected policies that previously compiled now fail with a rego_unsafe_var_error. Reference iteration on the right-hand-side (e.g. some k; v := obj[k]) is unaffected.

... (truncated)

Commits
  • 1e32c79 Prepare v1.19.0 release (#8955)
  • db035b0 Add support for Go 1.27 & jsonv2 (#8947)
  • 27fe5ce ast: Fix leaky future.keywords.not import in Rego v0 (#8953)
  • ab21870 format: Keep rule body inline when the head spans multiple lines (#8904)
  • 95090fa Add strings.split_n built-in function (#8915)
  • 12a86ed build(deps): bump find-my-way and prisma in /e2e/api/compile/prisma
  • 18815e2 build(deps): bump the dependencies group across 2 directories with 5 updates
  • f1e2ac0 build(deps): bump postcss from 8.5.15 to 8.5.23 in /docs
  • d9c7856 build(deps): bump js-yaml from 5.2.1 to 5.2.2 in /docs
  • 69d2cc0 tester: make Result JSON round-trippable (#8946)
  • Additional commits viewable in compare view

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file go Pull requests that update go code labels Aug 3, 2026
@codacy-production

codacy-production Bot commented Aug 3, 2026

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 complexity · 0 duplication

Metric Results
Complexity 0
Duplication 0

View in Codacy

🟢 Coverage ∅ diff coverage · 0.00% coverage variation

Metric Results
Coverage variation 0.00% coverage variation (-1.00%)
Diff coverage diff coverage

View coverage diff in Codacy

Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (9df3881) 83927 19257 22.94%
Head commit (2bb3e8f) 83927 (+0) 19255 (-2) 22.94% (0.00%)

Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>

Diff coverage details
Coverable lines Covered lines Diff coverage
Pull request (#3231) 0 0 ∅ (not applicable)

Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@rhafer
rhafer enabled auto-merge (rebase) August 3, 2026 13:37
Bumps [github.com/open-policy-agent/opa](https://github.com/open-policy-agent/opa) from 1.18.2 to 1.19.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.18.2...v1.19.0)

---
updated-dependencies:
- dependency-name: github.com/open-policy-agent/opa
  dependency-version: 1.19.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/github.com/open-policy-agent/opa-1.19.0 branch from ab03d70 to 2bb3e8f Compare August 3, 2026 14:18
@rhafer
rhafer merged commit e12966a into main Aug 3, 2026
62 of 63 checks passed
@rhafer
rhafer deleted the dependabot/go_modules/github.com/open-policy-agent/opa-1.19.0 branch August 3, 2026 15:00
sdwilsh pushed a commit to sdwilsh/ansible-playbooks that referenced this pull request Aug 4, 2026
#1812)

##### [\`7.4.0\`](https://github.com/opencloud-eu/opencloud/blob/HEAD/CHANGELOG.md#740---2026-08-03)

##### ❤️ Thanks to all contributors! ❤️

[@AlexAndBear](https://github.com/AlexAndBear), [@JammingBen](https://github.com/JammingBen), [@aduffeck](https://github.com/aduffeck), [@dschmidt](https://github.com/dschmidt), [@fschade](https://github.com/fschade), [@michaelstingl](https://github.com/michaelstingl), [@pbleser-oc](https://github.com/pbleser-oc), [@rhafer](https://github.com/rhafer), [@schweigisito](https://github.com/schweigisito), [@v-scharf](https://github.com/v-scharf)

##### 📈 Enhancement

- Do not check ignored paths \[[#3233](opencloud-eu/opencloud#3233)]
- Extend posixfs consistency check \[[#3220](opencloud-eu/opencloud#3220)]
- Improve reindex command \[[#3213](opencloud-eu/opencloud#3213)]
- Reindex spaces concurrently \[[#3207](opencloud-eu/opencloud#3207)]
- feat: add announcement banner \[[#3189](opencloud-eu/opencloud#3189)]
- feat: add space viewer with versions role \[[#2961](opencloud-eu/opencloud#2961)]

##### 🐛 Bug Fixes

- fix(runtime): log service startup errors instead of printing them beside the log \[[#3140](opencloud-eu/opencloud#3140)]
- fix(posixfs scan): Setup logger for scan command \[[#3185](opencloud-eu/opencloud#3185)]

##### ✅ Tests

- api-test: mark group last-manager removal scenario as flaky \[[#3194](opencloud-eu/opencloud#3194)]
- rerun flaky tests \[[#3183](opencloud-eu/opencloud#3183)]
- api-test: fix removeAccessToDrive.feature:145 \[[#3179](opencloud-eu/opencloud#3179)]
- api-test: cover additional unified roles in acceptance tests \[[#3169](opencloud-eu/opencloud#3169)]
- test(apiAuthApp): fix flaky token pattern \[[#3163](opencloud-eu/opencloud#3163)]
- test(apiArchiver): the single-resource archive is named after the resource \[[#3080](opencloud-eu/opencloud#3080)]
- test(coreApiWebdavUploadTUS): assert etag and permissions on the finalizing TUS chunk \[[#3078](opencloud-eu/opencloud#3078)]
- test(coreApiWebdavOperations): download a file with a literal "%" via its oc:downloadURL \[[#3079](opencloud-eu/opencloud#3079)]

##### 📚 Documentation

- maint: clean-up auth-app documentation \[[#3155](opencloud-eu/opencloud#3155)]
- ci: sync tests/README.md to docs \[[#3164](opencloud-eu/opencloud#3164)]

##### 📦️ Dependencies

- \[full-ci] chore: bump web to v7.3.0 \[[#3223](opencloud-eu/opencloud#3223)]
- build(deps): bump github.com/open-policy-agent/opa from 1.18.2 to 1.19.0 \[[#3231](opencloud-eu/opencloud#3231)]
- build(deps): bump google.golang.org/grpc from 1.82.0 to 1.83.0 \[[#3232](opencloud-eu/opencloud#3232)]
- chore(idp): bump dependencies \[[#3226](opencloud-eu/opencloud#3226)]
- build(deps): bump github.com/nats-io/nats-server/v2 from 2.14.3 to 2.14.4 \[[#3221](opencloud-eu/opencloud#3221)]
- build(deps): bump github.com/go-ldap/ldap/v3 from 3.4.13 to 3.4.14 \[[#3222](opencloud-eu/opencloud#3222)]
- build(deps): bump github.com/prometheus/client\_golang from 1.23.2 to 1.24.1 \[[#3218](opencloud-eu/opencloud#3218)]
- build(deps): bump github.com/gabriel-vasile/mimetype from 1.4.13 to 1.4.15 \[[#3217](opencloud-eu/opencloud#3217)]
- build(deps): bump golang.org/x/net from 0.56.0 to 0.57.0 \[[#3136](opencloud-eu/opencloud#3136)]
- build(deps): bump github.com/beevik/etree from 1.6.0 to 1.7.0 \[[#3134](opencloud-eu/opencloud#3134)]

Co-authored-by: renovate[bot] <29139614+renovate[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.

1 participant