2026-05-14

Secrets hygiene basics

Reducing blast radius with simple defaults for tokens, keys, and access.

Most secrets incidents are boring: long-lived tokens in CI, shared admin credentials, or keys copied into docs. They rarely look like a movie hack; they look like “someone reused a token for six months”. The fix is mostly process and tooling defaults that make the secure path the easiest path.

Use short-lived credentials where possible, rotate aggressively, and reduce who and what can access production secrets. Pair that with visibility: you should know where secrets live, who touched them, and how quickly you can revoke them if something leaks.

Combine scanning, least privilege, and clear ownership — and secrets become a manageable operational concern instead of a constant risk. When ownership is unclear, secrets sprawl; when ownership is explicit, rotation and cleanup become routine work.

Start by eliminating shared credentials. Give people and services the minimum access they need, and make privilege escalation explicit and logged. If two systems can share a secret, assume it will eventually leak into the wrong place.

Prefer managed identity and short-lived credentials. If you must use static keys, rotate them aggressively and store them in a single controlled system. Avoid copying secrets into developer machines; instead, grant ephemeral access with clear expiry and auditing.

The goal is simple: reduce blast radius, reduce time-to-revoke, and remove secrets from places they don’t belong (repos, docs, chat). With the right defaults, incidents become smaller, response becomes faster, and teams stop fearing the next accidental leak.