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 > CMDB control 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.

MethodGuideDescription
Workload Identity FederationSet Up Workload Identity Federation(Recommended) Keyless authentication using AWS-to-GCP federation. No long-lived credentials to manage.
Service Account ImpersonationSet Up Service Account AuthenticationGrant 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

Authentication at a Glance

AspectWorkload Identity FederationService Account Impersonation
Secret stored in GuardrailsNoneOrganization SA key is never downloaded. Master SA key is held by Guardrails (SaaS) or in your AWS SSM Parameter Store (self-hosted).
Secret rotationNone requiredManual rotation per organizational policy (master SA key, self-hosted only)
GCP-side setupOne script: creates the Workload Identity Pool and Provider and grants org-level IAMManual: create the organization SA, grant org-level IAM roles, grant Token Creator on the SA, and set the External ID project label
AWS-side setupOnce per AWS account. SaaS: handled by Turbot. Self-hosted: customer runs an enable-outbound-federation script.None
Workspace prerequisiteWIF must be enabled in the TEF stackAvailable 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: