A SaaS startup uses Vault to manage secrets for their microservices architecture. They have enabled the KV v2 secrets engine at 'secret/' and the database secrets engine at 'database/'. Developers often need to read application configuration from 'secret/app/config' and database credentials from 'database/creds/app-role'. Recently, the security team mandated that all secrets must be encrypted at rest using Vault's seal mechanism. They configured Vault to use AWS KMS as the seal. After enabling the seal, they noticed that reading from 'secret/app/config' still works, but reading from 'database/creds/app-role' returns an error: 'Error making API request: Code: 500. Errors: * 1 error occurred: * failed to decrypt data'. What is the most likely cause?
Trap 1: The database engine requires a separate seal configuration.
Incorrect. All secrets engines share the same seal configuration; there is no separate seal for the database engine.
Trap 2: The database engine configuration is stored in a different location…
Incorrect. All storage in Vault is sealed using the same master key; there is no unsealed location.
Trap 3: The database engine uses a separate encryption key that was not…
Incorrect. The database secrets engine does not use a separate encryption key that requires re-wrapping. All data is encrypted with the master key, and a seal change does not affect decryption as long as the master key is accessible.
- A
The database engine requires a separate seal configuration.
Why wrong: Incorrect. All secrets engines share the same seal configuration; there is no separate seal for the database engine.
- B
The database engine configuration is stored in a different location that is not sealed.
Why wrong: Incorrect. All storage in Vault is sealed using the same master key; there is no unsealed location.
- C
The AWS KMS key has been rotated and Vault cannot access the old key.
Correct. A rotated KMS key can cause decryption failures for newly decrypted items (like database engine configuration) if the old key version is unavailable, while previously cached or re-decrypted items (like KV v2 secrets) may still work.
- D
The database engine uses a separate encryption key that was not re-wrapped after changing the seal configuration.
Why wrong: Incorrect. The database secrets engine does not use a separate encryption key that requires re-wrapping. All data is encrypted with the master key, and a seal change does not affect decryption as long as the master key is accessible.