Skip to content

The micro-VM for AI agents — light enough to embed on your laptop, elastic enough to power an agentic cloud.

3.4 KB
Raw Blame

TL;DR

GCP separates runtime service accounts from bootstrap and CI identities, but grants the deployer broad project administration.

GCP security

Cloud guide · Infrastructure index

Identity boundaries

Identity Role
Bootstrap operator Enables APIs and manages project IAM, federation and prerequisite stores
CI deployer GitHub Workload Identity Federation → deployer service account
Image publisher Separate Artifact Registry publisher service account
Runtime Service accounts per workload; GKE Workload Identity for proxy

Bootstrap grants broad project administration, including project IAM administration. It does not establish a permissions boundary that prevents deployer privilege escalation. Each stage requires its own project; project isolation is the environment boundary. Review organization policy when deciding what a stage may administer. Inspect live GitHub Environment reviewers and federation trust separately from workflow declarations.

The encrypted stage map lives in GCS, with its passphrase in Secret Manager; Pulumi has its own state. Follow the shared secret-handling and resource-protection rules.

Runtime and network boundaries

  • Public traffic enters through the load balancers; GCP runners and GKE nodes have private addresses.

  • Direct Cloud Run egress uses CIDR-based VM ingress rules, with the shared-subnet limitation described in networking.

  • The collector's and registry proxy's internal ingress restrictions remain meaningful even where their invoker IAM bindings permit allUsers. The registry proxy checks each runner key against the control plane itself.

  • Database/cache use private connectivity. API and collector have different ClickHouse reader/writer credentials.

  • Volume access uses scoped temporary credentials and bucket-prefix permissions; stage naming alone does not isolate every volume bucket.

  • Registry passwords sit in Secret Manager under registry-credential-*. The API holds two custom roles: create a secret, and add or destroy versions under that prefix. It cannot read a password back. The required project isolation separates these stage-independent prefixes.

  • Growing runner data disks online needs two more custom roles, both held by the API alone: grow and read this stage's data disks (<app>-<stage>-runner-data*, bounded by a CEL prefix in the runner's own zone), and read the zone operations that confirm a grow. No delete, no create, no attach — the worst case stays "a bigger disk costs more", and a runner holds none of it.

  • Checkpoint archives use the dedicated <app>-<stage>-checkpoints bucket with uniform access and public access prevention. API and runner roles/storage.objectUser grants name that bucket alone; they do not grant access to volume or infrastructure-state buckets.

  • For Filestore instance lookup or roles/file.viewer, see API runtime IAM capabilities. Deployment derives the API read grant from configured instances; runner NFS network access is separate.

Runner updates converge through OS Config; host protection does not establish rollout health.

Sources: bootstrap roles, runtime identities and firewall rules, registry credential roles, disk resize grants.