Skip to content

Commit

Permalink
Unmute Kerberos integ tests (elastic#80538)
Browse files Browse the repository at this point in the history
We used to default enctypes to des3-cbc-sha1-kd but with JDK17, weak
encryption types are disabled by default. This caused our Kerberos
integration tests to fail with an `sun.security.krb5.KrbException: no
supported default etypes for default_tkt_enctypes` exception. We have
since changed our default encryption type to aes256-cts-hmac-sha1-96 in
elastic#78703 and we can unmute these tests now.
# Conflicts:
#	x-pack/qa/kerberos-tests/src/test/java/org/elasticsearch/xpack/security/authc/kerberos/KerberosAuthenticationIT.java
  • Loading branch information
jkakavas committed Nov 9, 2021
1 parent b5edb93 commit e33fd73
Showing 1 changed file with 0 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,6 @@ public void testSuppressedOnJDK8u262() {
}

public void testLoginByKeytab() throws IOException, PrivilegedActionException {
assumeFalse(
"This test fails often on Java 17 early access. See: https://github.com/elastic/elasticsearch/issues/72120",
"17".equals(System.getProperty("java.version"))
);
testSuppressedOnJDK8u262();
final String userPrincipalName = System.getProperty(TEST_USER_WITH_KEYTAB_KEY);
final String keytabPath = System.getProperty(TEST_USER_WITH_KEYTAB_PATH_KEY);
final boolean enabledDebugLogs = Boolean.parseBoolean(System.getProperty(ENABLE_KERBEROS_DEBUG_LOGS_KEY));
Expand All @@ -121,11 +116,6 @@ public void testLoginByKeytab() throws IOException, PrivilegedActionException {
}

public void testLoginByUsernamePassword() throws IOException, PrivilegedActionException {
assumeFalse(
"This test fails often on Java 17 early access. See: https://github.com/elastic/elasticsearch/issues/72120",
"17".equals(System.getProperty("java.version"))
);
testSuppressedOnJDK8u262();
final String userPrincipalName = System.getProperty(TEST_USER_WITH_PWD_KEY);
final String password = System.getProperty(TEST_USER_WITH_PWD_PASSWD_KEY);
final boolean enabledDebugLogs = Boolean.parseBoolean(System.getProperty(ENABLE_KERBEROS_DEBUG_LOGS_KEY));
Expand All @@ -138,11 +128,6 @@ public void testLoginByUsernamePassword() throws IOException, PrivilegedActionEx
}

public void testGetOauth2TokenInExchangeForKerberosTickets() throws PrivilegedActionException, GSSException, IOException {
assumeFalse(
"This test fails often on Java 17 early access. See: https://github.com/elastic/elasticsearch/issues/72120",
"17".equals(System.getProperty("java.version"))
);
testSuppressedOnJDK8u262();
final String userPrincipalName = System.getProperty(TEST_USER_WITH_PWD_KEY);
final String password = System.getProperty(TEST_USER_WITH_PWD_PASSWD_KEY);
final boolean enabledDebugLogs = Boolean.parseBoolean(System.getProperty(ENABLE_KERBEROS_DEBUG_LOGS_KEY));
Expand Down

0 comments on commit e33fd73

Please sign in to comment.