Custom Managed Encryption Key¶
Overview¶
The GCP BigQuery connector supports the use of Custom Managed Encryption Keys (CMEK), allowing you to enhance data security by managing your own encryption keys. This feature gives you greater control over the encryption of datasets stored in BigQuery, adding an extra layer of protection beyond default Google-managed keys.
Prerequisites¶
- KeyRing and key is created in CMEK.
- User should have Cloud KMS CryptoKey Decrypter permission on the key.
Configuration Steps¶
Note
- Changing the CMEK configuration in the BigQuery connector does not affect previously created secure datasets.
- Secure datasets retain the original CMEK key they were created with, regardless of any later changes to the configuration.
-
Navigate to Settings → Applications in the Self-Managed Portal.
-
Select BigQuery from the list of Connected Applications.
-
Click on the application name or the icon, then click on Access Management → ADVANCED tab.
-
To configure the custom encryption key, enter the value in the following field.
-
To enable CMEK encryption for secure view dataset:
default_kms_key_name = 'projects/{project-id}/locations/{location}/keyRings/{keyring}/cryptoKeys/{keyname}'
Note
Replace
{project-id}
,{location}
,{keyring}
, and{keyname}
with your actual values.
-
-
Click Save to apply the changes.
-
SSH to the instance where Privacera Manager is installed.
-
Run the following command to open the .yml file to be edited.
If you have multiple connectors, then replace
instance1
with the appropriate connector instance name.Bash -
Add the following properties to set CMEK configuration in secure dataset.
Note
Replace
project-xxx
,location
,keyring
, andkeyname
with your actual values. -
Once the properties are configured, run the following commands to update your Privacera Manager platform instance:
Step 1 - Setup which generates the helm charts. This step usually takes few minutes.
Step 2 - Apply the Privacera Manager helm charts. Step 3 - Post-installation step which generates Plugin tar ball, updates Route 53 DNS and so on.
-
In PrivaceraCloud portal, navigate to Settings -> Applications.
-
On the Connected Applications screen, select BigQuery.
-
Click the icon or the Account Name to modify the settings.
-
On the Edit Application screen, go to Access Management -> ADVANCED tab.
-
Add the following property to the Add New Custom Properties.
Bash Note
Replace
{project-id}
,{location}
,{keyring}
, and{keyname}
with your actual values. -
Click Save to apply the changes.
- Prev topic: Advanced Configuration