是否可以在 WebSphere Liberty 中对队列权限使用通配符?
Is it possible to use wildcards for queue permissions in WebSphere Liberty?
WebSphere Liberty 中的嵌入式消息传递服务器支持对队列的访问控制。在server.xml
中,可以在messagingEngine部分下添加如下结构:
<messagingSecurity>
<role name="queueAccess">
<group name="admin"></group>
<queuePermission queueRef="myQueues.queue_1">
<action>ALL</action>
</queuePermission>
</role>
</messagingSecurity>
这将授予管理员用户对队列 myQueues.queue_1
的访问权限,但是,如果我想向 myQueues.queue_n
授予对多个队列 myQueues.queue_1
的访问权限,看来我必须创建一个每个队列的部分。
我尝试了几个通配符,例如 myQueues* 或正则表达式 myQueues.* - 但没有成功。我一直找不到任何关于使用通配符的文档,所以有人可以确认或否认在这种情况下是否可以使用通配符吗?
据我所知(深入研究 openliberty 的代码),它没有通配符处理程序。
我知道 jboss 使用此通配符进行 jms 安全处理:
. (a single period) Denotes the space between words in a wildcard expression.
# (a pound or hash symbol) Matches any sequence of zero or more words.
* (an asterisk) Matches a single word.
也许对自由社区有一些暗示 ;)
WebSphere Liberty 中的嵌入式消息传递服务器支持对队列的访问控制。在server.xml
中,可以在messagingEngine部分下添加如下结构:
<messagingSecurity>
<role name="queueAccess">
<group name="admin"></group>
<queuePermission queueRef="myQueues.queue_1">
<action>ALL</action>
</queuePermission>
</role>
</messagingSecurity>
这将授予管理员用户对队列 myQueues.queue_1
的访问权限,但是,如果我想向 myQueues.queue_n
授予对多个队列 myQueues.queue_1
的访问权限,看来我必须创建一个每个队列的部分。
我尝试了几个通配符,例如 myQueues* 或正则表达式 myQueues.* - 但没有成功。我一直找不到任何关于使用通配符的文档,所以有人可以确认或否认在这种情况下是否可以使用通配符吗?
据我所知(深入研究 openliberty 的代码),它没有通配符处理程序。
我知道 jboss 使用此通配符进行 jms 安全处理:
. (a single period) Denotes the space between words in a wildcard expression.
# (a pound or hash symbol) Matches any sequence of zero or more words.
* (an asterisk) Matches a single word.
也许对自由社区有一些暗示 ;)