Add IUCLabs release JWT role for artifactapi-writer tokens #182

Merged
benvin merged 5 commits from benvin/iuclabs-release-jwt-role into master 2026-11-17 23:29:54 +11:00
Member

IUCLabs repos publishing releases to artifactapi need a GitHub OIDC role that can only be used from version tag pushes within the org.

  • add jwt/github/iuclabs role release, bound to repository_owner: IUCLabs, event_name: push, ref: refs/tags/v*
  • allow refs/tags/v* in the auth_jwt_role ref validation, with tests
  • bind the artifactapi-writer policy to the release role
IUCLabs repos publishing releases to artifactapi need a GitHub OIDC role that can only be used from version tag pushes within the org. - add `jwt/github/iuclabs` role `release`, bound to `repository_owner: IUCLabs`, `event_name: push`, `ref: refs/tags/v*` - allow `refs/tags/v*` in the `auth_jwt_role` ref validation, with tests - bind the `artifactapi-writer` policy to the `release` role
Author
Member
  • config/auth_jwt_role/jwt/github/iuclabs/release.yaml:3 — bound_claims pins only repository_owner, so any IUCLabs repo (and anyone with write/tag rights on it, using a workflow in the tagged commit) can mint the artifactapi-writer token → add repository: (exact, module already allows it) per releasing repo, or one role per repo; optionally pin job_workflow_ref to a protected release workflow.
  • nit: config/auth_jwt_role/jwt/github/iuclabs/release.yaml:5 — glob v* also matches refs/tags/vfoo and refs/tags/v/x (Vault glob * crosses /) → rely on the repo pin plus tag protection (v* tag rules in GitHub) if non-semver tags must not publish.
- config/auth_jwt_role/jwt/github/iuclabs/release.yaml:3 — bound_claims pins only repository_owner, so any IUCLabs repo (and anyone with write/tag rights on it, using a workflow in the tagged commit) can mint the artifactapi-writer token → add `repository:` (exact, module already allows it) per releasing repo, or one role per repo; optionally pin `job_workflow_ref` to a protected release workflow. - nit: config/auth_jwt_role/jwt/github/iuclabs/release.yaml:5 — glob `v*` also matches `refs/tags/vfoo` and `refs/tags/v/x` (Vault glob `*` crosses `/`) → rely on the repo pin plus tag protection (`v*` tag rules in GitHub) if non-semver tags must not publish.
Author
Member

No findings.

No findings.
Author
Member

No findings.

No findings.
unkin-agent added 4 commits 2026-11-17 23:18:12 +11:00
unkin-agent force-pushed benvin/iuclabs-release-jwt-role from dad6d82b36 to 0bb8795e0d 2026-11-17 23:18:12 +11:00 Compare
unkin-agent added 1 commit 2026-11-17 23:26:21 +11:00
Bind IUCLabs release role to the org instead of a repo list
ci/woodpecker/pr/plan Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
5061400cfd
benvin merged commit fb6ff73fb9 into master 2026-11-17 23:29:54 +11:00
benvin deleted branch benvin/iuclabs-release-jwt-role 2026-11-17 23:29:55 +11:00
This repo is archived. You cannot comment on pull requests.
No Reviewers
No Label
1 Participants
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: unkin/terraform-vault#182