jbertram commented on code in PR #5533:
URL: https://github.com/apache/activemq-artemis/pull/5533#discussion_r1972439154
##########
artemis-server/src/main/java/org/apache/activemq/artemis/core/management/impl/ActiveMQServerControlImpl.java:
##########
@@ -4721,6 +4722,22 @@ public long getAuthorizationFailureCount() {
return server.getSecurityStore().getAuthorizationFailureCount();
}
+ @Override
+ public void exportConfigAsProperties() throws Exception {
+ if (AuditLogger.isBaseLoggingEnabled()) {
+ AuditLogger.exportConfigAsProperties(this.server);
+ }
+
+ try (AutoCloseable lock = server.managementLock()) {
+ if (System.getProperty(TMP_DIR_SYSTEM_PROPERTY) == null) {
+ throw new IllegalStateException(TMP_DIR_SYSTEM_PROPERTY + " system
property must be set");
+ } else {
+ File exportFileInTmp = new
File(System.getProperty(TMP_DIR_SYSTEM_PROPERTY), CONFIG_AS_PROPERTIES_FILE);
Review Comment:
We will be obfuscating sensitive (e.g. password) fields, no? Are there any
security implications with putting the file into `/tmp`?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact