Private Data, Encryption, and Secrets
Protecting a private document includes its copies in caches, logs, and backups. Application credentials also need an owner, a purpose, and a way to replace them.
On this page
Decide where each copy belongs
Collect the minimum needed. Encrypt sensitive data and backups at rest using managed, authenticated encryption and separate key access from data access. Hashing supports one-way verification. Encryption allows authorized recovery with a key. Define retention and test restoring encrypted backups with authorized keys. For sensitive account responses instruct caches not to store the response.
Cache-Control: no-store
Deliver and rotate a service credential
Issue scoped, short-lived credentials from a secret manager or workload identity system. Keep them in the server environment. Code shipped to the browser is public. If a credential is exposed, revoke or rotate it, update consumers, and review use during the exposure window. Removing a string from source alone leaves the old credential valid.
Browser bundle Public application settings
API runtime Read one service credential from the secret manager
Audit event Credential identifier, rotation time, responsible service