Connect Google Cloud

A Google Cloud connection gives KeelPilot access to one project. There are no keys: KeelPilot signs in with a federated identity (Workload Identity Federation) that impersonates a service account in your project. You run the commands KeelPilot generates; KeelPilot never applies them.

Beta. Google Cloud is in beta: you can use it with your real projects while we validate each module. If something fails, let us know.

Before you start

  • You must be the organization’s owner or an admin, with MFA set up.
  • A Google Cloud project counts toward the same connection limit as an AWS account (Free 1, Pro 10, Enterprise unlimited, trial 2). See Plans & limits.
  • In Google Cloud, permission to enable APIs, create a workload identity pool and a service account, and grant roles in the project. Cloud Shell is enough.
  • One connection is one project. With several projects, create one connection per project.

1. Create the connection

  1. 1Go to Settings → AWS connections (/settings/conexiones), click New connection and choose Google Cloud (“GKE · keyless”).
  2. 2Enter a name, the project ID and the project number (it is on the project dashboard, or gcloud projects describe <ID> --format='value(projectNumber)').
  3. 3Choose the access level and the modules (below), and click Generate commands.
  4. 4Run the commands in your project. They enable the APIs, create the keelpilot pool with a provider that only accepts this connection’s session, create the service account, grant the roles and let the federated identity use the service account.
  5. 5Click Verify connection. KeelPilot lists the GKE clusters and detects the level and the modules that are actually granted (with testIamPermissions), not the ones you chose.
To revoke access, delete the last binding (roles/iam.workloadIdentityUser on the service account). KeelPilot stores no secret for this connection.

2. Access levels

LevelRoles on the projectWhat it allows
Read only (default)roles/container.viewerLists and reads clusters and Kubernetes objects, without creating, changing or deleting anything.
Operationsroles/container.developerAlso creates, changes and deletes Kubernetes objects, and turns on the write side of the modules (alert policies, VM resize, Cloud Run deployments, secret and parameter values). It does not manage clusters.
Infrastructureroles/container.developer + roles/container.clusterAdminAlso scales GKE node pools and runs night mode. It does not create or delete clusters or pools, or touch IAM.

KeelPilot never asks for roles/owner, roles/editor or roles/container.admin.

3. Permission modules

Each module adds the APIs and roles for one area. All are checked by default except the two “create and delete” boxes, which are separate and unchecked. A module you don’t grant only turns off its screen.

ModuleReadOperations
Costsroles/bigquery.jobUser on the project + roles/bigquery.dataViewer only on the export dataset—
Logsroles/logging.viewer (no Data Access logs)—
Metricsroles/monitoring.viewer—
Alerts—roles/monitoring.alertPolicyEditor
Tracesroles/cloudtrace.user—
Savingsroles/recommender.viewer + roles/compute.viewer—
Resize—roles/compute.instanceAdmin.v1 (+ serviceAccountUser on the VM’s service account)
Cloud Runroles/run.viewer—
Deployments—roles/run.developer (+ serviceAccountUser on each execution service account)
Imagesroles/artifactregistry.reader—
Secrets / secret valuesroles/secretmanager.viewersecretAccessor + secretVersionAdder
Parameters / parameter valuesroles/parametermanager.parameterViewerparameterAccessor + parameterVersionAdder
Create and delete secrets (separate)—roles/secretmanager.editor
Create and delete parameters (separate)—roles/parametermanager.editor

Roles granted on a resource and not on the project (the billing export dataset, a VM’s or a Cloud Run service’s service account) come as a separate command with a placeholder for you to fill in.

4. When a permission is missing

A screen whose module was not detected does not show a Google error: it shows the exact commands to grant it, and KeelPilot does not call Google until you verify the connection again. For example, without the Logs module:

gcloud services enable logging.googleapis.com --project=my-project
# Logs: leer Cloud Logging (sin Data Access)
gcloud projects add-iam-policy-binding my-project --member="serviceAccount:keelpilot@my-project.iam.gserviceaccount.com" --role=roles/logging.viewer

Run them, then go back to Settings → AWS connections and click Verify on the connection.

5. What works with Google Cloud today

AreaWith Google CloudGuide
KubernetesGKE clusters, K8s explorer, logs, exec, kubectl console, kubeconfig, Helm, policies, CIS check, Loki, Prometheus, Tempo/Jaeger. Private clusters through the GKE DNS endpoint (no agent).Kubernetes
Node pools and night modeView and scale node pools, night mode (infrastructure level).Nodes & Node Groups, Cost Management
CostsBilling from the Cloud Billing export to BigQuery, budgets, cost anomalies, reports, weekly summary.Cost Management
SavingsCost Guardrails with Recommender, Cost Optimization (rightsizing, CUD, Spot), VM resize, verified savings.Cost Guardrails
ObservabilityCloud Logging, Cloud Monitoring (dashboard, explorer, widgets), alert policies and open alerts, Cloud Trace, AIOps anomalies and capacity.Metrics & Logs, Alerting, Traces
ContainersCloud Run and Artifact Registry.ECS & Containers
ConfigurationSecret Manager and Parameter Manager.Security & Compliance
Still AWS only: Resources, Networking, IaC Viewer, Migration, Service Map, Infrastructure Map, Security Posture, Activity Audit and Change Intelligence. With a Google Cloud connection active they are not in the menu, and if you open one by URL you see “Only available for AWS connections”. The RCA of a Google Cloud anomaly runs without infrastructure change events.

6. The menu follows your connections

  • No connection yet: the menu only shows Getting started, Settings and help (Support, FAQ, Documentation). Any other screen shows “No connection configured” with the Add connection button, which opens /settings/conexiones.
  • Only Google Cloud: the AWS-only screens are hidden, even while the connection is still pending verification.
  • AWS and Google Cloud: the active connection in the top selector decides. With a Google Cloud connection the AWS group is called Google Cloud and ECS Services, ECR Images, Secrets Manager and Parameter Store become Cloud Run, Artifact Registry, Secret Manager and Parameter Manager.

Troubleshooting

“The service account is missing … (module “…”)”.

Cause: The module was not granted, or a role was removed after verifying.

Fix: Run the commands on the screen and verify the connection again.

“Cluster … only accepts internal traffic”.

Cause: The cluster has neither the DNS endpoint enabled nor a public IP.

Fix: Enable the DNS endpoint: gcloud container clusters update <cluster> --location=<location> --enable-dns-access.

“Scaling node pools needs the infrastructure level…”.

Cause: The connection is at read or operations level.

Fix: Grant roles/container.clusterAdmin with the command shown and verify again.