01 Sign in to the Google Cloud Management Console.
02 Select the Google Cloud Platform (GCP) project that you want to access from the console top navigation bar.
03 To create and configure your new Customer-Managed Encryption Key (CMEK), perform the following actions:
- Navigate to Key management console available at https://console.cloud.google.com/security/kms.
- Before you can set up and configure your Customer-Managed Encryption Key (CMEK), you must create a key ring. A Cloud KMS key ring is a grouping of cryptographic keys made available for organizational purposes in a specific location. To get started, choose CREATE KEY RING to set up the required key ring.
- A key ring requires a name and a location. On the Create key ring setup page, provide a unique name in the Key ring name box, select the key location type from the Location type list, then choose the appropriate key location from the Region/Multi-region dropdown list. The location can be either multi-region or associated with a particular region. If the CMEKs created later within this key ring will be used to encrypt/decrypt data in a particular region, select that region as the key ring location. Choose CREATE to deploy the new key ring.
- On the Create key setup page, provide the following information:
- For Name and protection level, provide a unique name for your new KMS key in the Key name box and choose the protection level that you want to use from the Protection Level dropdown list. Choose CONTINUE to continue the setup process.
- For Key material, choose Generated key to generate the key material for you (recommended). Choose CONTINUE.
- For Purpose and algorithm, choose Symmetric encrypt/decrypt to define the types of operations that your cryptographic key can perform. Choose CONTINUE to continue the setup.
- For Versions, configure the key rotation period as necessary. Choose CONTINUE.
- For Additional settings (optional), set the duration for the scheduled for destruction (i.e., soft deleted) state before the key is removed from the system. Choose ADD LABEL and use the Key and Value text fields to create labels in order to organize the identity of the new key.
- Choose CREATE to deploy your new Cloud KMS Customer-Managed Encryption Key (CMEK).
04 Navigate to Document AI console available at https://console.cloud.google.com/ai/document-ai/.
05 In the left navigation panel, under Processors, select My Processors, choose CREATE CUSTOM PROCESSOR, and perform the following operations to create a new custom AI processor:
- Select the Document AI processor type that best fits your requirements and choose CREATE PROCESSOR.
- For Processor name, provide a unique name for your custom AI processor.
- For Region, choose the region where your processor and its dataset will be stored.
- Choose ADVANCED OPTIONS, and perform the following actions:
- For Storage location, select the appropriate storage location for the processor dataset.
- For Encryption, choose Cloud KMS key, select Cloud KMS for Key management type, and choose the name of your new Customer-Managed Encryption Key (CMEK) from the Select a Cloud KMS key dropdown list. Inside the \ service account does not have the "cloudkms.cryptoKeyEncrypterDecrypter" role. Verify the service account has permission to encrypt/decrypt with the selected key box, choose GRANT to grant the associated service account access to your key using the Cloud KMS CryptoKey Encrypter/Decrypter role.
- Choose CREATE to create your new CMEK-encrypted Document AI processor.
06 To deploy a CMEK-encrypted processor from the Document AI processor gallery, choose Processor gallery from the left navigation panel, select the processor model that you want to use and follow the setup steps, as outlined in step no. 5, to create your new CMEK-encrypted Document AI processor.
07 Repeat steps no. 5 and 6 for each Document AI processor that you want to deploy for the selected GCP project.
08 Repeat steps no. 2 – 7 for each GCP project available in your Google Cloud account.