Skip to content
StackDecode
System Design
13. Security ArchitectureAnimated

Secrets Management

Storing keys and passwords safely.

The idea

A vault holds secrets, controls access, rotates them and audits use.

Watch it work

Press play, pause, or step through. Some animations have settings you can change.

AppSecrets vaultIdentity (IAM)DatabaseAudit log
  • client
  • gateway / proxy
  • service
  • cache
  • data store
  • queue / stream

Secrets never live in code or images.

step:
1/4
at:
App
1/10

The green dot is a request moving through the system.

Step by step

  1. 1Store secrets in a vault
  2. 2Services authenticate to it
  3. 3They fetch short-lived secrets
  4. 4Rotation happens automatically

Where it is used

Any production system.

Watch out for

Never put secrets in code or images.

Related