Skip to content

Commit 21340e2

Browse files
authored
PIM-12026 [Security] Add SSL policy to use only TLS 1.2 (#1029)
1 parent 2d16518 commit 21340e2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

deployments/modules/services/networking/load-balancer.tf

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,17 @@ resource "google_compute_managed_ssl_certificate" "default" {
2525
}
2626
}
2727

28+
resource "google_compute_ssl_policy" "default" {
29+
name = "default-ssl-tls-policy"
30+
profile = "COMPATIBLE"
31+
min_tls_version = "TLS_1_2"
32+
}
33+
2834
resource "google_compute_target_https_proxy" "default" {
2935
name = "${local.context}-https-lb-proxy"
3036
url_map = google_compute_url_map.default.id
3137
ssl_certificates = [google_compute_managed_ssl_certificate.default.id]
38+
ssl_policy = google_compute_ssl_policy.default.id
3239
}
3340

3441
resource "google_compute_target_http_proxy" "https_redirect" {

0 commit comments

Comments
 (0)