Skip to content

[BUG] org.opensearch.flowframework.util.EncryptorUtilsTests is flaky #233

@amitgalitz

Description

@amitgalitz

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

run: https://github.com/opensearch-project/flow-framework/actions/runs/7052745868/job/19198492841

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions