Connect Google Cloud

Create a read-only service account in a Google Cloud project, switch on a few APIs, download its key and upload it to ProofLayer.

20 minYou need: Someone who can create service accounts and grant roles on the Google Cloud project

Before you start

In Google Cloud your resources live in a project. A service account is a name for software (rather than a person) that can be given permissions. You create one, let it read your project, and give ProofLayer its key, which is a small file that proves its identity.

  • ProofLayer only reads. The service account gets two read-only roles: roles/viewer and roles/iam.securityReviewer.
  • You need the Project ID (shown on the Google Cloud console home page; it is not the same as the project name or number).
  • The key file is sensitive. Treat it like a password: upload it to ProofLayer and then delete your copy.
  • You need permission to create service accounts and grant roles. If that is not you, send this page to your IT or cloud colleague.

Step 1: Add the connection in ProofLayer

  1. Open Connections and click New connection

    Choose Google Cloud, name it (for example “Production GCP”) and enter the Project ID (for example acme-prod).

  2. Open the new connection

    Find the Google Cloud access card. You will use it in step 4.

Step 2: Create the service account

  1. In the Google Cloud console, pick the right project

    Use the project picker at the top and select the project whose ID you entered.

  2. Open IAM & Admin → Service accounts → Create service account

    Name it prooflayer-collector. Click Create and continue.

  3. Grant the two read-only roles

    In the Role box choose Viewer, click Add another role, and choose Security Reviewer. Click Continue, then Done. Do not grant any other role.

    These are shown in ProofLayer as roles/viewer and roles/iam.securityReviewer.

Step 3: Switch on the APIs ProofLayer reads

An API is the door ProofLayer uses to read one service. Each must be enabled once per project.

  1. Open APIs & Services → Enabled APIs & services → Enable APIs and services

  2. Enable each of these

    Cloud Resource Manager API, Identity and Access Management (IAM) API, Cloud Storage (the Storage API), Compute Engine API and Cloud Logging API. Search each name and click Enable.

Step 4: Create the key and upload it

  1. Open the service account and go to Keys

    In IAM & Admin → Service accounts, click prooflayer-collector, then the Keys tab.

  2. Click Add key → Create new key → JSON → Create

    A .json file downloads to your computer.

    Some organisations block key creation with a policy. If you see an error, ask your administrator, or ask ProofLayer’s administrator about the in-account agent option below.

  3. Paste the file contents into ProofLayer

    On the Google Cloud access card, open the file in a text editor, copy everything, and paste it into Service account key (JSON).

  4. Click Save access

    ProofLayer stores the key encrypted and shows only the service account’s email afterwards. Now delete the downloaded file from your computer.

Check that it works

  1. Click Test access

    ProofLayer uses the key to read the project.

    Success shows Access verified. A problem shows Access test failed with Google’s reason.

  2. Run a scan

    Start one from Runs. Results appear under Findings.

Example with made-up data
Production AWS
123456789012
Active
External ID
pl-7f3a9c2e1b4d… (copy)
Role ARN
arn:aws:iam::123456789012:role/ProofLayerReadOnly
Last access test
Passed 12 Nov 2026, 08:55 UTC
A healthy connection after the access test (shown for AWS; Google Cloud looks the same).

What ProofLayer reads

  • Who has access: no access granted to “everyone on the internet”, a limited number of project owners, and service-account keys rotated within 90 days.
  • Storage: buckets use uniform access, block public access, and stay in Indian regions.
  • Logging: data-access audit logs are on for all services, and logs are kept at least 180 days.
  • Servers: OS Login is enforced for SSH.

If something goes wrong

What you seeLikely causeWhat to do
Access test fails with “API has not been used” or “is disabled”One of the APIs in step 3 is not enabled for this projectEnable the API named in the message, wait a minute and test again.
Permission deniedThe service account is missing a role, or the wrong project ID was enteredCheck the two roles on the project in IAM, and compare the Project ID on the connection with the console.
The key cannot be createdYour organisation blocks service-account keysAsk an administrator to allow it for this project, or use the in-account agent option.
The JSON is rejectedPart of the file was missed when copyingCopy the whole file, from the first { to the last }, and paste again.