Skip to content

Commit

Permalink
Don't accept TLS 1.0/1.1 Connections (Azure#3378)
Browse files Browse the repository at this point in the history
* Update dbokten server

* Update frontend

* Update portal

* Update proxy

---------

Co-authored-by: Nicolas Ontiveros <[email protected]>
  • Loading branch information
niontive and Nicolas Ontiveros authored Feb 16, 2024
1 parent 00a44ec commit 7f99749
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/dbtoken/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ func NewServer(
},
NextProtos: []string{"h2", "http/1.1"},
SessionTicketsDisabled: true,
MinVersion: tls.VersionTLS12,
CurvePreferences: []tls.CurveID{
tls.CurveP256,
tls.X25519,
Expand Down
1 change: 1 addition & 0 deletions pkg/frontend/frontend.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ func NewFrontend(ctx context.Context,
NextProtos: []string{"h2", "http/1.1"},
ClientAuth: tls.RequestClientCert,
SessionTicketsDisabled: true,
MinVersion: tls.VersionTLS12,
CurvePreferences: []tls.CurveID{
tls.CurveP256,
tls.X25519,
Expand Down
1 change: 1 addition & 0 deletions pkg/portal/portal.go
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ func (p *portal) Run(ctx context.Context) error {
},
NextProtos: []string{"h2", "http/1.1"},
SessionTicketsDisabled: true,
MinVersion: tls.VersionTLS12,
CurvePreferences: []tls.CurveID{
tls.CurveP256,
tls.X25519,
Expand Down
1 change: 1 addition & 0 deletions pkg/proxy/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ func (s *Server) Run() error {
ClientCAs: pool,
ClientAuth: tls.RequireAndVerifyClientCert,
SessionTicketsDisabled: true,
MinVersion: tls.VersionTLS12,
CurvePreferences: []tls.CurveID{
tls.CurveP256,
tls.X25519,
Expand Down

0 comments on commit 7f99749

Please sign in to comment.