can we make the tls version configurable?
now, etcd accepts tls's connection with low version(TLS1.0), see this,can we make this configurable? because TLS1.0 has some security flaw.
@gtank Opinions?
SSLv3 -> POODLE and BEAST TLSv1.0 -> POODLE and BEAST using CBC cipher TLSv1.1 -> RC4 cipher usage
I think probably we should bump default to TLS 1.2 directly instead of making it configurable.
I agree with @xiang90. Since we control both endpoints here there's not any reason to allow most of the negotiation options in TLS anyway. If we can afford to (modulo compatibility + perfomance) then we should use something like
// Note: in the wild this pretty much only works for talking to Google
var tightTLSConfig = tls.Config{
RootCAs: nil, // be explicit about using system bundle
CipherSuites: []uint16{
tls.TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,
tls.TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,
},
MinVersion: tls.VersionTLS12,
CurvePreferences: []tls.CurveID{
tls.CurveP256,
tls.CurveP384,
},
}
edit: It's also worth noting that ALL modes using CBC are dubious in Go because it lacks Lucky13 mitigation. Disabling all of the broken options leaves us at essentially TLS1.2 anyway.
@xiang90 @gtank ,thanks for your apply. since it is a simple modify for this, then will it be a patch or just support in the master branch?