From 149ae75f8cfae1df098bae7e6b736b42977e0a37 Mon Sep 17 00:00:00 2001 From: tahub05 Date: Thu, 1 Aug 2024 13:07:01 +0900 Subject: [PATCH] Update Secret Name restrictions --- .../jdbc/connection/GenericJdbcConnectionFactory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/athena-jdbc/src/main/java/com/amazonaws/athena/connectors/jdbc/connection/GenericJdbcConnectionFactory.java b/athena-jdbc/src/main/java/com/amazonaws/athena/connectors/jdbc/connection/GenericJdbcConnectionFactory.java index 40478a00cf..ab061c52d2 100644 --- a/athena-jdbc/src/main/java/com/amazonaws/athena/connectors/jdbc/connection/GenericJdbcConnectionFactory.java +++ b/athena-jdbc/src/main/java/com/amazonaws/athena/connectors/jdbc/connection/GenericJdbcConnectionFactory.java @@ -45,7 +45,7 @@ public class GenericJdbcConnectionFactory { private static final Logger LOGGER = LoggerFactory.getLogger(GenericJdbcConnectionFactory.class); - private static final String SECRET_NAME_PATTERN_STRING = "(\\$\\{[a-zA-Z0-9:/_+=.@-]+})"; + private static final String SECRET_NAME_PATTERN_STRING = "(\\$\\{[a-zA-Z0-9:/_+=.@!-]+})"; public static final Pattern SECRET_NAME_PATTERN = Pattern.compile(SECRET_NAME_PATTERN_STRING); private final DatabaseConnectionInfo databaseConnectionInfo;