From cbb01e4bdc71aeada96624eede506e781590d643 Mon Sep 17 00:00:00 2001 From: Daniel Widdis Date: Fri, 1 Dec 2023 17:01:07 -0800 Subject: [PATCH] [Feature/agent_framework] Work around JceMasterKey locale bug (#239) Work around JceMasterKey locale bug Signed-off-by: Daniel Widdis --- .../org/opensearch/flowframework/util/EncryptorUtils.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/opensearch/flowframework/util/EncryptorUtils.java b/src/main/java/org/opensearch/flowframework/util/EncryptorUtils.java index 70b30b5cc..69d6b9f3c 100644 --- a/src/main/java/org/opensearch/flowframework/util/EncryptorUtils.java +++ b/src/main/java/org/opensearch/flowframework/util/EncryptorUtils.java @@ -56,7 +56,9 @@ public class EncryptorUtils { private static final String ALGORITHM = "AES"; private static final String PROVIDER = "Custom"; - private static final String WRAPPING_ALGORITHM = "AES/GCM/NoPadding"; + // Intentionally uppercase to work around localization bug + // https://github.com/aws/aws-encryption-sdk-java/issues/1879 + private static final String WRAPPING_ALGORITHM = "AES/GCM/NOPADDING"; private ClusterService clusterService; private Client client;