mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
chore: set tls.VersionTLS12 MinVersion in cli/server.go to address gosec warning (#23646)
I was investigating `//nolint` comments and this one popped up. It raised my eyebrows enough to warrant its own PR.
This commit is contained in:
+2
-1
@@ -2327,7 +2327,8 @@ func ConfigureHTTPClient(ctx context.Context, clientCertFile, clientKeyFile stri
|
||||
return ctx, nil, err
|
||||
}
|
||||
|
||||
tlsClientConfig := &tls.Config{ //nolint:gosec
|
||||
tlsClientConfig := &tls.Config{
|
||||
MinVersion: tls.VersionTLS12,
|
||||
Certificates: certificates,
|
||||
NextProtos: []string{"h2", "http/1.1"},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user