[ 
https://issues.apache.org/jira/browse/ARTEMIS-5909?focusedWorklogId=1006924&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-1006924
 ]

ASF GitHub Bot logged work on ARTEMIS-5909:
-------------------------------------------

                Author: ASF GitHub Bot
            Created on: 24/Feb/26 16:35
            Start Date: 24/Feb/26 16:35
    Worklog Time Spent: 10m 
      Work Description: gtully opened a new pull request, #6248:
URL: https://github.com/apache/artemis/pull/6248

   …me to mops security settings match address




Issue Time Tracking
-------------------

            Worklog Id:     (was: 1006924)
    Remaining Estimate: 0h
            Time Spent: 10m

> Security settings matches do not respect wildcard configuration for mops 
> prefix
> -------------------------------------------------------------------------------
>
>                 Key: ARTEMIS-5909
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-5909
>             Project: Artemis
>          Issue Type: Dependency upgrade
>            Reporter: Grzegorz Grzybek
>            Assignee: Gary Tully
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> According to [3. Customizing the 
> Syntax|https://artemis.apache.org/components/artemis/documentation/latest/wildcard-syntax.html#customizing-the-syntax],
>  we can change wildcard configuration in {{broker.xml}} which by default is:
> {code:xml}
> <wildcard-addresses>
>    <routing-enabled>true</routing-enabled>
>    <delimiter>.</delimiter>
>    <any-words>#</any-words>
>    <single-word>*</single-word>
> </wildcard-addresses>
> {code}
> {{org.apache.activemq.artemis.core.settings.impl.HierarchicalObjectRepository.MatchComparator#MatchComparator}},
>  when checking the rules, uses:
> {code:java}
> this.quotedDelimiter = 
> Pattern.quote(wildcardConfiguration.getDelimiterString());
> {code}
> However, 
> {{org.apache.activemq.artemis.core.server.management.ArtemisRbacInvocationHandler#addressFrom()}}
>  always uses dots, even if it uses customized:
> {code:java}
> rbacPrefix = 
> SimpleString.of(activeMQServer.getConfiguration().getManagementRbacPrefix())
> {code}
> here's the ObjectName → address converter in 
> {{ArtemisRbacInvocationHandler#addressFrom()}}:
> {code:java}
> ...
> if (type != null) {
>    rbacAddress = rbacAddress.concat('.').concat(type);
> }
> if (component != null) {
>    rbacAddress = rbacAddress.concat('.').concat(component);
> }
> if (name != null) {
>    rbacAddress = rbacAddress.concat('.').concat(name);
> }
> if (methodName != null) {
>    rbacAddress = rbacAddress.concat('.').concat(methodName);
> }
> ...
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to