Skip to content

GCP Cloud Tests

Varman connects to Google Cloud Platform over OAuth 2.0 and reads findings from Security Command Center (SCC). No service account JSON key is uploaded, you sign in with a Google account that has access to the organization and projects you want to monitor.

After you connect, Varman auto-detects your organization, lets you pick projects, then runs a setup step that enables the required APIs and verifies IAM access. Findings are mapped to common frameworks (SOC 2, ISO 27001, CIS GCP Foundations, PCI DSS, HIPAA).

  • Auth model: OAuth 2.0 with Google, using the cloud-platform scope plus openid, email, profile for account identification. Refresh tokens are stored so scans can run without re-prompting.
  • Real permissions: The OAuth scope only enables API calls, actual access is gated by the IAM roles assigned to the signed-in account. Varman only makes read calls.
  • Required role: roles/securitycenter.findingsViewer on the organization (needed to read SCC findings). Project-level roles/viewer is also recommended.
  • Scope: Varman scans the projects you select inside the organization the signed-in account belongs to.

Before connecting GCP, make sure you have:

  1. A GCP organization with Security Command Center enabled, confirm at GCP Console → Security → Risk Overview
  2. A Google account with:
    • roles/securitycenter.findingsViewer on the organization
    • roles/viewer (or equivalent) on the projects you want to scan
  3. Permission to enable APIs on at least one project in the organization (so Varman’s setup step can enable SCC, Cloud Resource Manager, and Service Usage APIs if they are not already on)
  4. Admin access to your Varman workspace
  1. Start the connection

    In Varman, go to Cloud Tests → GCP → Connect. Click Sign in with Google.

  2. Authorize with Google

    Sign in with a Google account that meets the prerequisites above and approve the consent screen. Varman stores the resulting refresh token (never the password) so it can run scheduled scans.

  3. Select projects

    Varman auto-detects your organization and lists the projects that account can access. Pick the ones you want scanned, findings are scoped to those projects.

  4. Let auto-setup run

    Varman’s setup guide runs automatically and shows a checklist:

    • Connected via OAuth
    • Organization detected
    • Required APIs enabled (Security Command Center, Cloud Resource Manager, Service Usage)
    • roles/securitycenter.findingsViewer granted at the organization level

    Any step that fails is shown with a one-click Resolve button or a link to the exact GCP console page plus the gcloud command you can run to fix it manually.

  5. Run your first scan

    When all required steps pass, the first scan starts automatically. You can re-run it any time from the connection’s page.

Varman consumes findings from Security Command Center across services including:

Area Services
Identity IAM (over-privileged accounts, service account keys)
Storage Cloud Storage (ACLs, public access, encryption)
Compute Compute Engine, GKE
Network VPC Network (firewall rules, flow logs), Cloud Armor
Data Cloud SQL, BigQuery, Pub/Sub
Cryptography Cloud KMS
Observability Cloud Logging, Cloud Monitoring
DNS Cloud DNS (DNSSEC)

The Services tab inside the connection lets you enable or disable specific check categories.

Findings are mapped to the controls used by:

  • CIS GCP Foundations Benchmark
  • SOC 2
  • ISO 27001
  • PCI DSS
  • HIPAA (where applicable)
  • Read-only in practice: Varman only issues read API calls against SCC and resource manager
  • IAM-bounded: access is limited to what the signed-in account’s IAM roles permit
  • Token storage: refresh tokens are stored in an encrypted vault; they are never returned to the UI
  • Revocable at any time: remove the IAM role, revoke the token at myaccount.google.com/permissions, or delete the connection in Varman
Security Command Center findings not appearing

Confirm SCC is enabled at the organization level (not just one project). Open GCP Console → Security → Risk Overview and check that the organization shows findings.

Setup step: ‘roles/securitycenter.findingsViewer’ cannot be granted

The signed-in account does not have permission to manage IAM at the organization level. Ask a GCP organization admin to grant roles/securitycenter.findingsViewer to the account (or service account) you connected with. Copy the email shown in the setup guide, that is exactly who needs the role.

Setup step: APIs could not be enabled

The signed-in account lacks the serviceusage.services.enable permission on the target project. Either sign in with an account that has roles/serviceusage.serviceUsageAdmin on the project, or enable the three APIs manually from the API Library:

  • Security Command Center API
  • Cloud Resource Manager API
  • Service Usage API
No projects listed after OAuth

Varman only lists projects the signed-in account has IAM access to. Sign in with a different Google account, or ask an admin to add your account as roles/viewer on the relevant projects.

Email support@varman.io