Set minimum TLS version to 1.3 (#13500)

This helps ensure a minimum level of security. The two places this affects is our controller webhook and linkerd-viz tap API.

The controller requires that kube-api supports TLSv1.3, which it does as of 1.19 (our minimum is currently 1.22). The linkerd-viz tap API is mostly used internally, and is deprecated. It may be worth revisiting if we want to keep it around at all.

Signed-off-by: Scott Fleener <scott@buoyant.io>
This commit is contained in:
Scott Fleener 2024-12-19 09:19:09 -05:00 committed by GitHub
parent c77075c5eb
commit 3847f9cf13
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View File

@ -65,7 +65,7 @@ func NewServer(
Addr: addr,
ReadHeaderTimeout: 15 * time.Second,
TLSConfig: &tls.Config{
MinVersion: tls.VersionTLS12,
MinVersion: tls.VersionTLS13,
},
}

View File

@ -18,7 +18,7 @@ var mockHTTPServer = &http.Server{
Addr: ":0",
ReadHeaderTimeout: 15 * time.Second,
TLSConfig: &tls.Config{
MinVersion: tls.VersionTLS12,
MinVersion: tls.VersionTLS13,
},
}

View File

@ -74,7 +74,7 @@ func NewServer(
TLSConfig: &tls.Config{
ClientAuth: tls.VerifyClientCertIfGiven,
ClientCAs: clientCertPool,
MinVersion: tls.VersionTLS12,
MinVersion: tls.VersionTLS13,
},
}