Workaround JDK-8213202 in SSLClientAuthTests (#46995)

This change works around JDK-8213202, which is a bug related to TLSv1.3
session resumption before JDK 11.0.3 that occurs when there are
multiple concurrent sessions being established. Nodes connecting to
each other will trigger this bug when client authentication is
disabled, which is the case for SSLClientAuthTests.

Backport of #46680
This commit is contained in:
Ioannis Kakavas 2019-09-24 12:47:56 +03:00 committed by GitHub
parent 56224068d4
commit 98e6bb4d01
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -96,6 +96,10 @@ public class SSLClientAuthTests extends SecurityIntegTestCase {
return builder
// invert the require auth settings
.put("xpack.security.transport.ssl.client_authentication", SSLClientAuth.NONE)
// Due to the TLSv1.3 bug with session resumption when client authentication is not
// used, we need to set the protocols since we disabled client auth for transport
// to avoid failures on pre 11.0.3 JDKs. See #getProtocols
.putList("xpack.security.transport.ssl.supported_protocols", getProtocols())
.put("xpack.security.http.ssl.enabled", true)
.put("xpack.security.http.ssl.client_authentication", SSLClientAuth.REQUIRED)
.build();