Skip to content

Commit

Permalink
apiext: set minimum tls version to 1.3
Browse files Browse the repository at this point in the history
Signed-off-by: TJ Miller <[email protected]>
  • Loading branch information
teejaded committed Aug 18, 2023
1 parent 60867c4 commit 5c5325f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/apiext/internal/serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ func ServeHTTPS(ctx context.Context, port int, ca *CA, scheme *k8sRuntime.Scheme
sc := &dhttp.ServerConfig{
Handler: mux,
TLSConfig: &tls.Config{
MinVersion: tls.VersionTLS13,
GetCertificate: func(clientHello *tls.ClientHelloInfo) (*tls.Certificate, error) {
return ca.GenServerCert(ctx, clientHello.ServerName)
},
Expand Down

0 comments on commit 5c5325f

Please sign in to comment.