Case 2AE7F5 · Identity & AD · L3 Applied
Workload Identity Instead of Static Keys
Interview questionHow would you get rid of long-lived cloud keys in CI pipelines and services?
- 01 What is it?
- 02 How is it abused?
- 03 How do you stop it?
What a strong answer covers
Try it out loud first. Then check yourself:
- Workloads prove who they are with a short-lived signed token from their platform and exchange it for temporary cloud credentials.
- CI: GitHub Actions can request an OIDC token that AWS accepts via AssumeRoleWithWebIdentity; no stored access key.
- Scope the trust policy on token claims (repository, branch or environment), or any repository could assume the role.
- In Kubernetes use IRSA or EKS Pod Identity, or SPIFFE/SPIRE across platforms; credentials then expire on their own.
If the interviewer pushes back
- A trust policy only checks the token audience. What can an attacker do, and how do you fix it?