An organization is deploying an application on Compute Engine that writes confidential audit logs to a Cloud Storage bucket using Customer-Managed Encryption Keys (CMEK). The compliance policy mandates strict separation of duties: security administrators must handle key creation and policy configuration, but must not be able to encrypt or decrypt data. Conversely, the application service account must only be able to encrypt and decrypt data using the key. Which TWO IAM configurations fulfill these requirements according to Google Cloud best practices?
- Grant the security administrators the Cloud KMS Admin role (roles/cloudkms.admin) on the Key Ring, and grant the Cloud Storage Service Agent the Cloud KMS CryptoKey Encrypter/Decrypter role (roles/cloudkms.cryptoKeyEncrypterDecrypter) on the CryptoKey.Answer
- BGrant the security administrators the Project Owner role (roles/owner) at the project level to allow key lifecycle management, while granting the Compute Engine default service account the Cloud KMS CryptoKey Encrypter/Decrypter role.
- CGrant the Cloud Storage Service Agent the Cloud KMS Admin role on the Key Ring so it can automatically manage key rotation schedules during bucket write operations.
- DEnsure that the security administrators are granted the Cloud KMS CryptoKey Encrypter/Decrypter role on the project level so permissions inherit down to all newly created Key Rings.
- ERevoke all IAM permissions from security administrators after key creation and permanently delete the Cloud KMS Key Ring object to prevent further configuration changes.
Answer
Granting the Cloud KMS Admin role to security administrators allows administrative key operations without data encryption/decryption capabilities. Granting the Cloud KMS CryptoKey Encrypter/Decrypter role to the Cloud Storage Service Agent allows the service to perform CMEK cryptographic operations for the bucket.
The correct security baseline mandates granting the predefined Cloud KMS Admin role to key managers so they can manage permissions and key settings without ability to inspect encrypted data. Concurrently, assigning the Cloud KMS CryptoKey Encrypter/Decrypter role specifically to the Cloud Storage Service Agent allows automated CMEK bucket operations under least privilege.
Step-by-Step Solution
Key Concept
Cloud KMS Separation of Duties and CMEK IAM Roles
Estimated Time:2m 0s