For the complete documentation index, see llms.txt. A markdown version of this page is at /reference/providers/gcp-permissions/index.md.

Google Cloud permissions and resources

What onboarding creates in your Google Cloud project, the roles and permissions it grants Ringleader, and what your project checks.

Onboarding Google Cloud creates a small set of resources in your project and grants Ringleader a fixed set of roles on them. This page lists each of them. Onboard Google Cloud shows how to create them.

Resources onboarding creates

Onboarding creates four things in your project, and you can see all of them in the Google Cloud console afterwards:

  • A service account called ringleader-workstations. This is the account Ringleader uses when it creates or deletes a VM.
  • Three roles and one custom role granted to that account. Together they let it create, start, stop and delete VMs, connect them to your network, and create service accounts for the VMs it runs, and nothing else.
  • A workload identity pool with one provider. This is how Google confirms that a request really comes from Ringleader and is meant for your organization, without Ringleader ever holding a password or a key.
  • A network for the workstations: a VPC, a subnet, Cloud NAT and firewall rules. Terraform creates this unless you set create_network = false. On the gcloud path it is a separate script you run only if you want it.

Rights and limits in your project

The service account holds three predefined roles and one custom role: no Owner, no Editor and nothing in billing. Cloud accounts says what Ringleader gets and what it never gets.

Three features are on by default and add to this: Cloud runtime identities, Egress control permissions and Storage buckets.

Roles

The service account holds these roles:

  • roles/compute.instanceAdmin.v1: create, start, stop and delete VMs and their disks.
  • roles/compute.networkUser: attach a VM to your subnet.
  • roles/iam.serviceAccountUser: attach a service account to a VM. Every VM on Google Cloud runs as a service account, and attaching one is a separate permission that the two roles above do not include. Without it, creating the first workstation fails with a 403 error.
  • A custom role, Ringleader Managed Identities: create and delete service accounts, and nothing else. A VM on Google Cloud cannot start without a service account, so Ringleader creates one account with no roles, rl-box-noroles, for the VMs that name none. This role cannot grant any role, so that account can do nothing in your project.

Runtime identity roles lists the two further roles that per-user runtime identities need.

Runtime identity roles

Creating and binding the per-user service accounts that Cloud runtime identities describes takes two more roles than the ones above:

CapabilityRole it needs
Create and delete the per-user service accountroles/iam.serviceAccountAdmin
Bind roles to it on the projectroles/resourcemanager.projectIamAdmin
Attach it to a VMroles/iam.serviceAccountUser, already granted above

Checks your project makes

When Ringleader asks to act in your project, Google checks three things about the token it presents. All three are built from the two values Ringleader gave you, and the module and the script configure them, so you never type them yourself.

What Google checksValueWhere it is configured
Who signed the token<issuer-url>/org/<org-id>the provider’s issuer_uri
Which organization it speaks fororg:<org-id>the provider’s attribute_condition
Which cloud it may be used against<issuer-url>/org/<org-id>/gcpthe provider’s allowed_audiences

Keyless cloud access says what each value means. Who may use the ringleader-workstations service account is a fourth check. It should be your organization alone, written principal://…/subject/org:<org-id>, and never principalSet://…/workloadIdentityPools/<pool>/*.

Egress control permissions

Egress control grants a custom project role with fourteen permissions and nothing else:

PermissionsFor
compute.firewalls.create / delete / get / list / updatecreate and maintain the firewall rules that carry each policy, and the rule that admits SSH to your workstations
compute.routes.create / delete / get / listthe static route that sends traffic to the edge instance, for a policy that names hostnames rather than address ranges
compute.networks.updatePolicycreating that route additionally requires it
compute.addresses.create / delete / get / listreserving a fixed address for the edge instance. Ringleader does not use them today: the edge instance’s public address is not reserved, so it changes when Ringleader replaces the VM

Each distinct policy becomes one set of firewall rules, matched by network tag, so a hundred workstations sharing a policy cost one set of rules rather than a hundred. Enforcement points says which of your own firewall rules can defeat a policy.

Setup switches

Both setup tools turn a default off with one setting. Each default is on until you set it.

DefaultTerraformgcloud
Egress controlenable_egress_control = falseEGRESS_CONTROL=0
Runtime identitiesenable_workstation_identities = falseWORKSTATION_IDENTITIES=0
Artifact storageenable_artifact_storage = falseARTIFACT_STORAGE=0
The networkcreate_network = falsea separate script, network-landing-pad.sh, that you run only if you want it

With egress control off, workstations are reachable only through a rule of your own. With artifact storage off, no Storage can use a bucket in this project, and nothing else changes. Turn off runtime identities says what the third switch does. The Terraform variable artifact_storage_bucket names one bucket you created; leave it empty to let Ringleader create its own.

Values you hand back

ValueWhere it lands
target service account emailCloudAccount spec.gcp.targetServiceAccount
workload identity provider (the resource name)spec.gcp.workloadIdentityProvider
project idCloudIdentity providerConfig.gcp.project
subnetwork self-link (only if you created a network)providerConfig.gcp.subnetwork

terraform output handoff prints all of these together, and the gcloud path prints them when ./onboard.sh finishes.

Next steps