short-lived credentials
Credentials issued for one job or session that expire within minutes or hours, instead of long-lived keys stored as secrets.
In more detail
A job proves its identity, receives temporary credentials and uses them until they expire. A leaked short-lived credential is useless soon after, and there is no stored key to rotate.
Example
In Terraform: A pipeline can exchange its own identity token for temporary cloud credentials at the start of each run. A leaked short-lived credential is useless soon after, and there is no stored key to rotate.Related terms
- secret — Any value that grants access, such as a password, access token or private key, and must be kept out of code and version control.
- least privilege — Giving every program and person only the access they need, and nothing more.
- continuous integration — Automatically building and testing every change as soon as it is pushed, so problems are caught early.
Taught in
- Running Terraform In CI — Infrastructure as Code with Terraform
- Native Testing With Tftest Files — Infrastructure as Code with Terraform
- Provider Mocking For Tests — Infrastructure as Code with Terraform
- Policy As Code With OPA — Infrastructure as Code with Terraform
- Releasing The Real Cloud Artifact — Infrastructure as Code with Terraform
- Collaboration And Governance: Teams, Policies, Registry And Health — HashiCorp Terraform Associate (004) Exam Prep