Description
Use google_compute_ssl_policy to select the minimum client TLS version and cipher suites. The target HTTPS or SSL proxy that uses the policy enforces these settings.
Potential impact
A low minimum can admit older clients when a compatible cipher is available. Raising it excludes clients that cannot meet the new minimum.
Remediation
For the CUSTOM profile shown, set min_tls_version to TLS_1_2 and specify at least one supported cipher in custom_features. A TLS 1.3 minimum requires the RESTRICTED profile. Attach the policy to the proxy and verify that required clients connect and older versions are rejected.
Examples
Both excerpts omit the required custom_features and proxy attachment. Configure backend encryption separately.
Before
resource "google_compute_ssl_policy" "example" {
name = "custom-ssl-policy"
min_tls_version = "TLS_1_1"
profile = "CUSTOM"
}
After
resource "google_compute_ssl_policy" "example" {
name = "custom-ssl-policy"
min_tls_version = "TLS_1_2"
profile = "CUSTOM"
}
The second configuration raises the minimum on custom-ssl-policy from TLS 1.1 to TLS 1.2.