Google Cloud Platform (GCP) Integration Setup Instructions

Purpose of Integration

This integration automatically collects evidence on your behalf.

Part 1: Create a Role and Service Account

Note:

Steps 1-16 are completed at the Project level.

  1. Log in to the Google Cloud Platform console (https://console.cloud.google.com).

  2. Navigate to the Select a Project drop-down menu (near the top of the screen).

  3. Click the arrow and select the All tab.

  4. Select a project listed beneath your organization.

  5. Enter IAM in the Search Projects and Resources field.

  6. Select Service Accounts in the left-hand navigation.

  7. Click + Create Service Account.

  8. Enter the Service Account Name. (Note: This will also generate a Service Account ID.)

  9. Click Create.

  10. Click Done.

  11. Select the service account you just created to view its Details tab.

  12. Navigate to the service account’s Keys tab.

  13. Click the Add Key drop-down menu.

  14. Select Create New Key.

  15. Choose JSON.

  16. Click Create.

    Note:

    Steps 17-24 are completed at the Organization level.

  17. Navigate to the Select a Project drop-down menu.

  18. Select your Organization from the drop-down menu.

  19. Select Roles in the left-hand navigation.

  20. Click + Create Role.

  21. Enter the Title (e.g. Evidence Collection).

  22. Click + Add Permissions.

  23. Use the Filter field to select the following permissions:

    You can also view and download the permissions here.

    CODE
    compute.firewalls.list
    logging.logEntries.list 
    logging.privateLogEntries.list
    monitoring.alertPolicies.list
    monitoring.dashboards.list
    monitoring.groups.list
    monitoring.metricDescriptors.list
    monitoring.notificationChannelDescriptors.list
    monitoring.notificationChannels.list 
    monitoring.uptimeCheckConfigs.list
    resourcemanager.organizations.get
    resourcemanager.organizations.getIamPolicy
    resourcemanager.projects.get
    resourcemanager.projects.getIamPolicy
    resourcemanager.projects.list
    storage.buckets.getIamPolicy
    storage.buckets.list
    cloudsql.instances.list
    compute.disks.list
    compute.disks.getIamPolicy
    cloudfunctions.functions.getIamPolicy
    cloudfunctions.functions.list
  24. Click Create.

    Note:

    If you would like to give this integration access to your entire organization, complete steps 25-29 at the Organization level.

    Note:

    If you would like to limit this integration’s access to specific projects, navigate to the Select a Project drop-down menu and select an applicable project.

  25. Click IAM in the left-hand navigation.

  26. Select Add.

  27. Enter the Service Account Email in the New Members field.

  28. Use the Select a Role drop-down menu to assign a role.

  29. Click Save.

    Note:

    Repeat steps 25-29 for each project in the scope (if applicable).

Part 2: Add GCP User Credentials

  1. Open the Integrations Setup page in the platform.

  2. Select Google Cloud Platform.

  3. Click the plus.

  4. Enter the Account Name.

  5. Enter the Description (if applicable).

  6. Click Save and Continue.

  7. Drag and drop the JSON file (created in Part 1: Create a Role and Service Account).

  8. Click Save Credentials.

Part 3: Configure Evidence Collection Services

  1. Click the plus to add a new service in the platform.

  2. Choose a service to configure.

  3. Click Save and Continue.

  4. Select a Collection Interval from the drop-down menu.

  5. Click Save.

  6. Choose one of the following options to enter an evidence collection location:

    • Select a recommended evidence task.

    • Click Select from existing evidence to choose an alternative evidence collection location.

    • Click Create and Select Evidence Task if the recommended evidence task does not currently exist in your account.

  7. Select Save and Continue.

  8. Repeat steps 1-7 for each applicable service.

  9. Click Sync All Services to complete the setup.

Part 4: Troubleshooting Common Errors

Error: Cloud Resource API not enabled

This error occurs when the Cloud Resource Manager API is not enabled. This Google Enterprise API provides access to read Google Cloud Platform resource container metadata. To activate, visit console.cloud.google.com/apis/library/cloudresourcemanager.googleapis.com and select the Project where you added the service account in Part 1: Create a Role and Service Account to activate the resource.

Only one GCP Project is visible / appears in the generated reports

This error is most often caused by skipping steps 25-29 in Part 2: Add GCP User Credentials. Verify that the Service Account created in Part 1: Create a Role and Service Account has been correctly assigned a role in all desired organization(s) and project(s) where you wish for evidence to be automatically collected by the platform.