Skip to main content

Connecting Google Cloud Platform (GCP) to Secfix

Jakub Wanat avatar
Written by Jakub Wanat
Updated over 7 months ago

Integrating your cloud infrastructure with Secfix is a pivotal step in your certification journey. To help you navigate this process smoothly, weโ€™ve laid out this manual that guides you through connecting your Google Cloud Platform (GCP) account to Secfix. Letโ€™s get started! ๐Ÿš€

๐Ÿ’ก You will need the following roles assigned in your GCP organization:

  • Organization Role Administrator

  • Project Creator

  • Service Usage Admin

  • Service Account Key Admin

You can check your role permissions by following the steps in this guide.

๐Ÿ’ก If youโ€™ve previously connected GCP, ensure that each Project ID is unique and not already linked to existing GCP connections. Learn more about removing GCP projects from earlier connections.

To begin, head to the Connections page in your Secfix dashboard. In the Cloud Infrastructure Providers section click Connect next to Google Cloud Platform.


Step 1: Specify projects

๐Ÿ’ก Include all project IDs that contain your production environment resources. Other resources are typically not in the audit scope. All the projects must be nested under the same organization.

Once logged into GCP:

  1. Find project IDs that you want to connect.

  2. Paste them into Secfix.

๐Ÿ’ก Billing must be enabled at least in the first project you're connecting.


Step 2: Create Service Account, Project, and Role

๐Ÿ’ก Ensure you can access GCP Cloud Shell to run setup scripts.

  1. Open the Google Cloud Console and activate Cloud Shell.

  2. Once the Cloud Shell is active, click Open Editor.

  3. To download Secfix GCP connection script, run the following command in the Cloud Shell terminal:

    wget https://staging.secfix.com/assets/provision/secfix-gcp-connection.sh
  4. To generate credentials, run the following command (replace <project_id> with the Project IDs you entered earlier):

    bash ./secfix-gcp-connection.sh <project_id_1> <project_id_2>
  5. Follow the on-screen prompts to authorize access.

  6. Once the script completes, return to Open Editor, and download the service account JSON Key: (secfix-scanner.json).


Step 3: Upload JSON Key

  1. Upload the secfix-scanner.json file:

    • Drag and drop the file into the upload area, or

    • Click Upload and select the file from your local drive.

  2. Once the file is uploaded successfully, click Complete to finalize the integration.

๐ŸŽ‰ Congratulations! Your GCP account is now connected to Secfix.


Troubleshooting and Support

If you need additional integration specifications or have problems with connecting, check out our GCP Connection FAQ for detailed troubleshooting tips and answers to common questions.

Still stuck? Write to us on the chat inside the app โœ๏ธ

Did this answer your question?