Skip to content

Commit

Permalink
Merge pull request #5491 from praseodym/fix-tls-configuration
Browse files Browse the repository at this point in the history
Actually enable TLSv1.3 by default
  • Loading branch information
k8s-ci-robot authored May 9, 2020
2 parents 0e785a0 + 4a36c80 commit bef2efc
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
6 changes: 4 additions & 2 deletions docs/user-guide/nginx-configuration/configmap.md
Original file line number Diff line number Diff line change
Expand Up @@ -516,9 +516,11 @@ Please check the result of the configuration using `https://ssllabs.com/ssltest/

## ssl-early-data

Enables or disables TLS 1.3 [early data](https://tools.ietf.org/html/rfc8446#section-2.3)
Enables or disables TLS 1.3 [early data](https://tools.ietf.org/html/rfc8446#section-2.3), also known as Zero Round Trip
Time Resumption (0-RTT).

This requires `ssl-protocols` to have `TLSv1.3` enabled.
This requires `ssl-protocols` to have `TLSv1.3` enabled. Enable this with caution, because requests sent within early
data are subject to [replay attacks](https://tools.ietf.org/html/rfc8470).

[ssl_early_data](http://nginx.org/en/docs/http/ngx_http_ssl_module.html#ssl_early_data). The default is: `false`.

Expand Down
2 changes: 1 addition & 1 deletion internal/ingress/controller/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ const (

// SSL enabled protocols to use
// http://nginx.org/en/docs/http/ngx_http_ssl_module.html#ssl_protocols
sslProtocols = "TLSv1.2"
sslProtocols = "TLSv1.2 TLSv1.3"

// Disable TLS 1.3 early data
// http://nginx.org/en/docs/http/ngx_http_ssl_module.html#ssl_early_data
Expand Down
5 changes: 4 additions & 1 deletion test/e2e/settings/tls.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,10 @@ var _ = framework.DescribeSetting("[SSL] TLS protocols, ciphers and headers)", f
})

ginkgo.It("setting cipher suite", func() {
f.UpdateNginxConfigMapData(sslCiphers, testCiphers)
f.SetNginxConfigMapData(map[string]string{
sslCiphers: testCiphers,
sslProtocols: "TLSv1.2",
})

f.WaitForNginxConfiguration(
func(cfg string) bool {
Expand Down

0 comments on commit bef2efc

Please sign in to comment.