Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion pkg/server/endpoints/bundle/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,13 @@ func (s *Server) ListenAndServe(ctx context.Context) error {
return errs.Wrap(err)
}

// Set up the TLS config, setting TLS 1.2 as the minimum.
tlsConfig := s.c.ServerAuth.GetTLSConfig()
tlsConfig.MinVersion = tls.VersionTLS12

server := &http.Server{
Handler: http.HandlerFunc(s.serveHTTP),
TLSConfig: s.c.ServerAuth.GetTLSConfig(),
TLSConfig: tlsConfig,
}

errCh := make(chan error, 1)
Expand Down
1 change: 1 addition & 0 deletions support/k8s/k8s-workload-registrar/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ func NewServer(config ServerConfig) (*Server, error) {

tlsConfig := &tls.Config{
Certificates: []tls.Certificate{cert},
MinVersion: tls.VersionTLS12,
}
if !config.InsecureSkipClientVerification {
tlsConfig.ClientAuth = tls.RequireAndVerifyClientCert
Expand Down