Skip to content

Commit

Permalink
internal/envoy: Disable CHACHA20 ciphers
Browse files Browse the repository at this point in the history
Related to an ask that Contour is FIPS compliant by default. Envoy built with
BoringSSL-FIPS removes the CHACHA20 cipehrs by default.

Signed-off-by: Sunjay Bhatia <[email protected]>
  • Loading branch information
sunjayBhatia committed Feb 10, 2021
1 parent c8c8589 commit 6eba5cc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions internal/envoy/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@ var (
// The commented ciphers are left in place to simplify updating this list for future
// versions of envoy.
Ciphers = []string{
"[ECDHE-ECDSA-AES128-GCM-SHA256|ECDHE-ECDSA-CHACHA20-POLY1305]",
"[ECDHE-RSA-AES128-GCM-SHA256|ECDHE-RSA-CHACHA20-POLY1305]",
//"[ECDHE-ECDSA-AES128-GCM-SHA256|ECDHE-ECDSA-CHACHA20-POLY1305]",
//"[ECDHE-RSA-AES128-GCM-SHA256|ECDHE-RSA-CHACHA20-POLY1305]",
"ECDHE-ECDSA-AES128-GCM-SHA256",
"ECDHE-RSA-AES128-GCM-SHA256",
"ECDHE-ECDSA-AES128-SHA",
"ECDHE-RSA-AES128-SHA",
//"AES128-GCM-SHA256",
Expand Down
4 changes: 2 additions & 2 deletions internal/envoy/v3/listener_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,8 @@ func TestDownstreamTLSContext(t *testing.T) {
TlsMinimumProtocolVersion: envoy_tls_v3.TlsParameters_TLSv1_2,
TlsMaximumProtocolVersion: envoy_tls_v3.TlsParameters_TLSv1_3,
CipherSuites: []string{
"[ECDHE-ECDSA-AES128-GCM-SHA256|ECDHE-ECDSA-CHACHA20-POLY1305]",
"[ECDHE-RSA-AES128-GCM-SHA256|ECDHE-RSA-CHACHA20-POLY1305]",
"ECDHE-ECDSA-AES128-GCM-SHA256",
"ECDHE-RSA-AES128-GCM-SHA256",
"ECDHE-ECDSA-AES128-SHA",
"ECDHE-RSA-AES128-SHA",
"ECDHE-ECDSA-AES256-GCM-SHA384",
Expand Down

0 comments on commit 6eba5cc

Please sign in to comment.