Skip to content

Commit

Permalink
Make username and password case insensitive for jdbc
Browse files Browse the repository at this point in the history
  • Loading branch information
ejeffrli committed Nov 8, 2024
1 parent 9ebc772 commit 24c571f
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,12 @@ public RdsSecretsCredentialProvider(final String secretString)
{
Map<String, String> rdsSecrets;
try {
rdsSecrets = OBJECT_MAPPER.readValue(secretString, HashMap.class);
Map<String, String> originalMap = OBJECT_MAPPER.readValue(secretString, HashMap.class);

rdsSecrets = new HashMap<>();
for (Map.Entry<String, String> entry : originalMap.entrySet()) {
rdsSecrets.put(entry.getKey().toLowerCase(), entry.getValue());
}
}
catch (IOException ioException) {
throw new RuntimeException("Could not deserialize RDS credentials into HashMap", ioException);
Expand Down

0 comments on commit 24c571f

Please sign in to comment.