From 72131bb3c754444d763d80b50fe96e22a13dc73c Mon Sep 17 00:00:00 2001 From: Daniel Widdis Date: Wed, 13 Dec 2023 08:16:42 -0800 Subject: [PATCH] [Port from Feature/agent_framework] Work around JceMasterKey locale bug (#239) (#269) [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;