-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Closed
Labels
:Security/TLSSSL/TLS, CertificatesSSL/TLS, Certificates>test-failureTriaged test failures from CITriaged test failures from CITeam:SecurityMeta label for security teamMeta label for security team
Description
Some tests in DefaultJdkTrustConfigTests fail on our bundled JDK. I presume the truststore in adoptopenjdk is slightly different than the Oracle JDK 🤦
Keep in mind, to reproduce this make sure you do not have RUNTIME_JAVA_HOME set so that the build will default to using the bundled JDK for the test runtime JVM.
Repro line:
./gradlew ':libs:elasticsearch-ssl-config:test' --tests "org.elasticsearch.common.ssl.DefaultJdkTrustConfigTests"
Reproduces locally?:
yes
Applicable branches:
master, 7.x, 7.13, 7.12
Failure excerpt:
org.elasticsearch.common.ssl.DefaultJdkTrustConfigTests > testGetNonPKCS11TrustStoreWithPasswordSet FAILED
java.lang.AssertionError: Cannot find trusted issuer with name [thawte].
at __randomizedtesting.SeedInfo.seed([D1D1FC4A5C6CF0B4:C8E7AFA0BAF5D16E]:0)
at org.junit.Assert.fail(Assert.java:88)
at org.elasticsearch.common.ssl.DefaultJdkTrustConfigTests.assertHasTrustedIssuer(DefaultJdkTrustConfigTests.java:64)
at org.elasticsearch.common.ssl.DefaultJdkTrustConfigTests.assertStandardIssuers(DefaultJdkTrustConfigTests.java:50)
at org.elasticsearch.common.ssl.DefaultJdkTrustConfigTests.testGetNonPKCS11TrustStoreWithPasswordSet(DefaultJdkTrustConfigTests.java:40)
Metadata
Metadata
Assignees
Labels
:Security/TLSSSL/TLS, CertificatesSSL/TLS, Certificates>test-failureTriaged test failures from CITriaged test failures from CITeam:SecurityMeta label for security teamMeta label for security team