Repository navigation
v0.9.0
Released 2026-10-03
Moves to OPA v1.21.0, which carries two breaking changes of its own. The plugin code is unchanged: internal/ has no non-test changes since v0.8.0, and every AuthZEN endpoint behaves identically. The minor bump is for what OPA now does to your policies and YAML, not for anything the plugin does.
Changed
- Breaking (from OPA v1.21.0): the type checker now types empty composite literals as empty (open-policy-agent/opa#7275). Selecting from or iterating an empty literal —
some x in [],{}.foo— and comparing an empty object or array literal against a value whose type cannot be empty are nowrego_type_errors, so a policy that compiled under v0.8.0 can fail to load. Usecount(x) == 0to test for emptiness. The bundled examples underexample/are unaffected; one test policy in this repository usedsome u in []and was rewritten. - Breaking (from OPA v1.21.0): YAML is parsed against the 1.2 core schema (open-policy-agent/opa#5754). The bare words
y,n,yes,no,onandoffare now strings rather than booleans everywhere OPA reads YAML, which includes the config file that carriesplugins.authzen,--datafiles, bundles, andyaml.unmarshal.trueandfalseare unaffected. If a config or data file relied onyes/no/on/offmeaning a boolean, writetrue/falseinstead.
Added
make test-contractchecks evaluation requests and responses against the JSON Schemas published underapi/schemas/inopenid/authzen, fetched at a pinned commit. Every schema-valid request, including the schema's own examples and the interop Todo fixtures, must get HTTP 200 with a schema-valid response, and every schema-invalid one HTTP 400, with the two places the plugin is deliberately lenient (a JSONnullmember treated as absent) listed by name.make test-harnessruns the AuthZEN working group's interop Todo harness against the plugin. CI runs both targets on every pull request and every push tomain. It fails when the harness reports a missing case or the port is already taken, rather than passing vacuously.
Compatibility
- Built against OPA v1.21.0, up from v1.20.2 in v0.8.0. Read the OPA v1.21.0 release notes before upgrading; the two breaking changes above are the ones most likely to reach an AuthZEN deployment.
github.com/santhosh-tekuri/jsonschema/v6is a new direct requirement ingo.mod, used only by the contract tests. It is not linked into the binary.- Reviewed against
openid/authzencommitb304f68(2026-10-01). Since6ed00ba, the core API document, the JSON Schemas and the certification scenario are unchanged. The Access Request and Approval Profile was restructured into a core-first base profile plus four companions (catalog, bulk, callback, actor), but the PDP discovery rules this plugin implements —access_request_endpointas anhttps://URI, theurn:openid:authzen:capability:access-requestcapability, andjwks_urifor a PDP that issues or verifies signed values — read the same, soaccess_request_endpointandjwks_urineed no change. The companions all describe the Access Request Service, which the plugin does not host.
Verifying this release
cosign verify-blob checksums.txt \
--bundle checksums.txt.sigstore.json \
--certificate-identity-regexp '^https://github\.com/kanywst/opa-authzen-plugin/\.github/workflows/post-tag\.yaml@refs/tags/v' \
--certificate-oidc-issuer https://token.actions.githubusercontent.com
sha256sum --check --ignore-missing checksums.txt
cosign verify ghcr.io/kanywst/opa-authzen-plugin:0.9.0 \
--certificate-identity-regexp '^https://github\.com/kanywst/opa-authzen-plugin/\.github/workflows/publish\.yaml@refs/tags/v' \
--certificate-oidc-issuer https://token.actions.githubusercontent.com