Configure Google Cloud Platform

Required GCP permissions

The GCP account performing this integration had the following permissions. These were granted by the project admin. Not all these permissions are required to perform this integration.

  • Cloud Build Editor

  • Cloud KMS Admin

  • Compute Admin

  • Deployment Manager Editor

  • Private Logs Viewer

  • Service Account Admin

  • Service Account Key Admin

  • Service Account User

  • Service Management Administrator

  • Service Usage Admin

  • Storage Admin

  • Viewer

user permissions

Create a service account in GCP

A service account needs to be created in a GCP IAM. This service account will be used by KeyControl Vault to access the GCP key rings. Once created, this service account needs permissions that have to be granted by the project admin.

  1. Open a browser and sign in to the GCP portal https://console.cloud.google.com.

  2. Select IAM & Admin on Google Cloud Menu.

  3. Select Service Accounts in the left-hand pane.

  4. Select CREATE SERVICE ACCOUNT.

  5. Enter the Service account details.

    For example:

    create service account 1
    • Select CREATE AND CONTINUE

    • In the Grant this service account access to project section, select Continue.

    • In the Grant users access to this service account section, select DONE.

Service Account Permissions

  1. Open a browser and sign in to the GCP portal https://console.cloud.google.com.

  2. Select IAM & Admin on Google Cloud Menu.

  3. Select Service Accounts in the left-hand pane.

  4. Select the service account that you have just created.

  5. In the DETAILS tab.

    1. Take note of the Account Name.

    2. Take note of the Unique ID.

  6. The following roles were given to this service account by the system admin after it was created:

    • Browser

    • Cloud KMS Admin

    • Service Account Key Admin

Create a key for the service account

A key needs to be created for the service account created in Create a service account in GCP. This key will be used by KeyControl Vault to access the GCP service account.

  1. Open a browser and sign in to the GCP portal: https://console.cloud.google.com.

  2. Select IAM & Admin on Google Cloud Menu.

  3. Select Service Accounts in the left-hand pane.

  4. Select the service account created in Create a service account in GCP from the list.

  5. Select the KEYS tab.

  6. Select ADD KEY and then select Create new key.

  7. Select JSON from the available Key type options.

  8. Select CREATE. A pop-up message appears indicating that the key created was downloaded to your computer.

  9. Verify by checking your Downloads folder that a .json file was created in the Downloads folder.

  10. Take note of the new key in the GCP console.

    For example:

    newkey

Create a GCP key ring

This key ring will be used to store keys managed by KeyControl Vault. A new GCP key ring was created for this integration to show the entire process. You can use an existing key ring instead.

If you are using an existing GCP key ring, proceed to section configure-kc-as-gcp-csp.adoc#create-keycontrol-csp-account directly, skipping this section entirely.

  1. Open a browser and sign in to the GCP portal: https://console.cloud.google.com.

  2. In the navigation menu select Security > Key Management.

  3. Select + CREATE KEY RING.

  4. Enter the Key ring name and select the Location type.

    For example:

    createkeyring
  5. Select CREATE to create the key ring

  6. Select CANCEL in the Create key pane.