-
Notifications
You must be signed in to change notification settings - Fork 25k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SimpleKdcLdapServerTests testClientServiceMutualAuthentication fails on JDK15-ea #57749
Comments
Pinging @elastic/es-security (:Security/Authentication) |
Some possible causes could be https://bugs.openjdk.java.net/browse/JDK-8160818 and/or https://bugs.openjdk.java.net/browse/JDK-8239385. |
This change mutes SimpleKdcLdapServerTests testClientServiceMutualAuthentication when the runtime jdk is 15. See elastic#57749
This change mutes SimpleKdcLdapServerTests testClientServiceMutualAuthentication when the runtime jdk is 15. See #57749
TLDR: This is not really a Kerberos issue, but mainly an issue about localised DateFormat. It manifests itself in this particular test and version due to interactions among Java 15, Apache Kerby library and our test setup. I spent quite some time digging into this and here are the details:
So in summary, item 2 from above list is the critical piece that is missing from I am also thinking raising an issue for Apache Kerby to always encode the date string in an ASCII compatible way regardless of the system locale. Since JDK's Kerberos implementation does not support anything other than ASCII, it makes more sense to ensure it. Also the Kerberos spec itself does recognise it has issues in supporting full i18n. |
) The JDK system property makes sure date digits are always represented as ASCII chars. This in turn helps the Kerberos response to be correctly encoded and recognised by the client. Resolves: #57749
Build scan: https://gradle-enterprise.elastic.co/s/h2zdsinitnabi
Repro line:
Reproduces locally?: Yes
Applicable branches: 6.8
Failure history: https://build-stats.elastic.co/app/kibana#/discover?_g=(refreshInterval:(pause:!t,value:0),time:(from:now%2Fy,mode:quick,to:now))&_a=(columns:!(test.failed-testcases),filters:!(('$state':(store:appState),meta:(alias:!n,disabled:!f,index:b646ed00-7efc-11e8-bf69-63c8ef516157,key:build.project,negate:!f,params:(query:elasticsearch,type:phrase),type:phrase,value:elasticsearch),query:(match:(build.project:(query:elasticsearch,type:phrase))))),index:b646ed00-7efc-11e8-bf69-63c8ef516157,interval:auto,query:(language:lucene,query:'test.failed-testcases.test:testClientServiceMutualAuthentication'),sort:!(process.time-start,desc))
Failure excerpt:
This fails reproducibly for me on the 6.8 branch once I installed JDK15. Note, I tested with b26 of JDK15 and this is not the JDK issue that causes #56507.
The text was updated successfully, but these errors were encountered: