Interview Prep/DevSecOps/Secrets Management Architecture

How do you encrypt application-level sensitive fields (PII) beyond disk encryption?

AdvancedProductionSecrets Management Architecture
Answer

Use envelope encryption at the application layer: Vault Transit (vault write transit/encrypt/pii plaintext=$(base64 <<< "data")) or AWS KMS with the Encryption SDK. The app never handles the master key; keys rotate in the KMS (vault write -f transit/keys/pii/rotate) and old ciphertexts stay decryptable. This protects against database dumps, backups and over-privileged DBAs, which disk encryption does not. Trade-offs: searching encrypted fields needs blind indexes or tokenization, and KMS latency/cost on hot paths needs caching of data keys.

All DevSecOps questions Roadmap: Supply chain, secrets & identity

More on Secrets Management Architecture