From adca5f200be5efa4a6f7ed5d5c0bf1d6c0e66b09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charles-Edouard=20Br=C3=A9t=C3=A9ch=C3=A9?= Date: Thu, 31 Mar 2022 19:12:38 +0200 Subject: [PATCH] fix: tls min version (#3521) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Charles-Edouard Brétéché --- pkg/webhooks/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/webhooks/server.go b/pkg/webhooks/server.go index 79551c2b7b..617b1bb667 100644 --- a/pkg/webhooks/server.go +++ b/pkg/webhooks/server.go @@ -196,7 +196,7 @@ func NewWebhookServer( mux.HandlerFunc("GET", config.ReadinessServicePath, handlers.Probe(nil)) ws.server = &http.Server{ Addr: ":9443", // Listen on port for HTTPS requests - TLSConfig: &tls.Config{Certificates: []tls.Certificate{pair}}, + TLSConfig: &tls.Config{Certificates: []tls.Certificate{pair}, MinVersion: tls.VersionTLS12}, Handler: mux, ReadTimeout: 15 * time.Second, WriteTimeout: 15 * time.Second,