Connect a GCP Organization
Connecting a GCP Organization to Turbot Guardrails discovers your entire folder and project hierarchy automatically and gives you granular control over which projects to govern, from lightweight project-level visibility through to full resource discovery and remediation.
[!IMPORTANT] Before you start, enable the required GCP APIs in the service account's project and in every project you plan to import. The wizard does not check or enable them. A project without the Cloud Resource Manager API imports successfully and then its
GCP > Project > CMDBcontrol goes to Error, even in Project Only mode.
Step 1: Set Up Authentication
Choose one of the following authentication methods. Workload Identity Federation is recommended for all deployments.
| Method | Guide | Description |
|---|---|---|
| Workload Identity Federation | Set Up Workload Identity Federation | (Recommended) Keyless authentication using AWS-to-GCP federation. No long-lived credentials to manage. |
| Service Account Impersonation | Set Up Service Account Authentication | Grant Guardrails' master service account the Service Account Token Creator role on a service account in your GCP organization. Guardrails uses short-lived impersonation tokens. Your service account's key is never shared. |
Step 2: Connect the Organization
Run the Guardrails import wizard matching your authentication method from Step 1:
Step 3: Manage Projects
- Connect a Member Project: Upgrade individual projects from Project Only to All Resources mode for full governance.
Authentication at a Glance
| Aspect | Workload Identity Federation | Service Account Impersonation |
|---|---|---|
| Secret stored in Guardrails | None | Organization SA key is never downloaded. Master SA key is held by Guardrails (SaaS) or in your AWS SSM Parameter Store (self-hosted). |
| Secret rotation | None required | Manual rotation per organizational policy (master SA key, self-hosted only) |
| GCP-side setup | One script: creates the Workload Identity Pool and Provider and grants org-level IAM | Manual: create the organization SA, grant org-level IAM roles, grant Token Creator on the SA, and set the External ID project label |
| AWS-side setup | Once per AWS account. SaaS: handled by Turbot. Self-hosted: customer runs an enable-outbound-federation script. | None |
| Workspace prerequisite | WIF must be enabled in the TEF stack | Available in all deployments |
SaaS vs Self-Hosted
For Workload Identity Federation, the setup is the same for both SaaS and self-hosted. The Guardrails import wizard provides the AWS Account ID and WIF transit role name automatically.
For Service Account Impersonation, the setup differs:
- SaaS: Guardrails provides a master service account automatically. You only need to create one service account (the organization SA) and grant it access.
- Self-hosted: You create two service accounts: a master SA (Guardrails' identity, stored in AWS SSM) and an organization SA. You also need to update your TED stack with the SSM parameter.