Repository navigation
v0.8.0
Released 2026-09-18
Settles the response shape of a batch request that carries no batch, and makes Content-Type matching follow RFC 9110.
Fixed
- The
Content-Typecheck on all three request endpoints now compares the parsed media type instead of the raw header, so it is case-insensitive and tolerant of surrounding whitespace as RFC 9110 Section 8.3.1 requires.Application/JSON,APPLICATION/JSON; CHARSET=utf-8andapplication/json ; charset=utf-8all nameapplication/jsonand were previously rejected with HTTP 400.application/jsonandapplication/json; charset=utf-8were already accepted and are unaffected, and a header whose parameters do not parse still falls back to the previous prefix match, so nothing that was accepted before is rejected now.
Changed
-
Breaking:
POST /access/v1/evaluationsnow answers in the singular Access Evaluation shape ({"decision": ...}) when the request carries noevaluationsarray or an empty one, instead of wrapping the lone decision in{"evaluations": [...]}. Section 7.1 says such a request "behaves in a backwards-compatible manner with the (single) Access Evaluation API Request" without stating what the response looks like, and the plugin had read that ambiguity the other way. The AuthZEN certification scenario settles it: tests c-3-4-2 and c-3-4-3 require the PDP to "return an Access Evaluation response" and validate the response structure, so the previous shape was a Batch Core certification failure. Section 7.2 points the same way, conditioning the omission of the top-leveldecisionkey on theevaluationsarray being present. The empty-array case was additionally a violation of certification c-3-3-1, which requires the responseevaluationsarray to have the same number of elements as the request's — the plugin answered an empty array with a one-element one. A PEP that posts a batch-shaped request with one or more evaluations sees no change; only the array-absent and array-empty paths differ. Any decision context fromdecision_contextnow rides on the singular response'scontextmember.Upgrade hazard: a PEP that reaches a permit by iterating the response
evaluationsarray and denying only when some element denies will now permit vacuously on these two paths, because the array it loops over is gone. Such a PEP must read the top-leveldecisioninstead. Every other parsing pattern we could construct — indexingevaluations[0], guarding on the array's length, optional chaining — fails closed. If you post to/access/v1/evaluationswithout anevaluationsarray, check your PEP before upgrading.
Compatibility
- Built against OPA v1.20.2, up from v1.20.0 in v0.7.0.
- Reviewed against the Authorization API 1.0 text at
openid/authzencommit6ed00ba(2026-09-17). The core API document has not changed since the v0.7.0 review, and neither has the certification scenario; the two JSON Schemas underapi/schemas/did change, in both cases by dropping constraints that contradicted the API text —additionalProperties: falseis gone from the request schema, and the responsecontextis now an unconstrained object rather than the draft-01{id, reason_admin, reason_user}shape. Both changes ratify behavior this plugin already had, so neither requires a change here. - The
evaluationsresponse shape above is the only change a PEP can observe, and only on the array-absent and array-empty paths. Deployments that set no new config key are otherwise byte-identical to v0.7.0. - The Access Request and Approval Profile (Draft 1) tightened its denial-binding rules in the same window (upstream issue #516): binding by reference through
context.evaluation_idis now scoped to deployments where the Access Request Service shares or is delegated the PDP's state, and abinding_tokenis required — and must be self-contained — when that service is independent of the PDP. The plugin neither synthesizes nor signs either value, so this changes no code, but it does narrow which topologies the plugin alone can serve. The README's profile section now states the split; if your Access Request Service is independent, sign thebinding_tokenoutside the plugin and publish its key atjwks_uri. The README and the example config now also call both opt-in profiles by their upstream titles, which are Draft 1 — the1_0in their URLs is the document name, not a released version.
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.8.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