ADR-0010: runner identity from ServiceAccounts (kubernetes-mini JWT login) #94
No reviewers
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
lab/iac!94
Loading…
Reference in a new issue
No description provided.
Delete branch "runner-identity"
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?
Refs #85
ADR-0010: runners log in with their ServiceAccount token; AppRole only where no platform signs an identity (hosts at install, break-glass bootstrap runner).
vault/runners-k8s.tf: jwt login at kubernetes-mini with mini SA signing key (vault/mini-sa-jwks.pem, verified offline), roles tf-routeros (pki-net-routeros-issue) and tf-harbor-config (runner-harbor-config), each bound to system:serviceaccount:flux-system: and the cluster audience. Additive: applies with approvePlan auto on merge, touches nothing existing.
Rehearsed on the harness OpenBao with real mini tokens: right SA logs in with only its policy; other SA and other audience refused; this exact file applies, re-plans clean (found: PEM needs trimspace), logs in, destroys.
Next: flux-clusters SAs + harbor-config serviceAccountName, then harbor provider -> JWT, then remove approle-runners.