PrepCity

Secrets management

Security in depth · 6 of 7Security in depth 6 / 7, see the whole branchOpen the lab

By the last page, this is the design you will have built. Drag it, or Show all, to see every part.

Branch: Security in depth · step 6 of 7 · 13 pages · about 11 min

Secrets management

A password in config.yml spreads to git history, CI logs, image layers and log lines. Push protection stops keys at the door, a secret manager holds the one copy, dynamic credentials expire by themselves, two valid versions make rotation painless, and platform identity removes the first secret.

What it is
Secrets management is how a system stores, hands out, rotates and revokes the passwords, keys and tokens its software needs.
What it is for
Secrets copied into code, logs and images leak to everyone who can read those places, and a leaked long-lived secret works until someone notices.
Use it when
For every credential a service, script or pipeline uses, from the first commit.
Not when
It does not decide what an identity may do once logged in; that is access control and least privilege.

New words you’ll learn

  • Secret sprawl
  • Access key
  • Push protection
  • Hook
  • Service account
  • IAM
  • Lease
  • Dynamic credentials
  • Credential lease
  • Secret zero

Page by page