Skip to content

Commit

Permalink
Merge pull request #1681 from openshift-cherrypick-robot/cherry-pick-…
Browse files Browse the repository at this point in the history
…1649-to-release-4.3

[release-4.3] Bug 1827540: pkg/server: disable weak TLS versions
  • Loading branch information
openshift-merge-robot authored Jun 4, 2020
2 parents c54649b + b3d27cd commit 4417d57
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/server/api.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package server

import (
"crypto/tls"
"encoding/json"
"fmt"
"net/http"
Expand Down Expand Up @@ -46,6 +47,10 @@ func (a *APIServer) Serve() {
mcs := &http.Server{
Addr: fmt.Sprintf(":%v", a.port),
Handler: a.handler,
// We don't want to allow 1.1 as that's old. This was flagged in a security audit.
TLSConfig: &tls.Config{
MinVersion: tls.VersionTLS12,
},
}

glog.Infof("Launching server on %s", mcs.Addr)
Expand Down

0 comments on commit 4417d57

Please sign in to comment.