Security
Certificates, TLS, secrets and access policies: the security work that keeps production quietly safe.
9 posts
- The certificate was valid. The CI image just did not know its new rootOvernight a CI job started failing with "self signed certificate in certificate chain", while the browser opened the same URL fine. The server had switched to a newer CA root, and the job image sat on an end-of-life Debian whose trust store predated it.
- CI was red, and the CI code was fine: two silent expiries behind one VaultA pipeline failed at its first stage, and every later stage was skipped. The CI code never ran: Vault was crashlooping on an expired auto-unseal token, and once it was back up, its serving certificate had expired too.
- An AI agent on my ops work: the guardrails that make it safeI run much of my operations work with an AI agent in the terminal: kubectl, logs, manifests, git, cloud APIs. Speed is the easy part. These are the rules that make it safe, and the mistakes they caught.
- The certificates expired on schedule. The alert fired for a week — into nowhereA kubeadm cluster lost its control plane exactly one year after install. The expiry alert had been firing for seven days, but Alertmanager only had a null receiver.
- A production certificate expired and nobody noticed: the front proxy covered for itEvery public host returned 200 while the cluster served an expired wildcard. A proxy with its own TLS hid the outage; the real finding was the missing expiry alert.
- Basic auth vanished on port 80 after an Ingress to Gateway API migrationEvery status was green and my own curl returned 401. Yet the WordPress login was open to the world: Gateway API binds a policy to one listener, while Ingress annotations covered every port.
- A star in the middle of a Vault path is not a wildcardA dead token took down a secrets operator. Reissuing it exposed an older bug: 27 Vault policies used * mid-path, silently denied what they declared, and hid an over-privilege.
- Moving Vault from Shamir to transit auto-unseal, and the four traps on the wayEvery Vault pod restart came back sealed and froze secret sync behind it. How we added a transit auto-unseal provider, migrated a three-node raft cluster, and what bit us.
- "Vault keeps sealing itself" — no, it just never unsealsA Vault pod sat at Ready 0/1 for days while raft quorum quietly held on two peers. Nothing was sealing it: Shamir seal without auto-unseal leaves every restart sealed.