Closed aglahe closed 1 year ago
sidekick doesn't support TLS v1.0 or v1.1
using explicitly TLS1.0/1.1 versions, it shouldn't allow any connection as well as the handshakes between the client and sidekick give the Go Pkg being used is: https://pkg.go.dev/crypto/tls
We rely on Go's standard net/http here so whatever is being done is done by net/http
So, in reading this from that pkg:
// MinVersion contains the minimum TLS version that is acceptable.
//
// By default, TLS 1.2 is currently used as the minimum when acting as a
// client, and TLS 1.0 when acting as a server. TLS 1.0 is the minimum
// supported by this package, both as a client and as a server.
//
// The client-side default can temporarily be reverted to TLS 1.0 by
// including the value "x509sha1=1" in the GODEBUG environment variable.
// Note that this option will be removed in Go 1.19 (but it will still be
// possible to set this field to VersionTLS10 explicitly).
MinVersion [uint16](https://pkg.go.dev/builtin#uint16)
If I'm reading this correctly, it looks like the default min version for server is 1.0...but, I could be reading this incorrectly.
I mean, I see this in the code:
MinVersion: tls.VersionTLS12,
I'll keep digging.
Doesn't feel like sidekick issue anymore.
It appears that Sidekick, at least in version 2.0.3, while it doesn't allow the connection to complete, it does allow a TLS1.0/1.1 handshake to occur.
Expected Behavior
Performing:
curl https://sidekick.local:9000 --verbose --tlsv1.0 --tls-max 1.1
using explicitly TLS1.0/1.1 versions, it shouldn't allow any connection as well as the handshakes between the client and sidekick give the Go Pkg being used is: https://pkg.go.dev/crypto/tls
Currently, when doing this to a minio server directly, you get the expected:
curl: (35) Peer reports incompatible or unsupported protocol version.
Current Behavior
Described below in steps to reproduce
Possible Solution
Not sure.
Steps to Reproduce (for bugs)
Context
https://minio.slack.com/archives/C3NDUB8UA/p1661973913050299
Regression
Not sure, haven't tested on older versions.
Your Environment
sidekick version
): 2.0.3uname -a
): 3.10.0-1160.11.1.el7.x86_64