etcd icon indicating copy to clipboard operation
etcd copied to clipboard

can we make the tls version configurable?

Open magicwang-cn opened this issue 10 years ago • 4 comments

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.

magicwang-cn avatar May 31 '16 06:05 magicwang-cn

@gtank Opinions?

xiang90 avatar May 31 '16 14:05 xiang90

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.

xiang90 avatar May 31 '16 14:05 xiang90

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.

gtank avatar May 31 '16 20:05 gtank

@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?

magicwang-cn avatar Jun 01 '16 01:06 magicwang-cn