09.11 · GCP

GCP Network & Workload Identity

VPC Service Controls, Workload Identity Federation, and Security Command Center — Google's distinctive answers to perimeter-around-data and key-free workload auth.

GCP gives you the standard cloud network primitives — VPCs, subnets, firewall rules. Where it diverges from AWS and Azure is in two places: VPC Service Controls (a service-level data perimeter that has no direct equivalent in the other clouds), and Workload Identity Federation (which lets non-Google workloads authenticate as Google service accounts without ever holding a key). These are the GCP-specific patterns worth knowing.

VPC firewall rules — global by default

GCP firewall rules apply at the VPC level, not per-subnet. They are stateful, allow-or-deny, and priority-ordered (lower number wins). Rules target by network tag, by service account, or by IP range. Defaults: deny all ingress, allow all egress.

VPC Service Controls — perimeter around data

VPC Service Controls (VPC-SC) defines a service perimeter that wraps a set of GCP projects and API services. Within the perimeter, the services can talk freely. From outside the perimeter, even a fully authorized IAM identity is denied. This protects against IAM-credential-theft data exfiltration in a way IAM alone cannot.

The scenario it solves

Attacker steals or coerces credentials for a high-privilege service account. Without VPC-SC, they can run gsutil cp -r gs://prod-data . from any laptop and exfiltrate the bucket. The IAM grant said "this SA can read the bucket"; the IAM grant doesn't say "from where."

With VPC-SC, the same valid credentials fail the moment they're presented from outside the perimeter. The attacker has the password but the door has another lock.

How it works

You define a perimeter (a list of projects and a list of restricted services). All API calls to those services are checked: if the caller is inside the perimeter (a workload running in a project in the perimeter, or via an allowed access level), the call proceeds. If not, denied.

Access levels (Access Context Manager) let you carve exceptions: "admin laptops in the corporate IP range with a verified device may access the perimeter even though they're not inside it."

VPC-SC is the most GCP-specific control on this page. AWS achieves overlapping outcomes with VPC endpoints + IAM condition keys; Azure with Private Endpoints + Storage firewalls. GCP packages it as a discrete product, which makes the operational story clearer but adds a moving piece.

Workload Identity Federation — no keys, ever

The classic way for non-Google workloads (a Lambda function in AWS, a GitHub Actions job, an on-prem Kubernetes pod) to authenticate as a GCP service account was to download a JSON key file and store it as a secret. That file is a long-lived credential. If it leaks, an attacker can use it indefinitely.

Workload Identity Federation (WIF) replaces this entirely. Instead of a downloaded key, the external workload presents an identity assertion (an OIDC token from AWS STS, a GitHub Actions OIDC token, an Azure AD token, etc.). GCP verifies the assertion against a configured workload identity pool, and issues a short-lived Google access token in exchange.

The migration that pays off. Every existing service account key in your environment is an audit finding waiting to happen. WIF lets you remove them. Major cloud-deployed CI/CD systems (GitHub Actions, GitLab CI, CircleCI, AWS Lambda → GCP) all support WIF as the recommended modern path.

Security Command Center — the view

Security Command Center (SCC) is GCP's centralized security platform. Two main capabilities:

SCC Premium and Enterprise add attack path analysis ("this misconfig + that IAM binding = reachable as 'public read' through this chain"), CIEM (cloud infrastructure entitlement management) for identity-permission analysis, and SOAR integration. The free tier is enough to catch the obvious misconfigurations; premium tiers are where the proactive analysis lives.

The point

GCP's network and identity story is largely the same shape as AWS and Azure, with two distinctive features: VPC Service Controls as a service-level data perimeter, and Workload Identity Federation as a clean, key-free auth path for external workloads. Knowing those two gives you the GCP-specific muscle that translates to "we don't need downloaded keys here" and "credentials alone aren't enough to exfiltrate data."

Combine VPC-SC, WIF, hierarchical firewall policies, organization policies, and Security Command Center, and a GCP environment ends up looking quite secure by composition — even though no single control is a silver bullet.

References

Formatted in APA 7. Alphabetized by first author's last name.

  1. Google Cloud. (n.d.-a). Security Command Center overview. Google Cloud documentation. https://cloud.google.com/security-command-center/docs/security-command-center-overview
  2. Google Cloud. (n.d.-b). VPC firewall rules overview. Google Cloud documentation. https://cloud.google.com/firewall/docs/firewalls
  3. Google Cloud. (n.d.-c). VPC Service Controls overview. Google Cloud documentation. https://cloud.google.com/vpc-service-controls/docs/overview
  4. Google Cloud. (n.d.-d). Workload Identity Federation. Google Cloud documentation. https://cloud.google.com/iam/docs/workload-identity-federation