ADR-0010: runner identity from ServiceAccounts (kubernetes-mini JWT login) #94

Merged
ginjiruu merged 1 commit from runner-identity into master 2026-11-14 21:33:02 +00:00
Owner

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.

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:<role> 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.
ginjiruu merged commit 6c2b08e526 into master 2026-11-14 21:33:02 +00:00
ginjiruu deleted branch runner-identity 2026-11-14 21:33:02 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
lab/iac!94
No description provided.