Credentials that expire in minutes or hours shrink the window an attacker has after lifting them from an agent session. Cloud STS services, service account impersonation, and dynamic secrets engines all mint credentials on demand with narrow permissions. Make the short lived path easier than the static key path, or developers will route around it.
Read in this order
- OfficialAWS IAM: Temporary security credentialsStart here: how temporary credentials work and when they expire.
- OfficialGoogle Cloud: Service account impersonationAct as a service account briefly instead of holding its key.
- OfficialHashiCorp Vault: AWS secrets engineHave Vault mint scoped AWS credentials on demand and revoke them.