feat: Support Cloud SQL via Auth Proxy for PostgreSQL backend - #996
Open
shrutiyam-glitch wants to merge 2 commits into
Open
feat: Support Cloud SQL via Auth Proxy for PostgreSQL backend#996shrutiyam-glitch wants to merge 2 commits into
shrutiyam-glitch wants to merge 2 commits into
Conversation
shrutiyam-glitch
force-pushed
the
cloudsql_integration
branch
from
August 17, 2026 17:31
9c7522d to
99d5a68
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR introduces native, secure support for using Cloud SQL as the PostgreSQL store backend for
ate-api-server.To ensure the highest level of security and ease of use in GCP environments, this integration leverages the Cloud SQL Auth Proxy sidecar with automatic IAM database authentication. This means transport security (TLS 1.3 tunnel) is handled automatically, and database sessions are authenticated using Workload Identity via short-lived OAuth tokens, completely eliminating the need for database passwords.
Key Changes
manifests/ate-install/cloudsql-proxy-patch.yamlto patch the sidecar into theate-api-serverdeployment when a Cloud SQL instance is configured.tools/setup-gcpwith a newcloudsqlcommand. This handles the idempotent creation of the Cloud SQL instance, Google Service Accounts (GSA), IAM bindings, and Workload Identity bindings.hack/install-ate.shto parse new environment variables (e.g.,ATE_API_POSTGRES_CLOUDSQL_INSTANCE,ATE_API_POSTGRES_CLOUDSQL_GSA) and correctly synthesize the passwordless DSN and ConfigMaps for the proxy.tools/setup-gcp/cloud-sql.mdcovering provisioning, schema privileges, deployment, and database scaling.docs/threat-model.mdto reflect the new Cloud SQL egress flows and Auth Proxy tunnel mechanics.sqladmin/v1,servicenetworking/v1,iam/v1) for the GCP setup tool.