Skip to content

Commit f0b087d

Browse files
authored
fix: don't allow tls versions older than TLS 1.2 (#432)
Fixes #430
1 parent aa6419e commit f0b087d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

terraform/https.tf

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@ resource "google_compute_target_https_proxy" "frontend" {
2424
name = "frontend"
2525
url_map = google_compute_url_map.frontend_https.id
2626
ssl_certificates = [google_compute_managed_ssl_certificate.frontend_cert.id]
27+
ssl_policy = google_compute_ssl_policy.frontend.id
28+
}
29+
30+
resource "google_compute_ssl_policy" "frontend" {
31+
name = "frontend"
32+
min_tls_version = "TLS_1_2"
33+
profile = "MODERN"
2734
}
2835

2936
resource "google_compute_managed_ssl_certificate" "frontend_cert" {
@@ -38,6 +45,7 @@ resource "google_compute_managed_ssl_certificate" "frontend_cert" {
3845
}
3946
}
4047

48+
4149
resource "google_compute_url_map" "frontend_https" {
4250
name = "frontend-https"
4351

0 commit comments

Comments
 (0)