Mission control · Tailspin
Kubernetes Workload Identity
On flow-prod every workload that calls AWS has its own role, assumed through its service account (IRSA) - except two. Since August a workload of the flow namespace gets its permissions from a policy attached to the node role, so every pod of the cluster, a debug pod included, can use them through the instance metadata. Since January the invoice renderer of the reports namespace runs with the access key of an IAM user, kept in the Kubernetes secret reports/aws-credentials. Yesterday the platform team's PLAT-488 created a role for the first workload, with a trust policy "temporarily open to the cluster", and stopped there. Priya Nair's review SEC-231 assigns you the rest: you are the platform engineer on the change. Give each of the two workloads its own role, assumed only by its own service account on this cluster, with only the permissions it uses, then take away the old paths - the node role's application permissions and the stored key - without stopping the exports or the invoices. The trail is in the SIEM (AWSCloudTrail), the Kubernetes changes in AuditLogs; service accounts and their roles are on the Federation & Kubernetes page of the console (kubectl in the terminal).
- Estimated duration
- 50 min
- Difficulty
- 3/5
- Objectives
- 5
Environment
- identities
- 10
- applications
- 0
- groups
- 7
- log events
- 186
Consoles
- Cloud IAM
- Command line
- SIEM logs
Skills practised
- Workload identity
- Multicloud iam
- Cicd identity
- Secrets certificates
- Privilege analysis
- Log analysis