Practical technical guides / Recent development: OPA v1.23.0 (2026-11-26)

OPA 1.23 Roots Bundles at Their .manifest File: Re-Sign and Check Layouts Before Upgrading

OPA v1.23.0 (26 November 2026) roots bundles at .manifest. Measured: nested tarballs fail, files above the manifest drop out silently, old signatures stop verifying.

By Sandeep Belgavi · Published 2026-11-29

Where OPA 1.23 roots a bundle
Original explanatory diagram; synthetic values where shown.

OPA v1.23.0 (26 November 2026) roots bundles at .manifest. Measured: nested tarballs fail, files above the manifest drop out silently, old signatures stop verifying.

What changed on 26 November 2026

Open Policy Agent v1.23.0 was released on 26 November 2026. Its headline breaking change is in how bundles are read. Before this release, the root of a bundle depended on the path it was loaded from. From v1.23.0, the directory containing the bundle's .manifest file is the root, as the bundle documentation always described. The change is PR 9459, merged on 30 October 2026 and first released in v1.23.0.

That sounds like a tidy-up, and for bundles produced by opa build it is: opa build already writes .manifest at the root. For bundles assembled by hand, by CI scripts or by other tools, three things can change: whether the bundle loads at all, where its data appears under data, and whether its signatures verify. One of those changes is silent. This guide explains each with measurements from the released binaries, and gives a check to run before upgrading.

The measurements used the Windows builds of OPA v1.22.4 and v1.23.0 from the GitHub releases. Both matched their published SHA256 checksums. The bundles are synthetic policies for the returns desk of Belgavi's Book Store. The companion example opa_bundle_root_check contains the probe script and a checker for bundle file lists.

Tarballs must have .manifest at the archive root

The release notes use this example: a tarball whose members all sit under a bundle/ directory.

$ tar tzf nested.tar.gz
bundle/.manifest
bundle/data.json
bundle/authz.rego

On v1.22.4, opa eval -b nested.tar.gz data loads it, and the contents of data.json appear under data.bundle, because the directory name became part of the data path. On v1.23.0 the same command exits with status 2:

loading error: bundle nested.tar.gz: bundle file "nested.tar.gz\bundle\.manifest" must be at the bundle root

This failure is loud and easy to fix: rebuild with opa build -b bundle/, which roots the bundle at bundle/ and places data.json at the root of data. Note the second change hiding in the fix. Policies that read data.bundle.limits must now read data.limits.

Directories: files above the manifest silently drop out

The quieter case is a directory bundle whose .manifest is not at the top of the path you pass with -b. The probe uses this layout:

store/
  data.json              {"limits": {"refund_days": 30}}
  shared/helpers.rego
  policies/
    .manifest
    authz.rego           allow if input.days_since_delivery <= data.limits.refund_days
    orders/data.json     {"max_items": 20}
opa eval -b store datav1.22.4v1.23.0
Bundle rootstore/store/policies/
data.json at the toploaded, data.limits.refund_days = 30not part of the bundle
shared/helpers.regoloadednot part of the bundle
orders/data.jsondata.policies.ordersdata.orders
Messagesnonenone

opa eval exits 0 on both versions and prints no warning. The decision changes anyway. With the input {"days_since_delivery": 10}, opa eval -b store -i in.json data.bookstore.returns.allow prints true on v1.22.4 and nothing on v1.23.0, still with exit status 0: the rule reads data.limits.refund_days, which is no longer in the bundle, so allow is undefined. A caller that treats undefined as deny now refuses every refund; one that defaults to allow approves every refund. The release notes are explicit that only opa build and opa sign warn about files they leave out. The probe confirms it: opa build -b store on v1.23.0 prints

Warning: bundle "store" is rooted at "store\policies", which contains its manifest. These files are not included in the bundle:
  store\data.json
  store\shared\helpers.rego

So run opa build on every directory bundle as part of the upgrade check, even if you deploy directories, and treat that warning as a failure in CI.

A second .manifest elsewhere in the tree, for example under tests/fixtures, was already an error before this release. Both versions reject it with exit status 2; only the message changed, to "bundle contains manifest files in multiple directories". Only files named exactly .manifest count now, so a file called orders.manifest is no longer treated as a manifest.

Signatures must be re-signed

Bundle signatures list every file with a hash. Before v1.23.0, the file names in .signatures.json depended on the path given to opa sign and, on Windows, used backslashes. The probe signed the same bundle with an HS256 demonstration secret, then verified it with opa build --verification-key:

Signed byNames in the signatureVerified by v1.22.4Verified by v1.23.0
v1.22.4, opa sign --bundle signed/bundlesigned\bundle\.manifest, ...yes, when loaded with the same path stringno: "file .manifest not included in bundle signature"
v1.23.0, same command.manifest, authz.rego, data.jsonno: "file signed\bundle\.manifest not included"yes, from any working directory

Even v1.22.4 refused its own signature when the bundle was loaded as bundle from a different directory, which is the path dependence the change removes. The practical consequence is a cutover. A signature from one side of the change does not verify on the other, so you cannot re-sign first and upgrade later, or the reverse. Plan one of these:

  • upgrade every OPA that verifies the bundle, then re-sign and publish, accepting a window in which new OPAs reject the old signature; or
  • publish a re-signed bundle under a new name or path that only upgraded OPAs fetch, and switch configuration as each fleet upgrades.

--exclude-files-verify patterns also follow the new root-relative names, so review them during the same change.

Remote bundles keep working, for now

To avoid breaking running deployments, bundles that the bundle plugin downloads over HTTP or from an OCI registry are still loaded the old way in v1.23.0. OPA logs a warning each time it loads one with a misplaced .manifest, .signatures.json or patch.json. The release notes say these bundles will fail to load in a future release. Search your OPA logs for that warning after upgrading; every hit is a bundle to rebuild before the next upgrade.

A pre-upgrade check

  1. List every bundle source: directories passed to opa run -b or opa eval -b, tarballs on disk, and bundles served to the bundle plugin.
  2. For each directory, run opa build -b <dir> with v1.23.0 and fail on the "not included in the bundle" warning.
  3. For each tarball, list its members and check that .manifest, .signatures.json and patch.json sit at the root.
  4. Diff the data document of each bundle between v1.22.x and v1.23.0, for example with opa eval -b <bundle> data. Any path that moved needs the policies that read it updated.
  5. Re-sign signed bundles with v1.23.0 as part of a planned cutover.
  6. After the upgrade, alert on the misplaced-file warning for remote bundles.

The example's checker takes a bundle's file list and reports the new root, the files left out, where each data.json lands before and after, and signature names that are not root-relative. It models the rules in the release notes; the measured table above is the ground truth for the cases it covers.

Other changes in v1.23.0

The release also hardens the MySQL target of the Compile API, which now rejects the startswith, endswith and contains built-ins. It adds a Lucene (Solr) target and a json.pointer_escape built-in. Read the full notes if you use the Compile API; this guide covers only the bundle change.

Limits of these measurements

The probe ran on Windows, so error messages show backslashes; the rules are the same on Linux. It covered opa eval, opa build and opa sign with an HS256 shared secret, not a running server with discovery, and it did not test Wasm or plan targets, whose resolver handling also changed in this release.

Primary references and authorship

Sources checked 2026-11-29. Original explanation and synthetic examples by Sandeep Belgavi. Companion code: Sandeep-BA/agent-decision-lab/examples/python/opa_bundle_root_check. Views are my own and do not represent any employer, past or present.