Prerequisites
Before you begin, you’ll first need to set up a GCP Service Account, add a KMS key and set the required permissions.1
Create a GCP Service Account
-
Navigate to the Create Service Account page in your GCP Console.
- Give the service account a suitable name and description. Then click Create and Continue.
-
Under Grant this service account access to project, click Select a role and select the
Cloud KMS Viewer and Cloud KMS CryptoKey Encrypter/Decrypter* roles, then click Continue.
- You can skip the Grant users access to this service account options.
- Click Done.
- You should see the service account in the list of service accounts. Click it to view the service account details.
- Select the Keys tab, click Add Key, select Create new key, select JSON as the key type, then click Create.
- You will be prompted to download a JSON file that we will need later on.
Remember to keep the JSON file in a secure location. It will be used to authenticate your GCP service account.Once you have successfully set up GCP KMS with Infisical, you should permanently delete the JSON file.
2
Add a GCP KMS Key
- Navigate to the KMS page in your GCP Console.
If you have not used GCP KMS before, you will be redirected to the Cloud Key Management Service (KMS) API page.Click Enable to enable the KMS API, then continue the steps below.It may take a few minutes for the API to be enabled and KMS section of the Cloud Console to become viewable.
-
In the KMS section, click Create Key Ring.
- Give the key ring a Name and select a Region, then click Create.
We don’t currently support multi-region key rings.
- On the “Create Key” page, give the key a Name and set the Protection Level based on your requirements (or use default Software), then click Continue.
- Under Key Material, select Generated Key, then click Continue.
- Under Purpose, select Symmetric encrypt/decrypt, then click Continue.
- For Key Rotation Period, select Never (manual rotation), then click Continue followed by Create.
- You should see the key in the list of keys. We’re now ready to set it up in Infisical.
Setup GCP KMS in the Organization Settings
Next, you will need to follow the steps listed below to add GCP KMS for your organization.1
Navigate to the organization settings and select the 'Encryption' tab.

2
Click on the 'Add' button

3
Select 'GCP KMS'

4
Provide the inputs for GCP KMS

Name for referencing the GCP KMS key within the organization.
Short description of the GCP KMS key.
The GCP region where the GCP KMS key ring is located.
Upload the JSON file you downloaded earlier when creating the GCP service account.
This field will be populated with the list of GCP KMS keys in the selected region. Select the key you created earlier.
5
Click Save
Save your configuration to apply the settings.
Assign GCP KMS Key to an Existing Project
To assign the GCP KMS key you added to your organization, follow the steps below.1
Open Project Settings and select to the Encryption Tab

2
Under the Key Management section, select your newly added GCP KMS key from the dropdown

3
Click Save
Once you have selected the KMS of choice, click save.