Secrets handling inside customer environments

Updated

A heavy metal safe door with a combination lock

Never yours, never in code: the rotation, scoping and drill routine for credentials on someone else's systems.

Secrets discipline is simple to state and easy to postpone. The routine below makes postponement visible.

The short answer

Customer vault, runtime injection, least scope, dated rotation, leak drill rehearsed. No secret ever touches your repo, your chat or your screenshots.

The routine

PracticeRuleProof
StorageVault only, per environmentNo secret string in code or images
InjectionRuntime, never bakedStaging boot log shows injection path
ScopeLeast privilege per serviceAccess review with names, quarterly
RotationDated schedule plus on-leave rotationRotation log with dates
Leak drillRevoke, rotate, assess, notifyDrill record with a timer

Worked example: the leaked demo key

A fictional demo (fictional) ships with a provider key in a slide deck. The drill runs: revoke in minutes, rotate, assess calls from logs, notify per the customer process. The demo continues on the rotated key the same day. Embarrassment survives; the system does too, because the drill existed. The containers post covers image hygiene; the permissions post covers scope.

Checklist: secrets hygiene

  1. Zero secrets in code, images, docs, chat or screenshots.
  2. Rotation dates on a calendar with an owner.
  3. Leak drill rehearsed once, timed.
  4. Exposure assessment uses logs, not guesses.

Straight answers

Frequently asked questions

Where should secrets live?

In the customer's vault or secret manager, injected at runtime, scoped per environment. Never in code, images, docs or chat.

Who owns rotation?

The customer owns the schedule; you own the drill: rotate, verify, assess exposure, all rehearsed before any leak.

What happens after a leak?

Revoke, rotate, assess exposure from logs, notify per the customer process. The plan written before the leak decides whether it stays an incident.

Bu sayfanın Türkçesi