This document describes the process for releasing new versions of opa-authzen-plugin.
Version Scheme
Section titled “Version Scheme”This project currently uses Semantic Versioning: vMAJOR.MINOR.PATCH
Release Checklist
Section titled “Release Checklist”-
Verify tests pass
Terminal window make clean build testgo test -v -race ./... -
Run linting
Terminal window make fmt vet lint -
Check dependencies
Terminal window go list -m allmake licenses -
Update CHANGELOG.md
- Move "Unreleased" section content to new version heading
- Follow Keep a Changelog format
- Include OPA version compatibility note
- Set
newTaginexample/kubernetes/kustomization.yamlto the new version (without thev) - First release from dyokto only: drop
newNamefromexample/kubernetes/kustomization.yaml, and pointPDP_IMAGEininterop/todo/Makefileand the default ininterop/todo/docker-compose.yamlatghcr.io/dyokto/opa-authzen-plugin. Until then they pull the last image published under kanywst - The heading must read
## [vX.Y.Z] - YYYY-MM-DD: the tag workflow builds the release body from that section, and fails if it cannot find it. Preview the body withmake release-notes TAG=vX.Y.Z
-
Dry-run the release locally (optional)
Runs the same GoReleaser pipeline CI will run, into
dist/, without publishing anything. Signing is skipped because keyless signing needs a CI OIDC token.Terminal window make release -
Create annotated git tag
Terminal window git tag -a vX.Y.Z -m "Release vX.Y.Z"git push origin vX.Y.Z -
Let the tag workflows run
Pushing the tag triggers two workflows.
post-tag.yamlruns GoReleaser, which cross-compiles the binaries, generates an SPDX SBOM, writes and signschecksums.txt, and opens a draft GitHub Release with all of it attached. The draft's body is written bybuild/release-notes.sh: the release date, the CHANGELOG section for the tag, and the verification commands below with the image tag filled in.publish.yamlbuilds and pushes the multi-arch image toghcr.io/dyokto/opa-authzen-pluginwith an SBOM and provenance attestation, then signs the pushed digest. -
Publish the draft Release
- Confirm both workflows are green and every asset is attached
- Read the generated body; it should need no edits
- Mark as "Latest Release" if appropriate
Verifying a Release
Section titled “Verifying a Release”Release artifacts are signed with Sigstore keyless signing, so there is no long-lived key to publish or rotate. Each command below pins the signer identity to this repository's own tag workflow, which is what makes the check meaningful: a signature produced by any other workflow, repository, or laptop fails.
The repository moved from kanywst/opa-authzen-plugin to dyokto/opa-authzen-plugin after v0.12.1. For v0.12.1 and earlier, the signer identity and the image both name the old owner: replace dyokto with kanywst in the image name and in each --certificate-identity-regexp below, for example '^https://github\.com/kanywst/opa-authzen-plugin/\.github/workflows/publish\.yaml@refs/tags/v'. The release body of every version already carries the right commands.
Binaries — verify the signature on checksums.txt first, then check the binary against it. The signature and its certificate travel together in checksums.txt.sigstore.json, a Sigstore bundle:
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.txtContainer image:
cosign verify ghcr.io/dyokto/opa-authzen-plugin:X.Y.Z \ --certificate-identity-regexp '^https://github\.com/dyokto/opa-authzen-plugin/\.github/workflows/publish\.yaml@refs/tags/v' \ --certificate-oidc-issuer https://token.actions.githubusercontent.comBill of materials — the image carries a BuildKit-generated SPDX SBOM and a SLSA provenance attestation, and the GitHub Release carries an SBOM of the source module as opa_authzen_sbom.spdx.json:
docker buildx imagetools inspect ghcr.io/dyokto/opa-authzen-plugin:X.Y.Z --format '{{ json .SBOM }}'Pre-Release Checks
Section titled “Pre-Release Checks”Backward Compatibility
Section titled “Backward Compatibility”- Run tests on the minimum supported OPA version specified in
go.mod - Verify example policies still work
- Check for API-breaking changes
Dependency Updates
Section titled “Dependency Updates”- Run
go get -uto check for available updates - Review security advisories:
go list -u -m all - Update
go.modandgo.sumif updates are important
Documentation
Section titled “Documentation”- README.md reflects current feature set
- Example policies are up-to-date
- API documentation is accurate
Troubleshooting
Section titled “Troubleshooting”Docker image build fails
Section titled “Docker image build fails”make docker-build # Uses git tags for versioning# Ensure git tags are properly setgit describe --tags --always --dirtyRelease artifacts not generated
Section titled “Release artifacts not generated”make clean release# GoReleaser writes everything under dist/ls -la dist/To check the configuration itself without building:
go run github.com/goreleaser/goreleaser/v2@$(make -s print-goreleaser-version) checkSupport & Maintenance
Section titled “Support & Maintenance”- Monitor for security issues in dependencies via GitHub's Dependabot
- Respond to issues and PRs in a timely manner
- Release patch versions for critical bugs immediately
- Plan minor versions in coordination with OPA releases
© 2026 The opa-authzen-plugin Authors. Licensed under Apache-2.0. Part of dyokto.