1.0 Overview
The Fortanix solution for GCP Cloud KMS offers complete Bring Your Own Key (BYOK) and lifecycle management for management and automation of native GCP Cloud keys (CMEK – Customer Master Encryption Key) and allows users to manage all keys centrally and securely.
2.0 Fortanix Data Security Manager GCP Cloud KMS Group Workflow
The following section describes the workflow to configure Fortanix DSM to interact with the GCP Cloud KMS. A GCP KMS group is created in the Fortanix DSM account, and this group is configured to interact with the GCP KMS.
3.1 Create a GCP Cloud Key Management Service Group
- In the Fortanix DSM Groups
page, click the
button to create a new GCP KMS group.
Figure 1: Create new group
- In the Adding new group form:
- Enter a title and description for your group.
- Next, click the LINK HSM/EXTERNAL KMS button to select the GCP Key Management Service type, so that Fortanix DSM can connect to it.
Figure 2: Link GCP KMS
3.2 Configure the GCP KMS
3.2.2 Create GCP KMS Group
- Click the drop-down and select GCP Key Management Service type.
Figure 3: Choose HSM/External KMS type - GCP Project ID: This is the unique identifier for the Google Cloud project used to differentiate your project from all others in Google Cloud. For example:
fortanix
- Select the geographical region/location where the Google Cloud KMS resource is stored or can be accessed within a Google Cloud project. For example:
South Carolina (us-east1)
. - Authentication: To authenticate with the Google Cloud KMS, a Google service account is used. The service account should have the following scopes:
https://www.googleapis.com/auth/cloudkms
https://www.googleapis.com/auth/cloud-platform
Enter the service account email in the format
SERVICEACCOUNT@PROJECT.iam.gserviceaccount.com
- Upload a Private Key: Upload the JSON/p12 file containing the private key of the service account to authenticate with Google Cloud KMS.
Figure 4: Service account credentials
3.3 Test Connection
- Click TEST CONNECTION to test your GCP KMS connection. If Fortanix DSM is able to connect to your GCP using your connection details, then it shows the status as “Connected” with a green tick
. Otherwise, it shows the status as “Not Connected” with a yellow warning sign
.
Figure 5: Test connection - successful
3.4 Select Key Ring
After the connection is successful, you will get the list of keyrings from which you have to select the key ring that you want to configure for the GCP KMS group. A key ring organizes keys in a specific Google Cloud location and allows you to manage access control on groups of keys. Figure 6: Select key ring
3.5 Save GCP KMS Group Details
Though testing the connection in the previous section is an optional step, you can save your group details even if the connection information might be incorrect or incomplete, you can edit these details later. Now, save your group details by clicking the SAVE button.
Once you save your group details, your group is created, and you will see a detailed view of your group.
Figure 7: Group detailed view
Now you can see that there is an addition of the HSM/KMS tab in the group details, this tab shows the details about your KMS.
3.6 The HSM/KMS Tab
The HSM/KMS tab shows the details of the KMS that was added such as the service account email and key ring name of the GCP KMS. You can also edit the GCP connection details such as the Service account email and the Private key here.
Once you edit the connection details and save it, click TEST CONNECTION to test the connection.
Click SYNC KEYS to create virtual copies of all the keys present in the key ring of the location and project provided in the GCP KMS group.
Figure 8: Sync keys
3.7 Not Connected Scenario
On clicking TEST CONNECTION, it is possible that Fortanix DSM is not able to connect to the GCP KMS, in that case, it displays a “Not Connected” status with a warning symbol . You can save the details of the new connection details provided and edit them later.
3.8 Groups Table View
After saving the group details, you can see the list of all groups and notice the special symbol next to the newly created group, this symbol differentiates it from the other groups, as it shows that it is a GCP KMS group.
Figure 9: GCP KMS groups
3.9 User's View
Click the Users tab in the Fortanix DSM UI, and click the user that says “You” to go to the user’s detailed view, as shown below.
Figure 10: User's table
The detailed view shows all the groups of which the user is a part of, additionally Fortanix DSM displays which groups are mapped to GCP KMS and whether they are “Connected” or “Not Connected”.
Figure 11: User detailed view
4.0 Fortanix Data Security Manager GCP KMS Security Objects
After the GCP KMS group successfully connects to the GCP KMS using the connection details, the keys from the GCP KMS region are stored in the Fortanix DSM GCP KMS group as virtual keys. A virtual key is a key whose key material is not present in the GCP KMS group. The key material is stored securely in the key ring of the location and project provided in the GCP KMS group. The virtual key is only a pointer with the key information and key attributes, but it does not hold the key material.
4.1 Create a Key in GCP KMS Group - Generate
You can generate a key in a configured GCP KMS region.
4.1.1 Generate a Key
This action will generate the configured key type in the configured GCP KMS regions directly, and it will be represented as a virtual key in the corresponding GCP KMS group. This means that the virtual key in the GCP KMS group will point to the actual key in GCP KMS that stores the key material of this new key.
In your Fortanix DSM console, follow the process below to create a new key:
- Click the Security Objects
tab (Figure 12).
- Click
to create a new Security Object.
Figure 12: Security objects tab in Fortanix Data Security Manager
- In the Add New Security Object form enter a name for the Security Object (Key).
- Select the This is an HSM/external KMS object check box. This will show the GCP KMS configured groups in the Select group list.
- In the GCP group list, select the GCP KMS group into which the keys will be generated. The keys will be generated into the region that was selected in the GCP KMS group.
- Select GENERATE IN GCP to initiate the generate key in the GCP KMS workflow.
- Enter the GCP key name The GCP key name is the key name that will be stored in the GCP Key Ring. The GCP key name will be used to correlate between different versions of a key. All the key versions will have the same GCP key name.
- Select the key type for the new GCP KMS key.
Figure 13: Generate key in GCP KMS
- Enter the Key size and select the permitted key operations under Key operations permitted section.
- Add custom attributes by clicking the ADD ATTRIBUTE
- To store audit logs for the object in the group, enable the toggle for Keep detailed log for the object. The initial state of the toggle is based on the parent Crypto policy if any.
- Click the GENERATE button to generate the key in GCP KMS.
Figure 14: Generate key - The new GCP Key is created and represented with a special symbol
to denote it is of type HSM/External KMS. In the detailed view of the GCP key you will notice the following things:
- The group to which it belongs (in the Group field). It also shows if the group is mapped to a GCP KMS or not using the special icon
.
- How the key was created (in the Created by field). If it is a GCP KMS key, this field shows the group that created this key. It also shows minor details such as if the group is “Connected” or “Not Connected”.
- The group to which it belongs (in the Group field). It also shows if the group is mapped to a GCP KMS or not using the special icon
- The new GCP KMS key is in an Enabled state by default which means that all the Encrypt and Decrypt operations can be performed on the actual key in the GCP KMS according to the key permissions. Click the toggle for Enabled to disable it. This will disable the GCP KMS key temporarily.
Figure 15: Security object detailed view
- The new key will be added to the Security Objects table.
Figure 16: Key added
Figure 17: View/add GCP KMS security objects
4.1.2 Bring Your Own Key - Import Key
This action will import the configured key type in the key ring in one of the configured GCP KMS regions directly, and it will be represented as a virtual key in the corresponding GCP KMS group. This means that the virtual key in the GCP KMS group will point to the actual key in GCP KMS that stores the key material of this new key. The virtual key only stores the key information and key attributes, but it does not have the key material. The import action will not store a copy of the key material in Fortanix DSM.
- Follow Steps 1-5 from Section 4.1.1
- Select IMPORT to initiate the import key in the GCP KMS workflow.
- Enter the GCP key name The GCP key name is the key name that will be stored in GCP Key Ring. The GCP key name will be used to correlate between different versions of a key. All the key versions will have the same GCP key name.
- Select the key type for the new GCP KMS key.
These key types can further be restricted by setting a Cryptographic policy for the account or group or a Key Metadata Policy for the group. For more details about the Cryptographic policy, please refer to the article: User's Guide: Cryptographic Policy.
For more details about the Key metadata policy, please refer to the article: User's Guide: Key Metadata Policy.
- Sometimes keys of type AES that need to be imported from a file were previously wrapped (encrypted) by a key from Fortanix DSM. This is done so that the key should not go over the TLS in plain text format. In such scenarios select the check box The key has been encrypted.
- Next enter or select a Key ID or SO name in the Select Key Encryption Key section which will be used to unwrap (decrypt) the encrypted key in the file which will later be stored securely in Fortanix DSM. This key should have already been created or imported in Fortanix DSM.
- Select the mode of operation.
- Enter the Key Check Value (KCV).
- Click UPLOAD A FILE to upload the key file in Raw, Base64, or Hex format.
- Select the permitted key operations.
- Add custom attributes by clicking the ADD ATTRIBUTE button.
- To store audit logs for the object in the group, enable the toggle for Keep detailed log for the object. The initial state of the toggle is based on the parent Crypto policy if any.
- Click IMPORT to import the key in GCP KMS. The key is now successfully imported.
4.1.3 Bring Your Own Key - Copy Key to GCP KMS
Use this option when you want to generate a key in Fortanix DSM and then import the key into the configured GCP KMS. The copy key to GCP feature will copy a security object from one regular Fortanix DSM group to another regular/GCP KMS Fortanix DSM group. This feature has the following advantages:
- Maintains a single source of key material while using/importing that key into various Fortanix DSM groups where applications may need to use a single key to meet business objectives.
- Maintains a link of various copies of the same key material to the source key for audit and tracking purposes.
The following actions will happen as part of the copy key operation:
- A new key will be created in the target group: The new key will have the same key material as the original.
- The source key links to the copied keys: There will be a link maintained from all copied keys to the source key.
- The Source key will also have basic metadata-based information about the linked keys such as:
- Copied by <user-name/app id>
- Date of Copy <time stamp>
- Target copy group name
To copy a key from a regular Fortanix DSM group to a GCP KMS group:
- Go to the detailed view to a key and click the NEW OBJECT icon
on the far right of the screen.
Figure 18: Initiate copy key
- In the menu that appears, click the COPY KEY button.
Figure 19: Click copy key
- In the COPY KEY window, update the name of the key if required.
- Click the Import key to HSM/External KMS check box to filter the groups to show only GCP KMS groups. Select the GCP group for the new key into which the copied key should be imported.
- Enter the GCP key name.
- Update KEY PERMISSIONS if you want to modify the permissions of the key.
Figure 20: Create copy
- Click CREATE COPY to create a copy of the key as shown in the figure above.
- The source key will now appear as a key link in the KEY LINKS tab in the detailed view of the copied key.
Figure 21: Key link
4.2 Sync Keys
When you edit the GCP KMS connection details in the GCP KMS group detailed view under HSM/KMS tab, click SYNC KEYS to import new keys. On clicking SYNC KEYS, Fortanix DSM connects to GCP KMS and gets all the keys available. Fortanix DSM then stores them as virtual keys.
4.3 Attributes/Tags Tab
This tab will have all the attributes and tags of the GCP key. You can add new tags as attributes using the NEW TAG button.
Figure 22: Key attributes
4.4 GCP Key Details
This tab displays details of the GCP key name and GCP protection level. For more details about GCP protection level, refer to the Google documentation.
Figure 23: GCP key details
4.5 Security Objects Table View
After you add new GCP keys, go to the Security Objects page to view all the security objects from all the groups (GCP and non-GCP).
In the security object table, you will notice that every key belongs to a group and some keys which are virtual keys added from an GCP, belongs to a group with a special symbol . The security objects table view will continue to show all the keys irrespective of if they belong to a GCP KMS group or not.
Figure 24: Security objects table view
Comments
Please sign in to leave a comment.