QuestionQ106

VerifiedMaintaining and automating data workloads

An encryption key stored in Cloud Key Management Service (Cloud KMS) has been exposed. You must re-encrypt all CMEK-protected Cloud Storage data that used this key, and then delete the compromised key. You also want to lower the risk that objects are written without customer-managed encryption key (CMEK) protection in the future. What should you do?

Explanation

Cloud KMS key rotation does not automatically re-encrypt data already encrypted with an earlier key version. Rewriting objects by copying them to a new bucket encrypts the destination objects again. A bucket default CMEK is applied to objects added to that bucket when no object-specific key is supplied, so configuring the new bucket with the replacement key protects both the copied objects and future writes. After the old objects have been re-encrypted and no longer require the compromised key, its key version can be destroyed.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!