Short-lived credentials are issued on demand, scoped to one job, and expire on their own, which shrinks the window in which a stolen token is useful. Workload identity federation and dynamic secrets let CI jobs and agents authenticate without any long-lived key stored on disk.
Read in this order
- OfficialOpenID Connect for GitHub Actions (GitHub Docs)Start here: how CI jobs get cloud access with no stored key at all.
- OfficialDatabase secrets engine: dynamic credentials (HashiCorp Vault)See dynamic database credentials created per request and revoked automatically.
- OfficialRFC 8693: OAuth 2.0 Token ExchangeThe token exchange standard for trading one credential for a narrower one.