Description
Check Cloud SQL’s effective sslMode when reviewing a Deployment Manager template. It takes precedence over the legacy requireSsl setting.
Potential impact
Plaintext exposes database traffic even on an internal network. A TLS client that skips certificate verification can connect to the wrong server.
Remediation
Use current Cloud SQL tooling to require TLS for the engine. Prepare certificates before enforcing client authentication. Check that the application verifies the intended server, Cloud SQL rejects a new direct plaintext connection, and the client has only the permissions it needs. With the Auth Proxy, also protect the application-to-proxy connection.
Examples
These legacy Deployment Manager excerpts omit the engine and region. Standard support has ended, with limited extensions for migration. On MySQL and PostgreSQL, requireSsl: true requires trusted client certificates. If you also set sslMode, use TRUSTED_CLIENT_CERTIFICATE_REQUIRED.
Before
resources:
- name: sql-instance
type: sqladmin.v1beta4.instance
properties:
settings:
tier: db-custom-1-3840
After
resources:
- name: sql-instance
type: sqladmin.v1beta4.instance
properties:
settings:
tier: db-custom-1-3840
ipConfiguration:
requireSsl: true