Ensure that all your Google Cloud BigQuery datasets are encrypted using Customer-Managed Encryption Keys (CMEKs) in order to have a more granular control over the dataset encryption/decryption process.
This rule resolution is part of the Conformity Security & Compliance tool for GCP.
By default, Google Cloud BigQuery encrypts your data at rest using envelope encryption with Google-managed cryptographic keys. BigQuery manages this type of encryption without any additional actions from you and your application. However, if you have sensitive or confidential data to encrypt, and you need to fully control and manage the encryption process yourself, you can create and use Customer-Managed Encryption Keys (CMEKs). Instead of letting Google manage the encryption keys that protect your BigQuery datasets, you can choose to create and manage your own encryption keys using Google Cloud Key Management Service (Cloud KMS). With Cloud KMS, you can create, rotate, manage and destroy your own Customer-Managed Encryption Keys (CMEKs).
Audit
To determine if your Google Cloud BigQuery datasets are encrypted using default Customer-Managed Encryption Keys (CMEKs), perform the following operations:
Note: Verifying encryption settings for BigQuery datasets using Google Cloud Platform (GCP) Console is not currently supported.Remediation / Resolution
To enable encryption at rest with default Customer-Managed Encryption Keys (CMEKs) for your BigQuery datasets, perform the following operations:
Note: Configuring default Customer-Managed Encryption Keys for BigQuery datasets using Google Cloud Platform (GCP) Console is not currently supported.References
- Google Cloud Platform (GCP) Documentation
- BigQuery
- Customer-managed Cloud KMS keys
- Cloud Key Management
- Encryption at rest in Google Cloud
- GCP Command Line Interface (CLI) Documentation
- gcloud projects list
- gcloud kms keyrings create
- gcloud kms keys create
- gcloud projects add-iam-policy-binding
- BQ Command Line Interface (CLI) Documentatio
- Using the bq command-line tool
- Listing datasets
- Getting information about datasets
- Updating dataset properties