Skip to content

11.3. Secrets Management and Encryption

Secrets — database passwords, API keys, private keys — are the credentials that turn one breach into total compromise, and the hardest problem in managing them is bootstrap: the secret that unlocks the other secrets has to come from somewhere. This chapter covers dynamic secrets and rotation with Vault, why Kubernetes Secrets alone are insufficient, envelope encryption that lets you rotate keys without re-encrypting data, the transit-versus-at-rest encryption both of which are mandatory, and supply-chain security that verifies your artifacts were not tampered with before they ran.