generated from amazon-archives/__template_Apache-2.0
-
Notifications
You must be signed in to change notification settings - Fork 56
Closed
Labels
Description
What is the bug?
There are 3 flaky tests all with the same exception:
- org.opensearch.flowframework.util.EncryptorUtilsTests.testEncryptWithDifferentMasterKey
- org.opensearch.flowframework.util.EncryptorUtilsTests.testEncryptDecryptTemplateCredential
- org.opensearch.flowframework.util.EncryptorUtilsTests.testEncryptDecrypt
All the tests have this exception:
2> java.lang.IllegalArgumentException: Right now only AES/GCM/NoPadding is supported
at __randomizedtesting.SeedInfo.seed([9F46C5A959EB03EE:DAA6D892FDC9D7C8]:0)
at com.amazonaws.encryptionsdk.jce.JceMasterKey.getInstance(JceMasterKey.java:66)
at org.opensearch.flowframework.util.EncryptorUtils.encrypt(EncryptorUtils.java:185)
at org.opensearch.flowframework.util.EncryptorUtilsTests.testEncryptWithDifferentMasterKey(EncryptorUtilsTests.java:114)
I haven't been able to reproduce this locally yet though
What is the expected behavior?
test always passes
What is your host/environment?
github runner above
Do you have any additional context?
The error is that only AES/GCM/NoPadding wrapping algorithm is supported, however this is the one that we are using.