Skip to content
AI Agent Access Control

A self-hosted agent on Cloud Run or GKE runs as a service account, and the default one might hold the Editor role

Cloud Run runs the service as a service account (the Compute Engine default service account if you do not choose one). Google documents that, depending on organization policy, the Compute Engine default service account might automatically be granted the Editor role on the project, and that the constraint iam.automaticIamGrantsForDefaultServiceAccounts is enforced by default for organizations created after May 3, 2024.

The full map ยท Google Cloud overview

Cloud Run runs the service as a service account, the Compute Engine default service account if you do not choose one. Google documents that, depending on organization policy, that default account might automatically be granted the Editor role on the project. The iam.automaticIamGrantsForDefaultServiceAccounts constraint is enforced by default for organizations created after May 3, 2024. On GKE, Workload Identity Federation assigns distinct IAM identities to each application.

In GKE, all Pods in a cluster can communicate with each other until network policy is enforced. Cloud Run reaches your VPC through Direct VPC egress or a connector. IAM deny policies and Principal Access Boundary policies set limits whatever the allow policies say. Admin Activity audit logs cannot be disabled; Data Access audit logs must be explicitly enabled.

Status
Self-hosted pattern, not a managed agent service.
The identity it runs as
Cloud Run runs the service as a service account (the Compute Engine default service account if you do not choose one). On GKE, Workload Identity Federation for GKE assigns distinct IAM identities to each application in the cluster. (source)
What it gets by default
Google documents that, depending on organization policy, the Compute Engine default service account might automatically be granted the Editor role on the project, and that the constraint iam.automaticIamGrantsForDefaultServiceAccounts is enforced by default for organizations created after May 3, 2024. (source)
Tools and actions
The agent code calls Google Cloud APIs as its service account or Kubernetes workload principal; Google documents using IAM policies to grant Kubernetes workloads access to specific Google Cloud APIs. (source)
The agent's permissions or the user's
The workload uses its own service account or workload identity. Propagation of an end user's permissions to the workload: none found on 2026-11-10 in the Cloud Run and GKE pages read. (source)
Network reachability
Cloud Run can send egress traffic to a VPC network with Direct VPC egress (recommended) or a VPC connector, giving access to resources with internal IP addresses. In GKE, by default all Pods in a cluster can communicate with each other until network policy is enforced. (source)
What is logged
Google documents Admin Activity audit logs that cannot be disabled, and Data Access audit logs that must be explicitly enabled to receive them. (source)

Boundaries that apply

  • IAM roles on the service account. The roles granted to the service account decide what the agent can reach. (source)
  • Organization policy iam.automaticIamGrantsForDefaultServiceAccounts. Google recommends enforcing this constraint to stop the automatic Editor grant on default service accounts. (source)
  • IAM deny policies. Deny policies set guardrails on access to Google Cloud resources regardless of allow policies. (source)
  • Principal Access Boundary policies. PAB policies define the resources a principal is eligible to access. (source)

Checks to run for Google Cloud

Where Act is behind

Act draws the boundary at the access layer (cloud IAM and network controls, and the gateways or MCP servers in front of agents); it does not inspect prompts or model outputs, which needs a different tool. Your team applies the boundaries it proposes, and its customer evidence for AI boundaries is less mature than for its core access control.

Sources

  1. cloud.google.com/run/docs/securing/service-identity, read 10 Nov 2026
  2. cloud.google.com/kubernetes-engine/docs/concepts/workload-identity, read 10 Nov 2026
  3. cloud.google.com/run/docs/configuring/connecting-vpc, read 10 Nov 2026
  4. cloud.google.com/kubernetes-engine/docs/how-to/network-policy, read 10 Nov 2026
  5. cloud.google.com/kubernetes-engine/docs/how-to/audit-logging, read 10 Nov 2026
  6. cloud.google.com/iam/docs/best-practices-service-accounts, read 10 Nov 2026
  7. cloud.google.com/iam/docs/deny-overview, read 10 Nov 2026
  8. cloud.google.com/iam/docs/principal-access-boundary-policies, read 10 Nov 2026

Last reviewed 16 Nov 2026.