Details
-
Bug
-
Status: Resolved
-
Normal
-
Resolution: Fixed
-
None
-
Code
-
Low
-
Normal
-
Adhoc Test
-
All
-
None
Description
this fails, it is not happening in cassandra-4.1
cd examples/ssl-factory ant build && ant test
My suspicion is that SSL factory related stuff was recently changed, in trunk, by (1) and this broke related ssl test.
maulin.vasavada do you have some time to look into that as you are the author of the tests? I think I fixed the most of it here (2) but one test is still failing and I can not wrap my head around that one. It gives:
[junit] Testcase: buildKeyManagerFactoryHappyPathForUnencryptedKey(org.apache.cassandra.security.KubernetesSecretsPEMSslContextFactoryTest): Caused an ERROR [junit] Failed to build key manager store for secure connections [junit] javax.net.ssl.SSLException: Failed to build key manager store for secure connections [junit] at org.apache.cassandra.security.PEMBasedSslContextFactory.buildKeyManagerFactory(PEMBasedSslContextFactory.java:267) [junit] at org.apache.cassandra.security.PEMBasedSslContextFactory.buildKeyManagerFactory(PEMBasedSslContextFactory.java:229) [junit] at org.apache.cassandra.security.KubernetesSecretsPEMSslContextFactory.buildKeyManagerFactory(KubernetesSecretsPEMSslContextFactory.java:169) [junit] at org.apache.cassandra.security.KubernetesSecretsPEMSslContextFactoryTest.buildKeyManagerFactoryHappyPathForUnencryptedKey(KubernetesSecretsPEMSslContextFactoryTest.java:244) [junit] Caused by: java.io.IOException: overrun, bytes = 1195 [junit] at javax.crypto.EncryptedPrivateKeyInfo.<init>(EncryptedPrivateKeyInfo.java:95) [junit] at org.apache.cassandra.security.PEMReader.extractPrivateKey(PEMReader.java:108) [junit] at org.apache.cassandra.security.PEMBasedSslContextFactory.buildKeyStore(PEMBasedSslContextFactory.java:319) [junit] at org.apache.cassandra.security.PEMBasedSslContextFactory.buildKeyManagerFactory(PEMBasedSslContextFactory.java:251)
(1) https://github.com/apache/cassandra/commit/ed3901823a5fe9f8838d8b592a1b7703b12e810b
(2) https://github.com/instaclustr/cassandra/tree/CASSANDRA-18264-trunk-followup
Attachments
Issue Links
- Testing discovered
-
CASSANDRA-18264 CustomClassLoader does not load jars rendering triggers from JARs broken
- Resolved