Repository navigation
Releases
v0.13.0
Released 2026-12-03
The first release from dyokto/opa-authzen-plugin. The Go module path changes, and so does the image name. Configuration and policies work as before.
Changed
- The repository moved from
github.com/kanywst/opa-authzen-plugintogithub.com/dyokto/opa-authzen-plugin. GitHub redirects the old URLs. - Breaking: the Go module path is now
github.com/dyokto/opa-authzen-plugin. Update imports andgo.modrequirements when upgrading. v0.12.1 and earlier stay available undergithub.com/kanywst/opa-authzen-pluginin the Go module proxy. - Images are published as
ghcr.io/dyokto/opa-authzen-plugin. The existingghcr.io/kanywst/opa-authzen-plugintags (up to0.12.1,0.12andlatest) stay available but receive no new pushes. - Release binaries and images are signed by the workflows in
dyokto/opa-authzen-plugin, socosignverification of new releases uses the identity regexp^https://github\.com/dyokto/opa-authzen-plugin/.... Releases up to v0.12.1 keep thekanywstidentity; RELEASE.md shows both. - The
interop/todosuite and the Kubernetes example pullghcr.io/dyokto/opa-authzen-plugin, pinned to 0.13. - Every GitHub Action in the workflows is pinned to a full commit SHA.
Fixed
- When
decision_contextis configured, the decision and its context are now evaluated within a single query rather than two separate queries. Previously, rules shared by both evaluations, including calls to built-in functions such ashttp.send, were evaluated twice per decision, potentially resulting in inconsistencies between the decision and its returned context.
Compatibility
- Built against OPA v1.23.0, up from v1.22.4 in v0.12.1. OPA v1.23.0 roots a bundle at its
.manifestfile: a bundle tarball loaded from disk with-bmust have.manifestat the root of the archive, and bundles signed withopa signoropa build -bby older OPA versions must be re-signed. Bundles downloaded by the bundle plugin still load as before, with a warning. See the OPA v1.23.0 release notes.
Verifying this release
cosign verify-blob checksums.txt \
--bundle checksums.txt.sigstore.json \
--certificate-identity-regexp '^https://github\.com/dyokto/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/dyokto/opa-authzen-plugin:0.13.0 \
--certificate-identity-regexp '^https://github\.com/dyokto/opa-authzen-plugin/\.github/workflows/publish\.yaml@refs/tags/v' \
--certificate-oidc-issuer https://token.actions.githubusercontent.comv0.12.1
Released 2026-11-18
A security rebuild of the binaries and the image, on OPA v1.22.4. No configuration change is needed to upgrade.
Security
- The container image upgrades its alpine packages at build time. The v0.12.0 image ships zlib 1.3.2-r1 (CVE-2026-4738, fixed in 1.4-r0) because the
alpine:3.24tag lags the package index. The plugin binary does not link zlib. - CI scans the image with grype (
make image-scan) and fails on fixable High or Critical vulnerabilities. - Release binaries are built with Go 1.26.11, fixing GO-2026-6859 in net/http, which is reachable from the plugin on Go 1.26.10.
github.com/klauspost/compressv1.20.0 → v1.20.3, fixing GO-2026-6865 (a panic on two-block frames), which is reachable from the plugin.
Compatibility
- Built against OPA v1.22.4, up from v1.22.0 in v0.12.0. The OPA releases in between are bug fixes for a rule indexer regression and two type checker regressions, and carry no breaking changes.
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.12.1 \
--certificate-identity-regexp '^https://github\.com/kanywst/opa-authzen-plugin/\.github/workflows/publish\.yaml@refs/tags/v' \
--certificate-oidc-issuer https://token.actions.githubusercontent.comv0.12.0
Released 2026-11-04
AuthZEN decisions now reach OPA's decision log. No configuration change is needed to upgrade.
Added
- AuthZEN decisions are written to OPA's decision log when
decision_logsis configured, as Data API decisions are. Each evaluation is one event with path<path>/<decision>, the evaluated input and the returned Decision asresult; each evaluated item of a batch is its own event, and the items of one request share abatch_decision_id. Searches are logged with path<path>/<search rule>and the returned page. Events carrymetricsand, withnd_builtin_cacheenabled,nd_builtin_cache, and the span getsopa.decision_id. Thesystem.logmask and drop policies apply. Withoutdecision_logsnothing changes, and responses are unchanged either way. See Decision logs. example/kubernetes/: a Deployment and Service for the published image, applied withkubectl apply -k, with the plugin config and policy in a generated ConfigMap.example/kubernetes/test.shruns it on a kind cluster against an image built from the checkout.
Compatibility
- Built against OPA v1.22.0, unchanged from v0.11.0.
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.12.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.comv0.11.0
Released 2026-11-03
Moves to OPA v1.22.0, which carries two breaking changes that reach users of the plugin binary (signed bundles, and Rego containing non-breaking spaces). No plugin code changes, and no plugin configuration change is needed to upgrade.
Changed
- The interop Todo PDP (policy, data, config and e2e suite) now lives in
interop/todo/instead of the separatekanywst/opa-authzen-interoprepository.make test-interopruns it against the locally built image without cloning anything,make test-harnessserves its policy from the working tree instead of a pinned commit, and the newmake test-interop-regochecks, formats and unit-tests the policy with the OPA the plugin links. The suite comes over already tracking v0.10.0, including an assertion onsigned_metadata.
Compatibility
- Built against OPA v1.22.0, up from v1.21.3 in v0.10.0. OPA now locates the bundle signatures file by its exact name
.signatures.jsonand signs every other file ending insignatures.json(open-policy-agent/opa#9300). Signed bundles that contain such a file must be re-signed with OPA v1.22.0 or later, or they fail verification. Bundles without such files keep verifying. - The Rego scanner now rejects non-breaking spaces (U+00A0) as illegal characters (open-policy-agent/opa#5796). A policy that has one, typically pasted from a web page or a document, fails to load until it is replaced with a regular space.
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.11.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.comv0.10.0
Released 2026-10-26
Adds the signed_metadata config option, and rebuilds on Go 1.26.10 and OPA v1.21.3 for two security fixes. No configuration change is needed to upgrade.
Added
- New
signed_metadataconfig option: publishes a JWT assigned_metadatain the PDP metadata document (spec Section 9.1.3). The plugin does not sign it; the JWT is signed outside the plugin and pasted in. Startup fails if the value is not a signed three-part JWS with anissclaim, or if itscapabilities,supported_obligations,access_request_endpoint,jwks_uriorsearch_*_endpointclaims disagree with the config. Unset by default, which leaves the metadata unchanged.
Security
- Release binaries are built with Go 1.26.10, fixing GO-2026-6809 in crypto/x509, which is reachable from the plugin on Go 1.26.9.
- OPA v1.21.2 → v1.21.3, which fixes bundle signature verification being side-stepped when
signingis configured without akeyid, or by an unsigned delta bundle (GHSA-g2pf-6v5v-qcc8).
Compatibility
- Built against OPA v1.21.3, up from v1.21.2 in v0.9.3.
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.10.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.comv0.9.3
Released 2026-10-19
Moves to OPA v1.21.2. No plugin code changes, and no configuration change is needed to upgrade.
Security
- OPA v1.21.1 → v1.21.2, which fixes the basic authorizer and the Data API resolving
%2Fin a path to different documents (open-policy-agent/opa#9323).
Compatibility
- Built against OPA v1.21.2, up from v1.21.1 in v0.9.2. Release binaries stay on Go 1.26.9.
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.3 \
--certificate-identity-regexp '^https://github\.com/kanywst/opa-authzen-plugin/\.github/workflows/publish\.yaml@refs/tags/v' \
--certificate-oidc-issuer https://token.actions.githubusercontent.comv0.9.2
Released 2026-10-13
A security rebuild. The v0.9.1 release binaries and container image were built on Go 1.26.8 with golang.org/x/net v0.58.0; this release rebuilds both on Go 1.26.9 with x/net v0.60.0. There are no functional changes, and no configuration change is needed to upgrade.
Security
- Release binaries are built with Go 1.26.9, fixing 11 Go standard library vulnerabilities reachable from the plugin on Go 1.26.8: GO-2026-6617, GO-2026-6613, GO-2026-6612, GO-2026-6611, GO-2026-6610, GO-2026-6605 and GO-2026-6603 in net/http, GO-2026-6608 in mime/multipart, GO-2026-6607 in crypto/tls, and GO-2026-6600 and GO-2026-6599 in html/template.
golang.org/x/netv0.58.0 → v0.60.0, fixing GO-2026-6617, GO-2026-6612, GO-2026-6611, GO-2026-6610 and GO-2026-6603.
Compatibility
- Built against OPA v1.21.1, unchanged from v0.9.1.
- The container image is affected this time, unlike in v0.9.1:
ghcr.io/kanywst/opa-authzen-plugin:0.9.1was built on Go 1.26.8 by itsgolang:1.26-alpinebuilder and linksx/netv0.58.0. The 0.9.2 image is built on Go 1.26.9.
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.2 \
--certificate-identity-regexp '^https://github\.com/kanywst/opa-authzen-plugin/\.github/workflows/publish\.yaml@refs/tags/v' \
--certificate-oidc-issuer https://token.actions.githubusercontent.comv0.9.1
Released 2026-10-07
A security rebuild. The v0.9.0 release binaries were built on Go 1.26.1 and linked a vulnerable golang.org/x/crypto; this release rebuilds them on Go 1.26.8 with x/crypto v0.57.0. It also carries the Search result member-order fix and the release tooling changes merged since v0.9.0. No configuration change is needed to upgrade.
Security
- Release binaries are built with Go 1.26.8.
go.modhad notoolchainline, so the release workflow installed thegodirective's 1.26.1 verbatim, and the v0.9.0 binaries carry 28 Go standard library vulnerabilities thatgovulncheck -mode=binarycan reach (among them GO-2026-5972 in encoding/asn1, GO-2026-6090 in crypto/tls, GO-2026-6089 in net/http and GO-2026-4601 in net/url).go.modnow pinstoolchain go1.26.8; thego 1.26.1minimum for building from source is unchanged. The container image was not affected: itsgolang:1.26-alpinebuilder already resolved to 1.26.8. golang.org/x/cryptov0.55.0 → v0.57.0, fixing GO-2026-6354 and GO-2026-6355, both linked into the v0.9.0 binaries. GO-2026-5932 has no fixed version yet and is not called.- CI runs
govulncheckon the same Go the release is built with.
Changed
- The draft GitHub Release that a tag push opens now carries the finished body: the release date, that version's CHANGELOG section, and the
cosigncommands that verify its assets and image tag.build/release-notes.shwrites it fromCHANGELOG.mdand the tag workflow passes it to GoReleaser, which used to fill the draft with a raw commit list that had to be replaced by hand before publishing.make release-notes TAG=vX.Y.Zpreviews it, and the workflow fails if the version has no## [vX.Y.Z] - YYYY-MM-DDsection.
Added
make test-harnessnow also runs the AuthZEN working group's Search interop harness (interop/authzen-search-demo), 198 Subject, Resource and Action Search cases, against a Rego transcription of the demo's authorization model inbuild/search-harness.rego. CI runs it next to the Todo harness, with the same rule that a missing case or a busy port fails the run.
Fixed
- Subject and Resource Search results now serialize as
{"type": ..., "id": ...}followed by any other members in key order, instead of Go's sorted-key order ({"id": ..., "type": ...}). Action Search results lead withnamethe same way. JSON member order carries no meaning (RFC 8259 Section 4) and the values are unchanged, but the AuthZEN working group's Search interop harness compares results as serialized strings, so the old order failed all 78 of its Subject and Resource Search cases.
Compatibility
- Built against OPA v1.21.1, up from v1.21.0 in v0.9.0 (a patch release; see the OPA v1.21.1 release notes).
- The container image
ghcr.io/kanywst/opa-authzen-plugin:0.9.0was already built on Go 1.26.8 and is not affected by the standard library findings above; thex/cryptobump applies to it too.
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.1 \
--certificate-identity-regexp '^https://github\.com/kanywst/opa-authzen-plugin/\.github/workflows/publish\.yaml@refs/tags/v' \
--certificate-oidc-issuer https://token.actions.githubusercontent.comv0.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.comv0.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