This is an automated email from the ASF dual-hosted git repository.
jbertram pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/activemq-artemis.git
The following commit(s) were added to refs/heads/master by this push:
new 9bdd271 ARTEMIS-3176 don't log JDBC datasource 'password' property
new 5514bca This closes #3488
9bdd271 is described below
commit 9bdd27109276dc64b661c7ee143e2d619beffd69
Author: Justin Bertram <[email protected]>
AuthorDate: Thu Mar 11 10:57:23 2021 -0600
ARTEMIS-3176 don't log JDBC datasource 'password' property
---
.../apache/activemq/artemis/jdbc/store/drivers/JDBCDataSourceUtils.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/artemis-jdbc-store/src/main/java/org/apache/activemq/artemis/jdbc/store/drivers/JDBCDataSourceUtils.java
b/artemis-jdbc-store/src/main/java/org/apache/activemq/artemis/jdbc/store/drivers/JDBCDataSourceUtils.java
index 97d295e..549fbe0 100644
---
a/artemis-jdbc-store/src/main/java/org/apache/activemq/artemis/jdbc/store/drivers/JDBCDataSourceUtils.java
+++
b/artemis-jdbc-store/src/main/java/org/apache/activemq/artemis/jdbc/store/drivers/JDBCDataSourceUtils.java
@@ -29,7 +29,7 @@ public class JDBCDataSourceUtils {
ActiveMQJournalLogger.LOGGER.initializingJdbcDataSource(dataSourceClassName,
dataSourceProperties
.keySet()
.stream()
- .map(key -> key + "=" + dataSourceProperties.get(key))
+ .map(key -> key + "=" + (key.equalsIgnoreCase("password") ? "****" :
dataSourceProperties.get(key)))
.collect(Collectors.joining(", ", "{", "}")));
try {
DataSource dataSource = (DataSource)
Class.forName(dataSourceClassName).newInstance();