Google Cloud checklist¶
Copy this list into a pull request, design review or project kickoff and tick what applies. Rules are grouped by level and sorted by score (criteria). Each links to the file that explains it and cites its sources. Automatable names tools that can check the rule in CI (see the file's "How to enforce" section).
Also apply the general checklist.
This file is generated by python3 scripts/rank.py fix from the guidelines. Don't edit it by hand.
Strongly recommended (9–10)¶
-
GCP-3(9) Don't grant basic roles, such as Owner, Editor and Viewer, in production. Grant predefined or custom roles to groups, at the smallest scope that works. (specific/gcp) Automatable: Checkov Terraform policies, IAM role recommendations, Security Command Center, Compliance Manager cloud controls.
Recommended (6–8)¶
-
GCP-1(8) Use one organization resource, with folders for environments or other policy boundaries, and a separate project for each workload in each environment. (specific/gcp) -
GCP-4(8) Don't use service account keys: attach service accounts to workloads that run on Google Cloud, use Workload Identity Federation for CI pipelines and workloads elsewhere, and block key creation with an organization policy. (specific/gcp) Automatable: Checkov Terraform policies, Organization Policy constraints, Security Command Center, Compliance Manager cloud controls. -
GCP-5(8) Give each application its own single-purpose service account instead of a default service account, and grant users the Service Account User and Token Creator roles on individual service accounts, not on projects or folders. (specific/gcp) Automatable: Checkov Terraform policies, Security Command Center, Compliance Manager cloud controls. -
GCP-6(8) Enforce the Google Cloud security baseline constraints in every organization, including organizations created before 3 May 2024, which may not have them. (specific/gcp) Automatable: Organization Policy constraints, Security Command Center, Compliance Manager cloud controls. -
GCP-10(8) Deploy production workloads across multiple zones, and across regions where your availability or recovery targets require it. (specific/gcp) -
GCP-11(8) Manage the organization's foundation and all workloads as code with Terraform, applied from a pipeline that validates changes against your policies, as the enterprise foundations blueprint does. (specific/gcp) -
GCP-8(7) Keep secrets in Secret Manager, grant access per secret when one project holds secrets for many services, and reference secret versions by number instead oflatest. (specific/gcp) -
GCP-12(7) Route audit logs from the whole organization to a central project with an aggregated sink, and turn on Data Access audit logs for services that handle sensitive data. (specific/gcp) Automatable: Checkov Terraform policies, Security Command Center, Compliance Manager cloud controls. -
GCP-13(7) Create Cloud Billing budgets with alert thresholds for each billing account or project, and send the alerts to the owners or to Pub/Sub for automated responses. (specific/gcp) -
GCP-2(6) Label projects and resources consistently, for example with application, environment, cost center and owner, and set the labels from infrastructure as code. (specific/gcp) -
GCP-7(6) Add further Organization Policy constraints at the organization or folder level, starting from the enterprise foundations blueprint's set, and test each new policy in dry-run mode before you enforce it. (specific/gcp)
Conditional (1–5)¶
-
GCP-9(5) Put projects that hold sensitive data, for example in Cloud Storage or BigQuery, inside VPC Service Controls perimeters in addition to IAM, and run each new perimeter in dry-run mode first. (specific/gcp) Automatable: Security Command Center, Compliance Manager cloud controls.