This is an automated email from the ASF dual-hosted git repository.
jbertram pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/activemq-artemis.git
The following commit(s) were added to refs/heads/main by this push:
new a882b55 ARTEMIS-3673 Set default hawtio role
new edc5c9f This closes #3945
a882b55 is described below
commit a882b5514b5c8be7028763505f5bf3f498cc095e
Author: Domenico Francesco Bruscino <[email protected]>
AuthorDate: Mon Feb 7 14:56:34 2022 +0100
ARTEMIS-3673 Set default hawtio role
---
.../main/resources/org/apache/activemq/artemis/cli/commands/bin/artemis | 2 ++
.../org/apache/activemq/artemis/cli/commands/etc/artemis.profile | 2 ++
2 files changed, 4 insertions(+)
diff --git
a/artemis-cli/src/main/resources/org/apache/activemq/artemis/cli/commands/bin/artemis
b/artemis-cli/src/main/resources/org/apache/activemq/artemis/cli/commands/bin/artemis
index f89ac4b..4f8e2f3 100755
---
a/artemis-cli/src/main/resources/org/apache/activemq/artemis/cli/commands/bin/artemis
+++
b/artemis-cli/src/main/resources/org/apache/activemq/artemis/cli/commands/bin/artemis
@@ -44,6 +44,8 @@ if [ -z "$ARTEMIS_INSTANCE" ] ; then
ARTEMIS_INSTANCE=`cd "$ARTEMIS_INSTANCE/.." && pwd`
fi
+HAWTIO_ROLE="NO_HAWTIO_ROLE"
+
# Load Profile Data
ARTEMIS_INSTANCE_ETC='${artemis.instance.etc}'
. "$ARTEMIS_INSTANCE_ETC/artemis.profile"
diff --git
a/artemis-cli/src/main/resources/org/apache/activemq/artemis/cli/commands/etc/artemis.profile
b/artemis-cli/src/main/resources/org/apache/activemq/artemis/cli/commands/etc/artemis.profile
index a5b4c96..4e31518 100644
---
a/artemis-cli/src/main/resources/org/apache/activemq/artemis/cli/commands/etc/artemis.profile
+++
b/artemis-cli/src/main/resources/org/apache/activemq/artemis/cli/commands/etc/artemis.profile
@@ -31,6 +31,8 @@ ARTEMIS_INSTANCE_ETC_URI='${artemis.instance.etc.uri}'
#ARTEMIS_CLUSTER_PROPS="-Dactivemq.remoting.default.port=61617
-Dactivemq.remoting.amqp.port=5673 -Dactivemq.remoting.stomp.port=61614
-Dactivemq.remoting.hornetq.port=5446"
# Hawtio Properties
+# HAWTIO_ROLE define the user role or roles required to be able to login to
the console. Multiple roles to allow can
+# be separated by a comma. Set to '*' or an empty value to disable role
checking when Hawtio authenticates a user.
HAWTIO_ROLE='${role}'
# Java Opts