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.
More on Secrets Management Architecture
How would you design a secrets management architecture for a multi-cloud, multi-cluster company?AdvancedVault vs AWS Secrets Manager: how do you choose in production?IntermediateHow do you run Vault in production for high availability?AdvancedHow do you solve the "secret zero" problem?IntermediateHow do Vault dynamic database credentials work operationally, and what can go wrong?AdvancedHow does AWS Secrets Manager rotation work under the hood?Intermediate