This repository has been archived on 2026-11-21. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
unkin-agent b9ae4a6802
ci/woodpecker/push/apply Pipeline failed
Add GitHub Actions JWT auth mount for IUCLabs (#175)
IUCLabs GitHub Actions workflows need read access to their own KV secrets without per-repo role and policy plumbing.

- add `auth/jwt/github/iuclabs` JWT mount trusting GitHub Actions OIDC
- add org-wide `default` role (mount `default_role`): audience `https://vault.service.consul:8200`, `user_claim=jti`, metadata mappings, 15m/1h TTLs
- restrict to `repository_owner=IUCLabs`, events push/release/schedule/pull_request, refs heads/tags/pull-merge; validation rejects anything wider
- attach templated read-only policy on `kv/github/<repo>/event/<event>/*` and `kv/github/<repo>/ref/<ref>/.secrets/*`
- add `tofu test` cases, run by `make test` and pre-commit
- document login, KV layout, event-path scope, `+` ref caveat and entity growth

Pairs with the terraform-git ref-name ruleset.

Reviewed-on: #175
Co-authored-by: unkin-agent <unkin-agent@unkin.net>
Co-committed-by: unkin-agent <unkin-agent@unkin.net>
2026-11-10 23:25:31 +11:00

23 lines
541 B
YAML

---
bound_audiences: ["https://vault.service.consul:8200"]
bound_claims:
repository_owner: IUCLabs
event_name: push,release,schedule,pull_request
ref: refs/heads/*,refs/tags/*,refs/pull/*/merge
claim_mappings:
repository: repository
repository_owner: repository_owner
ref: ref
ref_type: ref_type
event_name: event_name
workflow: workflow
job_workflow_ref: job_workflow_ref
run_id: run_id
run_attempt: run_attempt
sha: sha
actor: actor
environment: environment
user_claim: jti
token_ttl: 900
token_max_ttl: 3600