A financial technology company stores analytical datasets containing sensitive customer transaction records in Google BigQuery. Corporate security policy mandates the use of Customer-Managed Encryption Keys (CMEK) hosted in Cloud KMS. To strictly enforce separation of duties and least privilege, security administrators must manage the key lifecycle without having permissions to query BigQuery dataset contents, while data analysts must run queries without holding permissions to manage or directly invoke Cloud KMS key operations. Furthermore, the BigQuery service must perform encryption and decryption operations automatically on behalf of the analysts. Which architecture and IAM configuration correctly meets these requirements?
- Grant the Cloud KMS CryptoKey Encrypter/Decrypter role (roles/cloudkms.cryptoKeyEncrypterDecrypter) specifically to the BigQuery Service Agent, restrict Cloud KMS administrative roles to the security team, and grant BigQuery Data Viewer and Job User roles to the data analysts without Cloud KMS permissions.Cevap
- BSupply raw 256-bit AES Customer-Supplied Encryption Keys (CSEK) within every BigQuery API query request header, and grant data analysts the Cloud KMS Admin role so they can rotate the encryption keys dynamically.
- CGrant the Editor primitive IAM role (roles/editor) to the BigQuery Service Agent on the Cloud KMS KeyRing and grant the Owner primitive IAM role (roles/owner) to data analysts to ensure all underlying encryption operations inherit access.
- DGrant the Cloud KMS CryptoKey Encrypter/Decrypter role directly to data analysts, and rely exclusively on IAM permissions while omitting VPC Service Controls, assuming IAM alone prevents unauthorized data exfiltration across storage boundaries.
Cevap
Grant the Cloud KMS CryptoKey Encrypter/Decrypter role (roles/cloudkms.cryptoKeyEncrypterDecrypter) to the BigQuery Service Agent, keep Cloud KMS administration restricted to security administrators, and grant data analysts BigQuery query/viewer access without key permissions.
The correct solution grants the Cloud KMS CryptoKey Encrypter/Decrypter role (roles/cloudkms.cryptoKeyEncrypterDecrypter) directly to the BigQuery Service Agent. This allows BigQuery to handle transparent data encryption and decryption during query execution. Security administrators retain key management permissions, and data analysts receive standard BigQuery data viewer and job user permissions, achieving strict separation of duties and least privilege.
Adım Adım Çözüm
Anahtar Kavram
Data Encryption at Rest, in Transit, and Key Management (KMS/CMEK/CSEK)