Add IUCLabs GitHub jwt roles for terraform repos #187

Merged
benvin merged 2 commits from benvin/gha-terraform-roles into master 2026-11-21 01:18:54 +11:00
Member

terraform-git, -vault, -artifactapi, -authentik and -binarylane are moving to private IUCLabs GitHub repos and will plan/apply from GitHub Actions, so each needs a jwt/github/iuclabs role with the same policies as its Woodpecker k8s role.

  • add terraform_ jwt roles bound to owner IUCLabs, repository IUCLabs/terraform-, push/pull_request events on the default branch and pull_request merge refs
  • bind each role to the exact policy set of woodpecker_terraform_, with matching token TTLs
  • keep the Woodpecker k8s roles unchanged
terraform-git, -vault, -artifactapi, -authentik and -binarylane are moving to private IUCLabs GitHub repos and will plan/apply from GitHub Actions, so each needs a jwt/github/iuclabs role with the same policies as its Woodpecker k8s role. - add terraform_<repo> jwt roles bound to owner IUCLabs, repository IUCLabs/terraform-<repo>, push/pull_request events on the default branch and pull_request merge refs - bind each role to the exact policy set of woodpecker_terraform_<repo>, with matching token TTLs - keep the Woodpecker k8s roles unchanged
unkin-agent added 1 commit 2026-11-21 00:13:06 +11:00
Add IUCLabs GitHub jwt roles for terraform repos
ci/woodpecker/pr/plan Pipeline failed
ci/woodpecker/pr/pre-commit Pipeline was successful
d960f45523
Author
Member
  • config/auth_jwt_role/jwt/github/iuclabs/terraform_{artifactapi,authentik,binarylane,git,vault}.yaml:4 — bound_claims has no repository_owner; module validation (modules/vault_cluster/modules/auth_jwt_role/variables.tf:41) requires it to match ^[A-Za-z0-9-]+$, so all 5 roles fail plan → add repository_owner: IUCLabs to each.
  • config/auth_jwt_role/jwt/github/iuclabs/terraform_artifactapi.yaml:5 — workflow_dispatch is not in the allowed event_name list (variables.tf:45: push, release, schedule, pull_request) → plan fails; drop it, or extend the module allowlist in a separate prior PR.
- config/auth_jwt_role/jwt/github/iuclabs/terraform_{artifactapi,authentik,binarylane,git,vault}.yaml:4 — bound_claims has no `repository_owner`; module validation (modules/vault_cluster/modules/auth_jwt_role/variables.tf:41) requires it to match `^[A-Za-z0-9-]+$`, so all 5 roles fail plan → add `repository_owner: IUCLabs` to each. - config/auth_jwt_role/jwt/github/iuclabs/terraform_artifactapi.yaml:5 — `workflow_dispatch` is not in the allowed event_name list (variables.tf:45: push, release, schedule, pull_request) → plan fails; drop it, or extend the module allowlist in a separate prior PR.
unkin-agent added 1 commit 2026-11-21 00:16:35 +11:00
Bind repository_owner on IUCLabs terraform jwt roles
ci/woodpecker/pr/plan Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
55fd193f70
Author
Member

No findings.

No findings.
benvin merged commit 4fe89092ab into master 2026-11-21 01:18:54 +11:00
benvin deleted branch benvin/gha-terraform-roles 2026-11-21 01:18: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#187