dex/cmd/dex
Steven Danna 46f48b33a1
Use a more conservative set of CipherSuites
The default cipher suites used by Go include a number of ciphers that
have known weaknesses. In addition to leaving users open to these
weaknesses, the inclusion of these weaker ciphers causes problems with
various automated scanning tools.

This PR disables the CBC-mode, RC4, and 3DES ciphers included in the
Go standard library by passing an explicit cipher suite list.

The ciphers included here are more line with those recommended by
Mozilla for "Intermediate" compatibility. [0]

*Performance Implications*

The Go standard library does capability-based cipher ordering,
preferring AES ciphers if the underlying hardware has AES specific
instructions. [1] Since all of the relevant code is internal modules,
to do the same thing ourselves would require duplicating that
code. Here, I've placed AES based ciphers first.

*Compatibility Implications*

This does reduce the number of clients who will be able to communicate
with dex.

[0] https://ssl-config.mozilla.org/#server=nginx&server-version=1.17.0&config=intermediate&hsts=false&ocsp=false
[1] a8c2e5c6ad/src/crypto/tls/common.go (L1091)

Signed-off-by: Steven Danna <steve@chef.io>
2019-08-31 17:34:55 +01:00
..
config.go Merge pull request #1512 from venezia/add_reflection 2019-08-07 13:56:33 +02:00
config_test.go Merge pull request #1505 from MarcDufresne/show-login-page 2019-08-07 09:23:42 +02:00
main.go cmd/dex: rename file 2016-10-03 12:56:09 -07:00
serve.go Use a more conservative set of CipherSuites 2019-08-31 17:34:55 +01:00
version.go *: github.com/coreos/dex -> github.com/dexidp/dex 2018-09-05 17:57:08 +02:00