Review the minimum TLS version in a GCP SSL policy

Review minimum TLS versions and cipher suites together, and associate the policy with the actual proxy.

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

hcl
resource "google_compute_ssl_policy" "example" {
  name            = "custom-ssl-policy"
  min_tls_version = "TLS_1_1"
  profile         = "CUSTOM"
}

After

hcl
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.

References