RATATOSK
← All releases

Open Policy Agent (OPA)v1.23.0

Security 3Breaking changes 15Deprecations 1Important fixes 18Enhancements 14Dependency updates 21Other changes 49

Get Open Policy Agent (OPA) alerts

Email is sent weekly only when there are changes to check; critical security advisories are sent immediately.

Security3

MySQL Compile API rejects string built-ins

AffectsMySQL-target Compile API policies using startswith, endswith or contains

The generated LIKE filter could match rows the policy did not allow because MySQL’s default collation ignores case and accents. These policies now fail to compile instead of producing a filter.

Show release-note lines
### Compile API: no `startswith`, `endswith` or `contains` for MySQL ([#9624](https://github.com/open-policy-agent/opa/issues/9624))
Breaking change: the MySQL target rejects `startswith`, `endswith` and `contains`, as the SQLite target
already did. They were translated to `LIKE`, which is case- and accent-insensitive in MySQL's default
collations, so `startswith(input.fruits.name, "APP")` also matched `apple`. Policies using them now fail
to compile for `application/vnd.opa.sql.mysql+json`, and for multitarget requests that include `mysql`.
Reported by @kianwang0610, authored by @srenatus
- Hardening of the MySQL Compile API target: use of `startswith`, `endswith` and `contains` built-in functions is rejected
github.com/open-policy-agent/opa/releases/tag/v1.23.0

Magnitude bounds added to units.parse and units.parse_bytes

Affectspolicies or ad-hoc queries using units.parse or units.parse_bytes

Before this release, large-magnitude inputs could produce numbers far beyond the bound used by other number paths, adding evaluation latency when passed through policies or ad-hoc queries. Oversized inputs are now rejected with a clear error before expansion.

