diff --git a/spring-cloud-vault-config/src/main/java/org/springframework/cloud/vault/config/ClientAuthenticationFactory.java b/spring-cloud-vault-config/src/main/java/org/springframework/cloud/vault/config/ClientAuthenticationFactory.java index 930d320e..6e039b21 100644 --- a/spring-cloud-vault-config/src/main/java/org/springframework/cloud/vault/config/ClientAuthenticationFactory.java +++ b/spring-cloud-vault-config/src/main/java/org/springframework/cloud/vault/config/ClientAuthenticationFactory.java @@ -20,6 +20,7 @@ import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; +import java.util.Locale; import java.util.concurrent.atomic.AtomicReference; import software.amazon.awssdk.auth.credentials.AwsCredentials; @@ -175,7 +176,7 @@ private AppIdUserIdMechanism getAppIdMechanism(VaultProperties.AppIdProperties a } catch (ClassNotFoundException ex) { - switch (appId.getUserId().toUpperCase()) { + switch (appId.getUserId().toUpperCase(Locale.ROOT)) { case VaultProperties.AppIdProperties.IP_ADDRESS: return new IpAddressUserId();