GCP Cloud Tests
About the GCP integration
Section titled “About the GCP integration”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).
How access works
Section titled “How access works”- Auth model: OAuth 2.0 with Google, using the
cloud-platformscope plusopenid,email,profilefor 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.findingsVieweron the organization (needed to read SCC findings). Project-levelroles/vieweris also recommended. - Scope: Varman scans the projects you select inside the organization the signed-in account belongs to.
Prerequisites
Section titled “Prerequisites”Before connecting GCP, make sure you have:
- A GCP organization with Security Command Center enabled, confirm at GCP Console → Security → Risk Overview
- A Google account with:
roles/securitycenter.findingsVieweron the organizationroles/viewer(or equivalent) on the projects you want to scan
- 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)
- Admin access to your Varman workspace
Connect GCP
Section titled “Connect GCP”-
Start the connection
In Varman, go to Cloud Tests → GCP → Connect. Click Sign in with Google.
-
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.
-
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.
-
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.findingsViewergranted 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
gcloudcommand you can run to fix it manually. -
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.
What gets scanned
Section titled “What gets scanned”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.
Compliance frameworks
Section titled “Compliance frameworks”Findings are mapped to the controls used by:
- CIS GCP Foundations Benchmark
- SOC 2
- ISO 27001
- PCI DSS
- HIPAA (where applicable)
Security model
Section titled “Security model”- 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
Troubleshooting
Section titled “Troubleshooting”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.
Support
Section titled “Support”Email support@varman.io