Overview of Cloud SQL Auth Proxy
mainThe Cloud SQL Auth Proxy is a utility designed to provide secure connections to Cloud SQL instances. It handles IAM authorization (allowing you to control access via IAM permissions) and provides TLS 1.3 encryption without requiring manual certificate management.
Key Features:
- Automatic IAM Authentication (for Postgres and MySQL only).
- Support for Metrics (Cloud Monitoring, Cloud Trace, and Prometheus).
- HTTP Healthchecks.
- Service account impersonation.
- Configuration via environment variables and POSIX-compliant flags.
Important Limitations & Compatibility:
- Go Compatibility Warning: Go versions
1.25.2and1.24.8are NOT compatible because they break SAN verification due to how they handle trailing dots in DNS names. - MySQL 8.4 Support: The proxy does not currently support Unix domain socket connections to MySQL 8.4 instances due to the
caching_sha2_passwordauthentication plugin. - Network Connectivity: The proxy does not configure the network. You must ensure the environment where the proxy runs has network access to the Cloud SQL instance (via VPC for Private IP or via Public IP configuration).