An enterprise security architect is designing an automated data ingestion pipeline into Google Cloud Storage for a highly regulated financial application. Compliance mandates that all stored customer data must be encrypted at rest using Customer-Managed Encryption Keys (CMEK) managed via Cloud KMS. The security policy requires strict separation of duties: storage administrators who provision and manage Cloud Storage buckets must not have direct permissions to encrypt or decrypt data or manage encryption keys, whereas automated system services must be granted least-privilege access to perform key operations. Additionally, the setup must support automatic key rotation every 90 days without re-encrypting existing data manually or breaking access to older object versions. Which architecture and identity configuration satisfies these security and operational requirements?
- Create a KeyRing and CryptoKey in Cloud KMS with an automated 90-day rotation schedule. Grant the Cloud Storage service account the Cloud KMS CryptoKey Encrypter/Decrypter role (roles/cloudkms.cryptoKeyEncrypterDecrypter) on the CryptoKey, grant Cloud KMS Admin rights (roles/cloudkms.admin) exclusively to the Security Operations team, and configure the bucket's default KMS key.Answer
- BGenerate customer-supplied key material (CSEK) locally, configure an automated 90-day rotation policy within Cloud KMS, and assign storage administrators the primitive Owner role on the Cloud KMS KeyRing to allow them to bind keys during bucket provisioning.
- CGrant storage administrators the primitive Editor role on the project to configure bucket CMEK properties, and grant the Cloud Storage service account the Cloud KMS Admin role (roles/cloudkms.admin) so it can generate new key versions during automated key rotation cycles.
- DAssign the Cloud KMS CryptoKey Encrypter/Decrypter role directly to individual storage administrator user identities while leaving the Cloud Storage service account unprivileged, relying on IAM policy conditions to restrict key usage to approved storage buckets.