Skip to content
StackDecode
System Design
13. Security ArchitectureAnimated

Key Management

Creating, storing and rotating encryption keys.

The idea

Key management services protect master keys and control who can use them.

Watch it work

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

AppKMSStorageGenerateDataKey
  • current message
  • earlier
  • failure or attack

The app asks the key management service for a data key.

step:
1/5
from:
App
to:
KMS
1/5

Time runs downward. Solid arrows are requests, dashed arrows are replies.

Step by step

  1. 1Generate keys in a KMS
  2. 2Control access
  3. 3Rotate regularly
  4. 4Retire old keys

Where it is used

Encryption at rest.

Watch out for

Losing the key means losing the data.

Related