Integrating with GCP


Google Cloud Platform integration enables you to scan your GCP infrastructure for runtime misconfigurations.

Though it does not require the integration steps below, Jit recommends that you also activate the Scan IaC for Misconfigurations security requirement for complete infrastructure protection.

Steps for integrating with GCP

To integrate Jit with Google Cloud Platform—

  1. Create a new service account for your Google Cloud project. For instructions, see Google Cloud documentation. Required permissions:

    • Viewer
    • Security Reviewer
    • Stackdriver Account Viewer
  2. Create a JSON key for this service account. For instructions, see Google Cloud documentation.

  3. From the Jit platform, select Secrets in the menu bar under Settings.

  4. Follow the instructions in Secrets to create a secret with the following details:

    • Namegcp_credentials (you must use this exact name)
    • Secret— Paste the contents of your JSON key file into this text box.
  1. Select Integrations.

  2. Locate the GCP tile and select integrate-as-code. You are taken to the jit-integration.yml file. Add the information below to this file. If the option to integrate as-code is not available, you may need to manually addjit-integration.yml to the repo containing Jit's configuration files.

    type: gcp_account
    name: "<your account name>"
      api_token: "${{ jit_secrets.gcp_credentials }}"
    project_id: <your GCP project id>
gcp:Integration type. Key must be gcp:. The GCP integration is nested in this mapping.
<integration_id>:This key is the name you choose for your GCP integration.
type:Enter gcp_account as shown in the example.
name:Enter your GCP account name as shown in the example.
api_token:Enter exactly as shown in the example.
project_id:Enter your GCP project ID as shown in the example.