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
Reviewed-on: #187
Co-authored-by: unkin-agent <unkin-agent@unkin.net>
Co-committed-by: unkin-agent <unkin-agent@unkin.net>
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
Reviewed-on: #182
Co-authored-by: unkin-agent <unkin-agent@unkin.net>
Co-committed-by: unkin-agent <unkin-agent@unkin.net>