Add GitHub Actions JWT auth mount for IUCLabs #175
Reference in New Issue
Block a user
Delete Branch "benvin/github-oidc-mount"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
IUCLabs GitHub Actions workflows need read access to their own KV secrets without per-repo role and policy plumbing.
auth/jwt/github/iuclabsJWT mount trusting GitHub Actions OIDCdefaultrole (mountdefault_role): audiencehttps://vault.service.consul:8200,user_claim=jti, metadata mappings, 15m/1h TTLsrepository_owner=IUCLabs, events push/release/schedule/pull_request, refs heads/tags/pull-merge; validation rejects anything widerkv/github/<repo>/event/<event>/*andkv/github/<repo>/ref/<ref>/.secrets/*tofu testcases, run bymake testand pre-commit+ref caveat and entity growthPairs with the terraform-git ref-name ruleset.
repository: IUCLabs/*orref: refs/*/*(with bound_claims_type glob) passes and matches refs/pull/N/merge, defeating the stated goal → when bound_claims_type is glob, reject*/?/[in repository, ref and environment (or drop glob support); also reject empty/null values (ref: ""passes contains(keys))ref: refs/heads/maindoes not exclude pull_request_target runs (ref is the base branch, checkout can be PR code) → also require anevent_name/job_workflow_refbound claim (e.g. event_name != pull_request_target via exactevent_name: push/workflow_dispatch), or at least document itenvironmentalone is documented as sufficient, but a same-repo PR can addenvironment: <env>to its workflow unless the environment has deployment-branch/reviewer protection → document that the environment must restrict branches, or requirerefalwaysrefs/*,IUCLabs/*,""var.policy_auth_map[...]matches auth_kubernetes_role, but a role yaml without a policy entry fails plan with Invalid index → acceptable per convention; say so in the README snippetevent/<event_name>/*is not ref-scoped: a push to any branch (or tag) by any repo writer reads everyevent/push/*secret, so README:55 (event/push/deploy) puts a deploy token behind any-branch push → state this in the README and point deploy secrets atref/refs/heads/main/.secrets/, or addrefscoping to the event paths.accept_exact_refshas no assert, so it only proves the plan does not fail → assert the role renders the exact refs or drop the case.No findings.
No findings.