Pcornel
Security · Secrets Management

Expiration

Cheat sheet · https://pcornel.dk/topic.php?topic=5067

Back to the Topic

Answer

Secret expiration gives credentials a limited lifetime, such as short-lived tokens or certificates that expire in days, so a leaked secret stops working quickly.

Remember

  • Short-lived secrets reduce exposure.
  • Expired secrets must be renewed automatically.
  • Certificates and tokens should expire.

First checks

  • Expiry dates on keys/tokens/certs — tracked
  • vault token lookup — TTL
  • Alerts before expiry — monitoring

Verify in this order

secret issued with TTL → renew or expire

Where it usually breaks

First mismatch in key/secret generation → storage/rotation → trust/certificate validation → protocol negotiation → cryptographic operation → peer/application verification; preserve identity/policy/pre-state before mutation.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5067

Confirmation

Confirm action

Continue?