Service identity and secrets
Users are not your only callers. Inside the system, services call services, and the same two questions apply — who is this, and may they. A great many architectures answer the first with "well, it came from inside the network", and that single assumption is what turns one compromised container into a total loss.
The network is not an identity
The old model drew a perimeter: outside hostile, inside trusted. It fails for an unglamorous reason — once anything inside is compromised, the attacker inherits the trust of everything else inside. Flat internal trust means your blast radius is the entire estate, and the size of that radius was decided by a network diagram rather than a threat model.
The replacement is to give every workload a verifiable identity of its own and authenticate each hop, so "this request came from the billing service" becomes something you checked rather than something you inferred from an address range. Mutual TLS does this in both directions: each side presents a certificate, each side verifies the other. The network goes back to being transport, and stops being evidence.
Secrets: the hard part is rotation, not storage
Everyone knows not to commit credentials. The harder property is this: a secret you cannot rotate quickly is a secret you have already lost. On the day it leaks your options are "rotate now" or "stay compromised", and if rotating means a coordinated redeploy of nine services during business hours, you will quietly choose to stay compromised for a while.
- Short-lived beats secret. A credential issued from the workload's own identity that expires within the hour limits what stealing it is worth, because there is nothing long-lived to steal.
- Rotate on a schedule, not on an incident. Rotation that only ever happens under pressure is untested, and it will fail under pressure.
- Scope narrowly. One credential per service, per purpose. A shared database password used by six services cannot be rotated without a six-way outage and cannot be attributed when it is abused.
Blast radius is a design output, not an accident
Ask of any credential: if this leaks at 2am, what can be done with it, for how long, and how would we find out? Those three answers — scope, lifetime, detectability — are very nearly the whole design. A database credential with full write access, no expiry and no per-service attribution scores badly on all three, and it is also among the most common things in production.
Treating environment variables as a safe place for secrets. They are better than a committed file and considerably worse than people assume: they surface in crash dumps, in process listings, in startup logs that helpfully print the environment, and in every child process you spawn. Injecting a secret at runtime from a store that records the access is a materially different posture from baking it into a deploy config that thirty people can read.
The real test is not whether you have a secrets manager. It is how long a leaked credential stays useful, and whether you would notice it being used. Both of those are numbers, and you should be able to say them out loud.