github open-policy-agent/opa v1.14.0

14 hours ago

This release contains a mix of new features, performance improvements, and bugfixes. Notably:

  • Improved rule indexing of variable assignments and x in {...} expressions
  • Support for --h2c with unix domain socket for opa run
  • A new glossary tooltip for technical terms in the docs
  • Fixes published in the v1.13.1 and v1.13.2 releases

Improved rule indexing of variable assignments and x in {...} expressions (#1841)

With this change, the rule indexer will index expressions like:

allow if input.role in {"admin", "user"}

On lookup, the rule body will only be returned if input.role is either one of "admin" or "user".

The reverse case is also indexed:

allow if "admin" in input.roles

in which the searched collection is unknown.

Authored by @srenatus reported by @nischalsheth

Runtime, SDK, Tooling

  • cmd,run: Support --h2c with unix domain socket (UDS) (#8282) authored by @srenatus reported by @theJC
  • cmd,tester: Add line number next to test file in pretty format (#8328) authored by @sspaink reported by @anderseknert
  • plugins: Fix race accessing registeredTriggers (#8363) reported and authored by @szuecs
  • rego: Add ResultValue[T]() helper method (#8320) authored by @srenatus
  • runtime: Add custom storage backend registration API (#8277) authored and reported by @alex60217101990
  • topdown: Add config option to disable named inter-query built-in cache (#7519) authored by @sspaink reported by @johanfylling

Compiler, Topdown and Rego

Docs, Website, Ecosystem

Miscellaneous

  • maintainers: Moving nilekhc to emeritus, and renew maintainer terms (#8276) authored by @JaydipGabani
  • ast: Add public method to extend the compliance test cases with IR plans (#7556) authored by @sspaink reported by @shomron
  • ast: Tiny nitpicky cleanup (#8309) authored by @srenatus
  • chore: Clean up bundle storage tests (#8267) authored by @anderseknert
  • chore: Remove unnecessary comment from bundle JWT verification impl (#8354) authored by @johanfylling
  • ci: Bump golangci-lint (v2.9.0), fix issues (#8314) authored by @srenatus
  • ci: Harden and update all GH Actions workflows (#8356, #8377, #8368 authored by @philipaconrad and @srenatus
  • go: Cleanup old build flags (#8314) authored by @srenatus
  • rego: Remove superfluous package import of plugins (#6754) authored by @srenatus reported by @oxisto
  • tests: Extract runtime Info to new package (#8362) authored by @charlieegan3
  • tests: Fix BenchmarkFunctionArgumentCounts query (#8327) authored by @alex60217101990
  • tests: Disable rule indexing for benchmark (#8375) authored by @srenatus
  • workflows: Add nightly vuln checks for released versions/images (#8336 #8339) authored by @srenatus
  • Dependency updates; notably:
    • build: bump golang from 1.25.6 to 1.26.0
    • build(deps): build(deps): bump go.opentelemetry.io deps from 1.39.0/0.64.0 to 1.40.0/0.65.0
      Applying fix for GHSA-9h8m-3fm2-qjrq
    • build(deps): bump github.com/dgraph-io/badger/v4 from 4.9.0 to 4.9.1
    • build(deps): bump github.com/huandu/go-sqlbuilder from 1.39.0 to 1.39.1
    • build(deps): bump golang.org/x/net from 0.49.0 to 0.50.0
    • build(deps): bump golang.org/x/text from 0.33.0 to 0.34.0
    • build(deps): bump google.golang.org/grpc from 1.78.0 to 1.79.1
    • build(deps): bump go.opentelemetry.io deps from 1.39.0/0.64.0 to 1.40.0/0.65.0

Don't miss a new opa release

NewReleases is sending notifications on new releases.