Google Cloud Platform
What it does in Varman
Section titled “What it does in Varman”Google Cloud Platform (GCP) feeds two parts of Varman:
- Checks. Nine read-only checks call the GCP APIs directly for every project in scope. Each project, bucket, firewall rule or Cloud SQL instance gets its own pass or finding.
- Cloud tests. A scan combines those same checks with Security Command Center (SCC) findings when SCC is available. If SCC is not active or not readable, the scan still shows the direct checks.
| Check | Passes when | Evidence task |
|---|---|---|
| IAM: no primitive owner/editor roles | No roles/owner or roles/editor binding on the project or on its inherited folders and organization |
Role-based Access Controls |
| Cloud Storage: no public access | Public access prevention is enforced, or the bucket has no allUsers/allAuthenticatedUsers binding and uses uniform bucket-level access |
Production Firewall & No-Public-Access Controls |
| VPC: no firewall rules open to the internet | No enabled ingress VPC firewall rule allows 0.0.0.0/0 to SSH (22), RDP (3389) or all ports |
Production Firewall & No-Public-Access Controls |
| Cloud SQL: SSL/TLS enforced | sslMode is ENCRYPTED_ONLY or TRUSTED_CLIENT_CERTIFICATE_REQUIRED (or the legacy requireSsl is on) |
TLS / HTTPS |
| Cloud SQL: automated backups enabled | Automated backups are on. Read replicas are skipped | Backup logs |
| Cloud Monitoring: alerting and log export | At least one enabled alert policy has a notification channel, and a log sink exports to BigQuery, Cloud Storage, Pub/Sub or a non-default log bucket | Monitoring & Alerting |
| Cloud Storage: encryption at rest | Always passes per bucket and records whether it uses Google-managed keys or CMEK | Encryption at Rest |
| Cloud SQL: encryption at rest | Always passes per instance and records Google-managed or CMEK | Encryption at Rest |
| Separation of environments | Varman can confirm a production project separate from at least one non-production project | Separation of Environments |
The environment check classifies each project by its environment or env label, then by its
project ID and name. If you use other names, set Environment aliases (see below).
The Services section on the integration page groups SCC findings by service: Cloud Storage, Compute Engine, VPC Network, IAM, Cloud SQL, GKE, Cloud KMS, Cloud Logging, Cloud Monitoring, Cloud DNS, BigQuery, Pub/Sub, Cloud Armor and Vertex AI. Vertex AI findings need SCC Premium or Enterprise.
What you need
Section titled “What you need”- A Google account with access to the GCP projects you want checked.
- For the checks: read access to those projects. Varman’s setup notes recommend read-only roles
such as Viewer (
roles/viewer). - For SCC findings: Security Command Center activated on your organization or project (the
Standard tier is free), and the Security Center Findings Viewer role
(
roles/securitycenter.findingsViewer) at the organization level. - To let Varman enable the SCC API and grant the Findings Viewer role for you during setup, connect with an account that can enable APIs on a project and edit organization IAM policy. Otherwise an organization admin does those two steps by hand.
The Cloud tests setup screen also notes that auto-fix and rollback need an account with Owner or Editor on the selected projects. Checks and findings only need read access.
Permissions requested
Section titled “Permissions requested”Varman requests these OAuth scopes:
https://www.googleapis.com/auth/cloud-platformopenid,email,profile
Google offers no read-only scope for the Security Command Center API, so the consent screen says
Varman can “See, edit, configure and delete your Google Cloud data”. What Varman can actually do is
limited by the IAM roles of the account you connect with. The checks only make read calls. The
email scope lets setup find which account to grant the Findings Viewer role to.
Varman asks for offline access, so Google issues a refresh token. Tokens close to expiry are refreshed daily at 05:00 UTC.
Connect
Section titled “Connect”-
In Varman, open Integrations and click the Google Cloud Platform card. It opens Cloud tests.
-
Start the GCP connection and click Continue with Google Cloud Platform.
-
Google shows its account chooser. Pick the account that has access to your projects, then approve the consent screen. Google returns you to Varman.
-
Varman looks up your GCP organization and fills GCP Organization ID. If it is not detected, find the ID in Google Cloud Console under IAM & Admin > Settings and enter it in the integration settings. See Getting your organization ID.
-
Open Integrations > Google Cloud Platform and choose projects in GCP Projects. If you select none, the checks evaluate every active project the account can list.
-
Back in Cloud tests, Varman runs setup with the selected project:
- Enable Security Command Center API (required for SCC findings)
- Enable Cloud Resource Manager API (optional)
- Enable Service Usage API (optional)
- Grant Security Center Findings Viewer to your account at the organization level (required for SCC findings)
A step that fails shows why, with an Open API or Open IAM link, or a command to copy for an organization admin. Click Resolve all to retry, or Try Scanning Anyway to scan with the direct checks only.
-
Click Run Scan.
If SCC is not active yet, activate it first: Security Command Center activation overview.
Settings
Section titled “Settings”Under Integrations > Google Cloud Platform > Settings:
- GCP Organization ID: auto-detected after connecting.
- GCP Projects: the projects to scan and monitor. Findings are scoped to them.
- Environment aliases: optional
alias=environmentpairs, for examplerelease=production, preview=staging. Supported environments are production, staging, development, test, sandbox and non-production.
Click Save configuration after a change.
What gets synced and how often
Section titled “What gets synced and how often”Varman stores check results and SCC findings. It does not copy your resources.
- The nine checks run on the daily schedule described in the overview (06:00 UTC, following each task’s frequency), or when you click Run now.
- A Cloud tests scan (checks plus SCC findings) runs when you click Run Scan in Cloud tests.
- Project discovery pages through up to 20 pages of 100 projects. If it hits that cap, the log says so. Select projects explicitly to avoid it.
Disconnect
Section titled “Disconnect”Open Cloud tests, click the settings (gear) button, and click Disconnect in Connection Settings. Varman deletes the stored tokens. It does not revoke them with Google, so also remove Varman from your Google account’s third-party connections and remove any IAM role you granted only for Varman. See Disconnecting for what Varman keeps.
Troubleshooting
Section titled “Troubleshooting”GCP_ORG_MISSING: No projects selected and Organization ID not detected.Select projects or enter the organization ID in the integration settings.SCC_NOT_ACTIVATED: Security Command Center is not activated on your GCP organization.Activate SCC in the console under Security Command Center. The Standard tier is free.Permission denied. Grant "Security Center Findings Viewer" role at the organization level.An organization admin grantsroles/securitycenter.findingsViewerto the connected account.OAuth scopes insufficient. Reconnect the GCP integration.Disconnect and connect again, and approve all requested access.Security Command Center Legacy has been disabled by Google.Activate the Standard or Premium tier under Security > Security Command Center > Settings.Could not verify GCP project scopeor anotherCould not verify ...finding. Varman could not read the resource. A 401 or 403 means the account lacks a permission (for exampleresourcemanager.projects.get). Other errors are usually temporary, so run the check again.- A service shows no results. When an API such as Cloud SQL or Cloud Storage is not enabled in a project, the check logs that it skipped the project instead of failing.
No GCP projects detectedon the environment check. Select projects, or check that the account can list them.