Show release-note lines
- topdown: Bound magnitude of units.parse/parse_bytes results ([#9404](https://github.com/open-policy-agent/opa/issues/9404)) reported and authored by @leandrocosta-git
github.com/open-policy-agent/opa/releases/tag/v1.23.0

net.cidr_merge panic fixed for IPv4-mapped CIDRs

Affectspolicies or queries using net.cidr_merge

When it received two or more IPv4-mapped IPv6 CIDRs, including duplicates, net.cidr_merge panicked and could crash the whole process. It now merges these inputs as plain IPv4 CIDRs; the first reported example returns ["10.0.0.0/7].

Show release-note lines
- topdown: Fix net.cidr_merge panic on IPv4-mapped IPv6 CIDRs ([#9528](https://github.com/open-policy-agent/opa/issues/9528)) reported and authored by @nikpivkin
github.com/open-policy-agent/opa/releases/tag/v1.23.0

Breaking changes15

Bundle roots now use the .manifest location

Affectsbundle directories, disk-loaded bundle tarballs, and bundles signed or verified with older OPA versions
Action requiredDisk-loaded bundle tarballs need .manifest at the archive root. Bundles signed with older OPA versions using opa sign <dir> or opa build -b <dir> need re-signing, and --exclude-files-verify patterns may need updating.
Removed innot stated

Previously, bundle contents, data placement, and signatures could vary with how the load path was typed; files above .manifest are now excluded, and commands other than opa build and opa sign may do so without warning. Bundle-plugin downloads over HTTP or from an OCI registry, and their persisted copies, continue to load when .manifest, .signatures.json, or patch.json is misplaced, with a warning.

Evidence“To avoid breaking existing deployments, bundles that the bundle plugin downloads over HTTP or from an OCI registry (and their persisted copies) are still loaded as before, and OPA logs a warning each time a bundle with a misplaced `.manifest`, `.signatures.json`, or `patch.json` is loaded.” open-policy-agent/opa/releases/tag/v1.23.0 ↗
Show release-note lines
- Enforcement of bundle structure: now rooted at their `.manifest` file
and signatures depend on how a path was typed.
github.com/open-policy-agent/opa/releases/tag/v1.23.0

Bundle roots now follow the .manifest directory

AffectsBundle directories with .manifest nested below the supplied path
Action requiredBundles signed by older OPA versions with opa sign <dir> or opa build -b <dir> must be re-signed; --exclude-files-verify patterns may need updating.

Previously, bundle contents and data placement could depend on the path used to load the bundle. Now the directory containing .manifest is the root, and files above it are excluded; only opa build and opa sign warn about excluded policy and data files.

Show release-note lines
Breaking change: OPA now treats the directory containing a bundle's `.manifest` file as the bundle root, as the
[bundle documentation](https://www.openpolicyagent.org/docs/management-bundles#bundle-file-format) describes.
Previously, the root depended on the path a bundle was loaded from, which made bundle contents, data placement,
- **Bundle directories** (`opa build -b`, `opa run -b`, `opa eval -b`, `opa sign --bundle`, ...) are rooted at
  the directory containing `.manifest`, even when it is nested below the provided path. Files above it are not
  part of the bundle. `opa build` and `opa sign` warn about policy and data files they leave out, but other
  commands do not, so keep other `.manifest` files (e.g., test fixtures) out of directories loaded as bundles.
github.com/open-policy-agent/opa/releases/tag/v1.23.0

Plan and wasm builds replace carried-in plans and resolvers

Affectsinput bundles carrying plans or wasm resolvers used with opa build -t plan or opa build -t wasm

Previously, carried-in plans and wasm resolvers were appended to the build; they are now replaced. Keeping those entrypoints in the built result requires supplying them as build-time arguments with -e.

Show release-note lines
- **`opa build -t plan` and `-t wasm`** replace any plan, or wasm resolvers that were carried in from the input bundles.
github.com/open-policy-agent/opa/releases/tag/v1.23.0

Bundle reader rejects SlashRooted and Passthrough manifests

AffectsGo API setups using bundle.Reader with SlashRooted or Passthrough directory loaders, or custom wrappers around directory loaders

With Reader.WithBaseDir, module paths include the manifest's directory, reported by directory loaders through RootOffset() string. Custom wrappers around directory loaders should forward RootOffset.

Show release-note lines
Go API: the `bundle.Reader` expects bundle-relative descriptor paths, so directory loaders configured with the
`SlashRooted` or `Passthrough` path formats now have their manifests rejected. When `Reader.WithBaseDir` is used,
module paths include the manifest's directory, which directory loaders report through a `RootOffset() string`
method. Custom loaders that wrap a directory loader should forward `RootOffset`.
github.com/open-policy-agent/opa/releases/tag/v1.23.0

Indexed object comprehension conflicts now raise eval_conflict_error on lookup

Affectspolicies using indexed object comprehensions

Previously, the cached build kept the last value when an indexed object comprehension produced different values for the same key. The conflict raises eval_conflict_error only when that group is looked up; an unlooked-up conflicting group still does not raise it.

Evidence“The build now returns the groups with a conflict, the cache frame records them, and looking up one of those groups raises the error, so groups that are never looked up still don't.” open-policy-agent/opa/pull/9613 ↗
Show release-note lines
- topdown: Report key conflicts in indexed object comprehensions ([#9613](https://github.com/open-policy-agent/opa/pull/9613)) authored by @srenatus
github.com/open-policy-agent/opa/releases/tag/v1.23.0

Default rule location text now includes the full statement

Affectsparsed AST or opa parse JSON location text for default rules(Inferred)

Previously, default rule location text contained only default, omitting the rule head contents.

Show release-note lines
- ast: Correct default rule location text ([#9516](https://github.com/open-policy-agent/opa/pull/9516)) authored by @charlieegan3
github.com/open-policy-agent/opa/releases/tag/v1.23.0

Negative-number AST location text now includes the full number

Affectsparsed AST location text for negative numeric terms(Inferred)

When a negative numeric term such as x := -1000 was parsed, its decoded location text was only -.

Show release-note lines
- ast: Fix negative number location text (for issue #9531) ([#9531](https://github.com/open-policy-agent/opa/issues/9531)) authored by @devjoshi2005, reported by @anderseknert
github.com/open-policy-agent/opa/releases/tag/v1.23.0

Function rule AST locations now cover the full statement

Affectsparsed AST locations for function rules without a body or value

For a rule such as f(1), Location.Text previously contained only f, rather than the whole rule.

Show release-note lines
- ast: Give a function without a body the location of its whole statement ([#9579](https://github.com/open-policy-agent/opa/pull/9579)) authored by @srenatus
github.com/open-policy-agent/opa/releases/tag/v1.23.0

types.Unmarshal enforces exact field names and JSON depth limits

Affectstype JSON decoded with types.Unmarshal from Go

Nested type JSON was re-decoded at every level, making decoding quadratic in nesting depth and letting deeply nested inputs bypass the JSON decoder's maximum-depth limit. Decoding is now linear; inputs beyond that limit return a max-depth error, and error messages differ.

Evidence“Field names now match exactly, where struct decoding matched them case-insensitively; otherwise only inputs past the max depth change outcome. Error messages differ.” open-policy-agent/opa/pull/9473 ↗
Show release-note lines
- types: Decode type JSON in linear time ([#9473](https://github.com/open-policy-agent/opa/pull/9473)) authored by @srenatus
github.com/open-policy-agent/opa/releases/tag/v1.23.0

Disk-loaded bundle tarballs now require a root-level .manifest

Affectssetups that load bundle tarballs from disk
Action requiredDisk-loaded bundle tarballs with .manifest at the archive root, rebuilt with opa build

Previously, a tarball with bundle/.manifest and bundle/data.json loaded, placing the data under data.bundle; this release rejects that tarball at load time.

Show release-note lines
- **Bundle tarballs** loaded from disk must have `.manifest` at the root of the archive. `opa build` always writes
  it there.
For example, consider this tarball, built without `opa build`:

```console
$ tar tzf bundle.tar.gz
bundle/.manifest
bundle/data.json
bundle/authz.rego
```
Previously, `opa run -b bundle.tar.gz` loaded it with `bundle/data.json` placed under `data.bundle`. It is now
rejected because `.manifest` is not at the root of the archive. Running `opa build -b bundle/` on the extracted
directory produces a bundle rooted at `bundle/`, with `data.json` placed at the root of `data`.
github.com/open-policy-agent/opa/releases/tag/v1.23.0

Bundle signature paths now use bundle-root-relative names with / separators

Affectssetups using .signatures.json, signatures created by older OPA versions, or --exclude-files-verify patterns
Action requiredBundles signed by older OPA versions with opa sign <dir> or opa build -b <dir> must be re-signed; --exclude-files-verify patterns may need updating.

Older signature paths did not follow this convention, so signatures from older OPA versions may be incompatible with this release.

Show release-note lines
- **Signatures**: file names in `.signatures.json` are relative to the bundle root, with `/` separators on every
  platform. Bundles signed by `opa sign <dir>` or `opa build -b <dir>` with older OPA versions must be re-signed,
  and `--exclude-files-verify` patterns may need updating.
github.com/open-policy-agent/opa/releases/tag/v1.23.0

Multiple-bundle build and signing paths changed

Affectssetups using opa build or opa sign with multiple bundles or bundle paths, including merges where bundles would occupy the same path

With multiple bundles, opa build places each bundle's files under the path supplied with -b, replaces leading .. segments with the referred directory name, and writes a new root .manifest; it fails if two bundles would occupy the same path. opa sign names files under each bundle's path, so signatures from separate source bundles do not verify a merged build output.

Show release-note lines
- **`opa build` with multiple bundles** places each bundle's files under the path it was given with `-b`, with a
  new `.manifest` at the root. Leading `..` segments are replaced with the name of the directory they refer to.
  Merging fails when two bundles would be placed under the same path. `opa sign` with multiple bundle paths
  names files under each bundle's path, like `opa build` does when merging. A merged `opa build` output has its
  own new `.manifest`, so signatures from multiple separate source bundles cannot be used to verify a merged build.
github.com/open-policy-agent/opa/releases/tag/v1.23.0

Bundle metadata restricted to the root and exact .manifest naming

Affectsbundles with metadata outside the root or a manifest filename other than .manifest
Action requiredBundle metadata must be at the bundle root, and the manifest must be named exactly .manifest.

Previously, a single file ending in .manifest could be treated as the manifest from any folder in the bundle. Now, only a file named exactly .manifest at the bundle root is treated as a manifest.

Show release-note lines
- `.manifest`, `.signatures.json`, and `patch.json` must be at the bundle root, and only files named exactly
github.com/open-policy-agent/opa/releases/tag/v1.23.0

Version-valued CLI compatibility flag replaces --v2-compatible

AffectsCLI commands using compatibility flags, especially commands opting into v2 behavior(Inferred)

The v2 opt-in previously used --v2-compatible. It now uses --compatible=v2; --compatible=v0 and --compatible=v1 select those modes, and other values are rejected. The existing --v0-compatible and --v1-compatible flags remain unchanged.

Evidence“Adds a single --compatible flag accepting v0, v1 or v2 and rejecting other values, so future versions don't need a flag each. The existing --v0-compatible and --v1-compatible flags are unchanged.” open-policy-agent/opa/pull/9496 ↗
Show release-note lines
- cmd: Add --v2-compatible flag ([#9251](https://github.com/open-policy-agent/opa/issues/9251)) authored by @sspaink, reported by @johanfylling
- cmd: Replace --v2-compatible with --compatible=<version> ([#9496](https://github.com/open-policy-agent/opa/pull/9496)) authored by @sspaink
github.com/open-policy-agent/opa/releases/tag/v1.23.0

Oversized requests now return HTTP 413 in v2-compatible mode

Affectsservers and Go integrations with v2-compatible mode enabled

Requests exceeding the configured body-size limit previously returned HTTP 400 even in v2-compatible mode. They now return HTTP 413; default mode still returns HTTP 400, and the error response body is unchanged.

Evidence“This change makes the server return HTTP 413 (Content Too Large) in v2-compatible mode, while keeping the existing HTTP 400 behavior in default mode. The error response body remains unchanged.” open-policy-agent/opa/pull/9497 ↗
Show release-note lines
- server: Fix oversized request body status in v2-compatible mode ([#9497](https://github.com/open-policy-agent/opa/pull/9497)) authored by @darshpatel1052
github.com/open-policy-agent/opa/releases/tag/v1.23.0

Deprecations1

Misplaced bundle files now produce load warnings

AffectsBundles downloaded by the bundle plugin over HTTP or from an OCI registry, and their persisted copies, with misplaced .manifest, .signatures.json, or patch.json files
Removed innot stated

These bundles still load in v1.23.0, with a warning each time, but will fail to load in a future OPA release.

Show release-note lines
To avoid breaking existing deployments, bundles that the bundle plugin downloads over HTTP or from an OCI registry
(and their persisted copies) are still loaded as before, and OPA logs a warning each time a bundle with a misplaced `.manifest`, `.signatures.json`,
or `patch.json` is loaded. **These bundles will fail to load in a future OPA release.** Rebuild them with
`opa build` to place the manifest at the root.
github.com/open-policy-agent/opa/releases/tag/v1.23.0

Important fixes18Silent failure4

  • Rule indexing for mixed-member in literals fixedSilent failure
    AffectsPolicies using in with literals that mix constants with refs or variables

    When the matching member was a ref or variable, the rule indexer could drop the rule, so its body never ran. With a default, this silently returned the default.

    - ast: Keep a rule indexed as "anything" for `in` with a var member ([#9506](https://github.com/open-policy-agent/opa/issues/9506)) authored by @srenatus, reported by @kholia
    github.com/open-policy-agent/opa/releases/tag/v1.23.0
  • Stdin import removal fixed in opa fmt --drop-v0-imports
    Affectspolicy formatted from stdin with opa fmt --drop-v0-imports(Inferred)

    When policy was read from stdin, opa fmt --drop-v0-imports ignored the flag and left imports it was meant to remove. It now removes the imports covered by the option, as it already did when formatting files.

    - cmd(fmt): Honor `--drop-v0-imports` when formatting stdin ([#9619](https://github.com/open-policy-agent/opa/pull/9619)) authored by @FayezBast
    github.com/open-policy-agent/opa/releases/tag/v1.23.0
  • opa inspect -a labels metadata display fixed
    Affectspolicies with rules annotated with labels metadata(Inferred)

    Previously, running opa inspect -a on these policies omitted the labels from its results. The results now include labels metadata for annotated rules.

    - cmd/inspect: Show labels metadata with -a ([#9504](https://github.com/open-policy-agent/opa/issues/9504)) authored by @srenatus, reported by @humbertoc-silva
    github.com/open-policy-agent/opa/releases/tag/v1.23.0
  • Nested comparison parentheses preserved by opa fmtSilent failure
    Affectspolicies with nested comparisons whose parentheses affect grouping or parsing

    When opa fmt formatted these comparisons, it could remove parentheses, changing the policy’s meaning or making it fail to compile; in some cases, the result silently changed from true to false. Formatting now keeps the necessary parentheses, so the formatted policy evaluates the same as the original.

    - format: Preserve nested comparison grouping ([#9407](https://github.com/open-policy-agent/opa/issues/9407)) authored by @rudraa2005, reported by @alecthomas
    github.com/open-policy-agent/opa/releases/tag/v1.23.0
  • Wasm with upserts now replace non-object values
    AffectsWasm evaluation of with expressions that upsert non-object values(Inferred)

    With input 123, input.foo with input.foo as input returned undefined under Wasm evaluation, while Rego evaluation returned 123.

    - wasm: Replace non-object values when upserting for with ([#6304](https://github.com/open-policy-agent/opa/issues/6304)) authored by @sspaink, reported by @srenatus
    github.com/open-policy-agent/opa/releases/tag/v1.23.0
  • OPA high-precision decimal comparison fixed
    Affectsdecimal-number comparisons involving values beyond float64 precision(Inferred)

    Distinct decimals with more than 15 significant digits and trailing zeros could round to the same float64, compare as equal, and produce non-transitive ordering. They are now compared exactly, including their ordering.

    - ast: Compare numbers beyond float64 precision exactly ([#9508](https://github.com/open-policy-agent/opa/pull/9508)) authored by @srenatus
    github.com/open-policy-agent/opa/releases/tag/v1.23.0
  • Rego v2 parsing of not with indexed set literals fixedSilent failure
    Affectspolicies using not with an indexed set literal under Rego v2

    Before, not {"foo"}["bar"] could produce different results in a query and a rule body, or a parse error. Under Rego v2, this syntax is now parsed as a reference on a set literal.

    - ast: Parse not {..}[..] as a ref on a set literal under v2 ([#9540](https://github.com/open-policy-agent/opa/issues/9540)) authored by @sspaink, reported by @anderseknert
    github.com/open-policy-agent/opa/releases/tag/v1.23.0
  • Corrected ceil and floor results for negative fractionsSilent failure
    Affectspolicies or queries calling ceil or floor on negative fractions between -1 and 0

    Previously, ceil(-0.5) returned 1 instead of 0, and floor(-0.5) returned 0 instead of -1. These calls now return 0 and -1, respectively.

    - topdown: Fix ceil and floor of negative fractions above -1 ([#9562](https://github.com/open-policy-agent/opa/issues/9562)) reported by @kroekle
    github.com/open-policy-agent/opa/releases/tag/v1.23.0
  • Plugin manager closes replaced Wasm resolvers
    AffectsSetups using the plugin manager with bundle updates that replace Wasm resolvers

    Before this change, replaced resolvers were left open, causing memory to grow with use; after a bundle update, old resolvers are closed unless retained in the new resolver set.

    - plugins: Close the Wasm resolvers a bundle update replaces ([#9513](https://github.com/open-policy-agent/opa/pull/9513)) authored by @jbpros
    github.com/open-policy-agent/opa/releases/tag/v1.23.0
  • Rego.Eval closes Wasm engines after evaluation
    AffectsRego.Eval with the Wasm target in the Go API

    Previously, engines created during evaluation were not closed, so memory grew with use.

    - rego: Close the Wasm engine after Rego.Eval ([#9513](https://github.com/open-policy-agent/opa/pull/9513)) authored by @jbpros
    github.com/open-policy-agent/opa/releases/tag/v1.23.0
  • Prepared queries can now close loaded Wasm resources
    AffectsGo integrations using prepared evaluation queries with Wasm(Inferred)

    When prepared queries loaded Wasm resolvers and left them open, memory grew with use. Closing a prepared query also closes its Wasm engine.

    - rego: Close the Wasm resolvers a prepared query loaded ([#9513](https://github.com/open-policy-agent/opa/pull/9513)) authored by @jbpros
    github.com/open-policy-agent/opa/releases/tag/v1.23.0
  • Strict built-in error reporting added to opa test
    Affectsopa test runs using --strict-builtin-errors(Inferred)

    Tests that produced built-in errors were reported as regular failures, even though the documented result is ERROR.

    - tester: Add --strict-builtin-errors to opa test ([#6816](https://github.com/open-policy-agent/opa/issues/6816)) authored by @oleksii-udovychenko, reported by @selaux
    github.com/open-policy-agent/opa/releases/tag/v1.23.0
  • Wasm engines closed after opa test evaluations
    Affectsopa test runs using the Wasm target

    Previously, test-created Wasm engines were left open, so memory grew with use.

    - tester: Close the Wasm engine after each test ([#9513](https://github.com/open-policy-agent/opa/pull/9513)) authored by @jbpros
    github.com/open-policy-agent/opa/releases/tag/v1.23.0
  • Wasm engine cleanup added to opa test benchmarks
    Affectsopa test benchmarks using the Wasm target

    The engines previously remained open, so memory grew with use. The benchmark runner now defers closing the prepared query and its Wasm engine.

    - tester: Close the Wasm engine of a benchmark ([#9513](https://github.com/open-policy-agent/opa/pull/9513)) authored by @jbpros
    github.com/open-policy-agent/opa/releases/tag/v1.23.0
  • Wasm resolver missing-result-key panic fixed
    AffectsWasm resolver setups

    When it received a result object with exactly one key named something other than result, the resolver passed the shape check and panicked while reading the missing key. It now returns the illegal result type error used for malformed results.

    - wasm: Return an error when the result has no "result" key ([#9541](https://github.com/open-policy-agent/opa/pull/9541)) authored by @jbpros
    github.com/open-policy-agent/opa/releases/tag/v1.23.0
  • OPA type checker again accepts empty collection iteration
    Affectspolicies that iterate over empty array or object literals, directly or through a variable

    From v1.21.0 through v1.22.1, these policies were rejected with a type error, although they compiled and evaluated on v1.20.2 and earlier. They now type-check and evaluate with no results from the empty collection.

    - ast: Allow iterating empty collections in the type checker ([#9517](https://github.com/open-policy-agent/opa/issues/9517)) authored by @sspaink, reported by @kholia
    github.com/open-policy-agent/opa/releases/tag/v1.23.0
  • Metadata processing fixed for location-free module parsing
    Affectsmodules parsed with ParserOptions.SkipLocations

    With locations skipped, the compiler previously relied on row numbers to associate metadata blocks and rule annotations with statements, but those rows were unavailable. The compiler can now process the metadata without locations; formatting and opa build omit comments because their original positions cannot be restored.

    - ast: Parse modules without locations ([#9485](https://github.com/open-policy-agent/opa/pull/9485)) authored by @srenatus
    github.com/open-policy-agent/opa/releases/tag/v1.23.0
  • Bundle reader module parsing capped at GOMAXPROCS concurrent modules
    Affectssetups that read bundles with OPA's bundle reader(Inferred)

    When reading a bundle with multiple modules, the reader previously started a goroutine for every module, allowing allocations from nearly all modules to remain held even though only GOMAXPROCS modules could make progress. In the ReadManyModules-16 benchmark, peak heap was 3.98% lower, with no measured change in sec/op.

    - bundle: Parse at most GOMAXPROCS modules at once ([#9484](https://github.com/open-policy-agent/opa/pull/9484)) authored by @srenatus
    github.com/open-policy-agent/opa/releases/tag/v1.23.0

Enhancements14

  • Compile API adds Lucene queries for Solr

    To use Request the target with Accept: application/vnd.opa.lucene.solr+json; it cannot be combined with other targets in a multitarget request.

    - Lucene (Solr) target for the Compile API
    github.com/open-policy-agent/opa/releases/tag/v1.23.0
  • New json.pointer_escape built-in
    - A new `json.pointer_escape` built-in function
    github.com/open-policy-agent/opa/releases/tag/v1.23.0
  • Solr Lucene query generation in the Compile API

    To use Request the Compile API with Accept: application/vnd.opa.lucene.solr+json.

    ### Lucene (Solr) target for the Compile API ([#9376](https://github.com/open-policy-agent/opa/pull/9376))
    The Compile API can now translate a policy into a Lucene query for Solr's `fq` or `q`, with
    `Accept: application/vnd.opa.lucene.solr+json`. The one unknown is the document searched:
    ```rego
    # METADATA
    # scope: package
    # compile:
    #   unknowns: [input.doc]
    package filters
    
    include if {
        input.doc.owner == input.user
        input.doc.level >= 3
        not input.doc.status == "draft"
    }
    ```
    For the user `alice`, this compiles to `(owner:"alice" AND level:[3 TO *] AND NOT status:"draft")`.
    Multi-valued fields are compared by their elements, as in `"a" in input.doc.tags`; `schemas`
    annotations declare which fields are, and
    [`solr_schema.rego`](https://www.openpolicyagent.org/filtering/solr_schema.rego) generates them from
    Solr's Schema API. The target can't be combined with others in a multitarget request.
    See [Lucene filters](https://www.openpolicyagent.org/docs/filtering/lucene).
    github.com/open-policy-agent/opa/releases/tag/v1.23.0
  • OPA parses generated bundle policies without source locations

    To use generated set to true in the bundle manifest

    A bundle whose policies are generated, for example from a policy database, can say so in its manifest:
    ```json
    {
      "revision": "...",
      "roots": ["authz"],
      "generated": true
    }
    ```
    OPA then parses its policies without source locations. In a benchmark of 20000 generated rules, that cut
    the memory the compiled policies hold by 40%. Annotations are kept. See the
    [manifest documentation](https://www.openpolicyagent.org/docs/management-bundles#bundle-file-format).
    github.com/open-policy-agent/opa/releases/tag/v1.23.0
  • Rule index narrows candidates for more policy forms
    ### Rule indexing covers more ways of saying "any of these"
    The rule index now narrows down rules written with:
    - a local iterating a literal set, array or object, in any indexable statement:
      `some g in {"devs", "ops"}; data.groups[g].members[input.subject]`;
    - collection lookups in the operands of `and` and `or`:
      `{data.groups.devs.members[input.subject]} or {data.groups.ops.members[input.subject]}`;
    - a collection lookup keyed by any element of a collection: `data.groups.devs.members[input.subjects[_]]`.
    See [Use indexed statements](https://www.openpolicyagent.org/docs/policy-performance#use-indexed-statements).
    - ast: Index a collection lookup keyed by an element of a collection ([#9461](https://github.com/open-policy-agent/opa/pull/9461)) authored by @srenatus
    - ast: Index collection lookups in `and`/`or` operands ([#9461](https://github.com/open-policy-agent/opa/pull/9461)) authored by @srenatus
    - ast: Index expressions over a local iterating a literal ([#9461](https://github.com/open-policy-agent/opa/pull/9461)) authored by @srenatus
    github.com/open-policy-agent/opa/releases/tag/v1.23.0
  • Added json.pointer_escape for JSON Pointer tokens
    ### New `json.pointer_escape` built-in function ([#9591](https://github.com/open-policy-agent/opa/issues/9591))
    Escapes a string so it can be used as one reference token of a JSON Pointer, as defined in RFC 6901.
    The characters `~` and `/` are replaced with `~0` and `~1`.
    For example: `json.pointer_escape(\"a/b~c\")` results in `\"a~1b~0c\"`.
    github.com/open-policy-agent/opa/releases/tag/v1.23.0
  • Incremental activation of generated bundles

    To use The bundle manifest must mark the bundle as generated with "generated": true.

    - plugins/bundle: Activate generated bundles incrementally ([#9359](https://github.com/open-policy-agent/opa/pull/9359)) authored by @srenatus
    github.com/open-policy-agent/opa/releases/tag/v1.23.0
  • OPA REPL accepts implicit function bodies
    - repl: Allow implicit function bodies ([#9539](https://github.com/open-policy-agent/opa/issues/9539)) authored by @devjoshi2005, reported by @anderseknert
    github.com/open-policy-agent/opa/releases/tag/v1.23.0
  • Constant-key references to empty-collection rules work with with
    - ast: Allow keys of empty collections in rules replaced by `with` ([#9529](https://github.com/open-policy-agent/opa/pull/9529)) authored by @sspaink
    github.com/open-policy-agent/opa/releases/tag/v1.23.0
  • Mixed rule kinds compile on disjoint reference heads
    - ast: Allow mixed rule kinds on disjoint ref heads ([#7182](https://github.com/open-policy-agent/opa/issues/7182)) authored by @oleksii-udovychenko, reported by @anderseknert
    github.com/open-policy-agent/opa/releases/tag/v1.23.0
  • AST JSON unmarshalling supports every expressions
    - ast: Decode `every` expressions from JSON ([#9544](https://github.com/open-policy-agent/opa/pull/9544)) authored by @srenatus
    github.com/open-policy-agent/opa/releases/tag/v1.23.0
  • AST JSON unmarshalling supports some declarations
    - ast: Decode `some` declarations from JSON ([#9544](https://github.com/open-policy-agent/opa/pull/9544)) authored by @srenatus
    github.com/open-policy-agent/opa/releases/tag/v1.23.0
  • Generated bundle policies parsed without source locations

    To use Mark the bundle's policies with generated: true in the bundle manifest.

    - bundle: Read generated bundles without locations ([#9359](https://github.com/open-policy-agent/opa/pull/9359)) authored by @srenatus
    github.com/open-policy-agent/opa/releases/tag/v1.23.0
  • Support for set types without of in types.Unmarshal
    - types: Decode set types without an element type ([#9544](https://github.com/open-policy-agent/opa/pull/9544)) authored by @srenatus
    github.com/open-policy-agent/opa/releases/tag/v1.23.0

Dependency updates21

    21 more, none mentioning security
    • - build(go): Bump to 1.27.4 ([#9543](https://github.com/open-policy-agent/opa/pull/9543)) authored by @srenatus
    • - build(deps): Bump github.com/agnivade/levenshtein from 1.2.1 to 1.2.2
    • - build(deps): Bump github.com/foxcpp/go-mockdns from 1.2.0 to 1.3.0
    • - build(deps): Bump github.com/gobwas/glob from 1.0.0 to 1.1.0
    • - build(deps): Bump github.com/huandu/go-sqlbuilder from 1.43.0 to 1.44.1
    • - build(deps): Bump github.com/klauspost/compress from 1.20.0 to 1.20.4
    • - build(deps): Bump github.com/lestrrat-go/jwx/v3 from 3.3.0 to 3.4.0
    • - build(deps): Bump github.com/prometheus/client_golang from 1.24.1 to 1.25.0
    • - build(deps): Bump github.com/sergi/go-diff from 1.4.0 to 1.4.5
    • - build(deps): Bump github.com/spf13/pflag from 1.0.10 to 1.1.0
    • - build(deps): Bump github.com/vektah/gqlparser/v2 from 2.5.58 to 2.5.64
    • - build(deps): bump go.opentelemetry.io deps from 1.46.0/0.71.0 to 1.47.0/0.72.0
    • - build(deps): Bump go.opentelemetry.io/proto/otlp from 1.11.0 to 1.11.1
    • - build(deps): Bump go.yaml.in/yaml/v3 from 3.0.5 to 3.0.6
    • - build(deps): Bump golang.org/x/sync from 0.23.0 to 0.25.0
    • - build(deps): Bump golang.org/x/term from 0.46.0 to 0.48.0
    • - build(deps): Bump golang.org/x/text from 0.42.0 to 0.44.0
    • - build(deps): Bump golang.org/x/net from v0.60.0 to v0.62.0 ([#9555](https://github.com/open-policy-agent/opa/pull/9555)) authored by @anderseknert
    • - build(deps): Bump google.golang.org/grpc from 1.84.0 to 1.85.0
    • - build(deps): Bump gopkg.in/ini.v1 from 1.67.3 to 1.68.0
    • - build(deps): Bump oras.land/oras-go/v2 from 2.6.2 to 2.7.0
    Other changes49

    Summaries are produced by AI, so they can be wrong, and they are provided without warranty.