Open Policy Agent v1.23.0
security+++++~~~~--*****!!
OPA v1.23.0 changes how bundles are structured and read. Bundle directories and tarballs must now have their .manifest file at the root, and .signatures.json paths are relative to the bundle root. The --v2-compatible flag is replaced by --compatible=<version>, and the release adds a new json.pointer_escape built-in along with many indexing and allocation improvements.
What changes for platform teams
Teams that build or load OPA bundles must restructure them so .manifest sits at the archive root and signature paths match, or bundle loads will fail. Pipelines that pass --v2-compatible must switch to --compatible=<version>.
Changes
- Website: Update security docssecurity
- Website: Add redirect for wrong security.txt pathsecurity
- Rego: Drop the test that Close does nothing on the default targetremoved
- Topdown: Remove stale comment re sync.Poolremoved
- Add sync pool for evalTermNext, improve hasCollisionschanged
- Allow iterate objects without allocationschanged
- Make sink writer perform on par with bytes.Bufferchanged
- Non-allocating out-of-bounds array.slicechanged
- Topdown: Make the partial object collision check linearchanged
- Cmd: Add --v2-compatible flagadded
- Repl: Allow implicit function bodiesadded
- Ast: Allow iterating empty collections in the type checkeradded
84 more lines
- Ast: Allow keys of empty collections in rules replaced by withadded
- Ast: Allow mixed rule kinds on disjoint ref headsadded
- Topdown: Add compliance cases for empty and undefined inputsadded
- Server: Fix oversized request body status in v2-compatible modefixed
- Ast: Correct default rule location textfixed
- Ast: Fix negative number location text (for issue #9531)fixed
- Topdown: Avoid compiling unused regexes in regex.template_matchfixed
- Topdown: Fix ceil and floor of negative fractions above -1fixed
- Topdown: Fix net.cidr_merge panic on IPv4-mapped IPv6 CIDRs (#9528) reported andfixed
- Enforcement of bundle structure: now rooted at their .manifest fileother
- Lucene (Solr) target for the Compile APIother
- Hardening of the MySQL Compile API target: use of startswith, endswith and contains built-in functions is rejectedother
- Improvements to the rule indexerother
- A new json.pointer_escape built-in functionother
- Bundle directories (opa build -b, opa run -b, opa eval -b, opa sign --bundle, ...) are rooted atother
- Bundle tarballs loaded from disk must have .manifest at the root of the archive. opa build always writesother
- Signatures: file names in .signatures.json are relative to the bundle root, with / separators on everyother
- Opa build with multiple bundles places each bundle's files under the path it was given with -b, with aother
- Opa build -t plan and -t wasm replace any plan, or wasm resolvers that were carried in from the input bundles.other
- .manifest, .signatures.json, and patch.json must be at the bundle root, and only files named exactlyother
- A local iterating a literal set, array or object, in any indexable statement:other
- Collection lookups in the operands of and and or:other
- A collection lookup keyed by any element of a collection: data.groups.devs.members[input.subjects[_]].other
- Ast: Index a collection lookup keyed by an element of a collectionother
- Ast: Index collection lookups in and/or operandsother
- Ast: Index expressions over a local iterating a literalother
- Ast: Keep a rule indexed as "anything" for in with a var memberother
- Rego: Compare indexed and unindexed evaluation for every index conditionother
- Topdown: Ask the index candidates whether a rule depends on unknownsother
- Topdown: Report key conflicts in indexed object comprehensionsother
- Cmd(fmt): Honor --drop-v0-imports when formatting stdinother
- Cmd/inspect: Show labels metadata with -aother
- Cmd: Replace --v2-compatible with --compatible=<version>other
- Compile: Compile without indices where nothing evaluatesother
- Compile: Release the checking compiler after a rego buildother
- Format: Preserve nested comparison groupingother
- Plugins/bundle: Activate generated bundles incrementallyother
- Plugins/logs: Copy JSON-shaped values natively for console logsother
- Plugins/logs: Split oversized chunks without decoding themother
- Plugins: Close the Wasm resolvers a bundle update replacesother
- Rego: Close the Wasm engine after Rego.Evalother
- Rego: Close the Wasm resolvers a prepared query loadedother
- Rego: Exclude wasm compile time from context timeout testother
- Storage/inmem: Speed up NonEmpty conflict checks (#9545) reported andother
- Tester: Close the Wasm engine after each testother
- Tester: Close the Wasm engine of a benchmarkother
- Tester: Do not wait forever to evaluate a closed engineother
- Wasm: Return an error when the result has no "result" keyother
- Wasm: Replace non-object values when upserting for withother
- Ast: Allocate each parser term cache entry onceother
- Ast: Allocate type tree children lazilyother
- Ast: Compare numbers beyond float64 precision exactlyother
- Ast: Compiler tweaks to improve perf (-12% allocs)other
- Ast: Decode every expressions from JSONother
- Ast: Decode some declarations from JSONother
- Ast: Give a function without a body the location of its whole statementother
- Ast: In lazyObj, check cache before digging up pathother
- Ast: Parse modules without locationsother
- Ast: Parse not {..}[..] as a ref on a set literal under v2other
- Ast: Probe base data collections without converting themother
- Ast: Reduce size of Head struct from 128 to 96 bytesother
- Ast: Report template string errors onceother
- Ast: Reuse compiled rules across compilesother
- Ast: Say when an array index is out of boundsother
- Ast: Set scan opts when needed to reduce allocsother
- Ast: Skip per-rule recursion check when graph sortsother
- Ast: Skip repeated rule names when resolving refsother
- Ast: Value only built-in type envother
- Ast: ast, bundle, plugins/bundle: remove rule reuseother
- Ast: don't copy expressions before rewritingother
- Bundle: Let the reader leave out rules the compiler can reuseother
- Bundle: Parse at most GOMAXPROCS modules at onceother
- Bundle: Read generated bundles without locationsother
- Eval: A few more fixes reducing allocationsother
- Eval: Store and retrieve call operands from poolother
- Topdown/walk: Alloc less when building walk pathsother
- Topdown: Allocate less in replace and replace_nother
- Topdown: Bound magnitude of units.parse/parse_bytes results (#9404) reported andother
- Topdown: Corpus casesother
- Topdown: Cover the ordering of values of different typesother
- Topdown: Cover time.date, clock, weekday and diff with small timestampsother
- Topdown: Lazily allocate comp. cache childrenother
- Topdown: Reuse pooled step continuation for bare termsother
- Topdown: Use YAML cases for replace testsother
38 maintenance lines (dependency bumps, CI, tests, docs)
- Rego: Test a Wasm resolver result not named "result"maintenance
- Tester: Add --strict-builtin-errors to opa testmaintenance
- Add blog post on opa-java-wasm moving to the OPA orgmaintenance
- Amend security reporting docs to cover scannersmaintenance
- Document number representation differences in Wasmmaintenance
- Explain http_request_duration_seconds bucketsmaintenance
- Fix broken links from link checker reportmaintenance
- Fix the examples of the data filtering fragmentmaintenance
- Fix typosmaintenance
- Make a few index examples more clearmaintenance
- Ocp: document git source depthmaintenance
- Ecosystem: Add formal.aimaintenance
- Website: Show live code query, highlight output some moremaintenance
- Types: Decode set types without an element typemaintenance
- Types: Decode type JSON in linear timemaintenance
- Util/test: don't panic in MakeTempFS when creating files failsmaintenance
- Dependency updates; notably:maintenance
- Bump to 1.27.4maintenance
- Bump github.com/agnivade/levenshtein from 1.2.1 to 1.2.2maintenance
- Bump github.com/foxcpp/go-mockdns from 1.2.0 to 1.3.0maintenance
- Bump github.com/gobwas/glob from 1.0.0 to 1.1.0maintenance
- Bump github.com/huandu/go-sqlbuilder from 1.43.0 to 1.44.1maintenance
- Bump github.com/klauspost/compress from 1.20.0 to 1.20.4maintenance
- Bump github.com/lestrrat-go/jwx/v3 from 3.3.0 to 3.4.0maintenance
- Bump github.com/prometheus/client_golang from 1.24.1 to 1.25.0maintenance
- Bump github.com/sergi/go-diff from 1.4.0 to 1.4.5maintenance
- Bump github.com/spf13/pflag from 1.0.10 to 1.1.0maintenance
- Bump github.com/vektah/gqlparser/v2 from 2.5.58 to 2.5.64maintenance
- Bump go.opentelemetry.io deps from 1.46.0/0.71.0 to 1.47.0/0.72.0maintenance
- Bump go.opentelemetry.io/proto/otlp from 1.11.0 to 1.11.1maintenance
- Bump go.yaml.in/yaml/v3 from 3.0.5 to 3.0.6maintenance
- Bump golang.org/x/sync from 0.23.0 to 0.25.0maintenance
- Bump golang.org/x/term from 0.46.0 to 0.48.0maintenance
- Bump golang.org/x/text from 0.42.0 to 0.44.0maintenance
- Bump golang.org/x/net from v0.60.0 to v0.62.0maintenance
- Bump google.golang.org/grpc from 1.84.0 to 1.85.0maintenance
- Bump gopkg.in/ini.v1 from 1.67.3 to 1.68.0maintenance
- Bump oras.land/oras-go/v2 from 2.6.2 to 2.7.0maintenance
Full release notes ↗ · all Open Policy Agent releases
written by claude-haiku-5-5, prompt 7cbe154, checked by publish rules