Governing GCP
Turbot Guardrails provides deep integration with Google Cloud Platform (GCP) through dozens of mods covering hundreds of resource types. This section covers everything you need to set up and manage GCP governance in your workspace, from connecting your first organization through to configuring real-time events, permissions, and services.
Getting Connected
The recommended path is to connect your GCP Organization, which discovers all folders and projects automatically and gives you granular control over which projects to govern and at what level.
| Guide | Description |
|---|---|
| Required GCP APIs | Start here. Enable the Cloud Resource Manager, Service Usage, and Cloud Logging APIs in the service account's project and in every project you plan to import, so every CMDB and Discovery control lands in OK on the first run. |
| Set Up Workload Identity Federation | (Recommended) Keyless authentication using AWS-to-GCP federation. No long-lived credentials to create, store, or rotate. |
| Set Up Service Account Authentication | Alternative to WIF. Configure a master and an organization service account so Guardrails can use short-lived impersonation tokens. The organization SA's key is never downloaded. |
| Connect a GCP Organization using WIF | Run the Create Connection wizard for a GCP Organization using Workload Identity Federation. |
| Connect a GCP Organization | Run the Create Connection wizard for a GCP Organization using Service Account Impersonation. |
| Connect a GCP Project | Import a single standalone GCP project outside of an organization. |
[!TIP] When connecting via an organization, you choose a discovery level for each project during the wizard:
- Project Only: project metadata and organization-level policy visibility. No resource discovery.
- All Resources: full resource discovery and runtime governance across all project resources.
You can start with Project Only and upgrade individual projects to All Resources later.
Real-Time Events
After connecting projects, configure how Guardrails receives change notifications from GCP. Event pollers are enabled by default for new organization imports.
| Guide | Description |
|---|---|
| Real-Time Events Overview | Understand the event poller and event handler options and choose the right one for your environment. |
| Event Pollers | Default for new projects. Guardrails periodically queries Cloud Audit Logs for changes. Lowest setup overhead; limited scalability. |
| Event Handlers | Recommended for production. Push-based event delivery using Pub/Sub topics and Logging sinks. |
Configuration
| Guide | Description |
|---|---|
| Enabling Services | Enable GCP services for governance and configure required API enablement per project. |
| Managing Permissions | Configure how Guardrails manages GCP IAM: Role Mode, standard levels, modifiers, and custom levels. |
Lifecycle
| Guide | Description |
|---|---|
| Decommission a GCP Project | Safely disconnect a GCP project by cleaning up Guardrails-managed event infrastructure and removing the project from your workspace. |
Further Reading
- Explore GCP Mods on the Guardrails Hub
- Browse GCP Policy Packs
- Learn more about permissions in Guardrails