You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@artemis.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2026/03/03 22:02:00 UTC

[jira] [Work logged] (ARTEMIS-5909) Security settings matches do not respect wildcard configuration for mops prefix

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

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

                Author: ASF GitHub Bot
            Created on: 03/Mar/26 22:01
            Start Date: 03/Mar/26 22:01
    Worklog Time Spent: 10m 
      Work Description: tabish121 merged PR #6248:
URL: https://github.com/apache/artemis/pull/6248




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

    Worklog Id:     (was: 1007758)
    Time Spent: 20m  (was: 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
>             Fix For: 2.53.0
>
>          Time Spent: 20m
>  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: issues-unsubscribe@artemis.apache.org
For additional commands, e-mail: issues-help@artemis.apache.org