Documentation Index

Fetch the complete documentation index at: https://help.scrut.io/llms.txt

Use this file to discover all available pages before exploring further.

Rebind GCP - Service Account

Prev Next

A recent change to Google's policies has impacted permissions for service account bindings, potentially disrupting the cloud connections. To restore these connections, we recommend following the steps outlined below.

  1. Activate your GCP cloudshell, and run the following command:
gcloud config set project [PROJECT_ID]
  • To retrieve the Project ID, click on the relevant Integration ID as shown below

Screenshot 2025-02-07 at 11.18.19 PM.png

  • Copy the Project ID, as shown below
    Screenshot 2025-02-07 at 11.20.19 PM.png
  1. Enable the IAM and Service Account Credentials APIs by running the following command on your cloudshell:
gcloud services enable iam.googleapis.com iamcredentials.googleapis.com
  1. Enable Scrut to impersonate your service account , run the following command in the cloudshell by replacing with the service account email used for integration
 gcloud iam service-accounts add-iam-policy-binding <your-service-account-email> \
    --member serviceAccount:scrut-cp-sa@scrut-cloudscanner.iam.gserviceaccount.com \
    --role roles/iam.serviceAccountTokenCreator
  • To retrieve the Service Account Email, click on the relevant Integration ID as shown below

Screenshot 2025-02-07 at 11.18.19 PM.png

  • Copy the Service Account Email, as shown below
    Screenshot 2025-02-07 at 11.26.19 PM.png

After completing these steps, the connection status will update to "Active" during the next scan.