An application running on Amazon ECS needs to decrypt sensitive customer configuration files that were previously encrypted using client-side envelope encryption with an AWS KMS customer managed key. The application has access to the encrypted files and the corresponding ciphertext data keys stored alongside them. Which TWO actions must the developer implement in the application code to retrieve the original configuration files?
- Call the Decrypt API operation of AWS KMS, passing the ciphertext data key to obtain the plaintext data key.Cevap
- Decrypt the configuration file locally using the plaintext data key and a symmetric decryption algorithm.Cevap
- CCall the Decrypt API operation of AWS KMS, passing the entire encrypted configuration file to AWS KMS.
- DCall the GenerateDataKey API operation of AWS KMS using the customer managed key to retrieve the plaintext decryption key.
- ECall the AWS Secrets Manager GetSecretValue API using the customer managed key identifier to fetch the stored plaintext data key.
Cevap
To retrieve the original configuration files, the developer must call the Decrypt API operation of AWS KMS to decrypt the ciphertext data key, and then decrypt the configuration file locally using the resulting plaintext data key.
The correct solution involves calling the AWS KMS Decrypt API operation with the ciphertext data key to get the plaintext data key, and then using that key to decrypt the payload locally. This process separates key management from data processing, satisfying envelope encryption requirements.
Adım Adım Çözüm
Anahtar Kavram
Client-side envelope decryption workflow using AWS KMS