You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by an...@apache.org on 2017/12/20 08:23:00 UTC
[2/2] activemq-artemis git commit: [ARTEMIS-1567] Inject role into
management config
[ARTEMIS-1567] Inject role into management config
Project: http://git-wip-us.apache.org/repos/asf/activemq-artemis/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq-artemis/commit/d01844c1
Tree: http://git-wip-us.apache.org/repos/asf/activemq-artemis/tree/d01844c1
Diff: http://git-wip-us.apache.org/repos/asf/activemq-artemis/diff/d01844c1
Branch: refs/heads/master
Commit: d01844c128e4aad3766c9118ff94d0a513dace61
Parents: 7514e91
Author: Martyn Taylor <mt...@redhat.com>
Authored: Tue Dec 19 14:27:55 2017 +0000
Committer: Andy Taylor <an...@gmail.com>
Committed: Wed Dec 20 08:22:18 2017 +0000
----------------------------------------------------------------------
.../artemis/cli/commands/etc/management.xml | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/d01844c1/artemis-cli/src/main/resources/org/apache/activemq/artemis/cli/commands/etc/management.xml
----------------------------------------------------------------------
diff --git a/artemis-cli/src/main/resources/org/apache/activemq/artemis/cli/commands/etc/management.xml b/artemis-cli/src/main/resources/org/apache/activemq/artemis/cli/commands/etc/management.xml
index 6ca565d..7be8159 100644
--- a/artemis-cli/src/main/resources/org/apache/activemq/artemis/cli/commands/etc/management.xml
+++ b/artemis-cli/src/main/resources/org/apache/activemq/artemis/cli/commands/etc/management.xml
@@ -22,19 +22,19 @@
<entry domain="hawtio"/>
</whitelist>
<default-access>
- <access method="list*" roles="view,update,amq"/>
- <access method="get*" roles="view,update,amq"/>
- <access method="is*" roles="view,update,amq"/>
- <access method="set*" roles="update,amq"/>
- <access method="*" roles="amq"/>
+ <access method="list*" roles="${role}"/>
+ <access method="get*" roles="${role}"/>
+ <access method="is*" roles="${role}"/>
+ <access method="set*" roles="${role}"/>
+ <access method="*" roles="${role}"/>
</default-access>
<role-access>
<match domain="org.apache.activemq.artemis">
- <access method="list*" roles="view,update,amq"/>
- <access method="get*" roles="view,update,amq"/>
- <access method="is*" roles="view,update,amq"/>
- <access method="set*" roles="update,amq"/>
- <access method="*" roles="amq"/>
+ <access method="list*" roles="${role}"/>
+ <access method="get*" roles="${role}"/>
+ <access method="is*" roles="${role}"/>
+ <access method="set*" roles="${role}"/>
+ <access method="*" roles="${role}"/>
</match>
<!--example of how to configure a specific object-->
<!--<match domain="org.apache.activemq.artemis" key="subcomponent=queues">