是否可以在 WebSphere Liberty 中使用通配符作为队列许可权?



WebSphere Liberty 中的嵌入式消息传递服务器支持对队列进行访问控制。在server.xml中,可以在消息引擎部分下添加以下结构:

<messagingSecurity>
<role name="queueAccess">
<group name="admin"></group>
<queuePermission queueRef="myQueues.queue_1">
<action>ALL</action>
</queuePermission>
</role>
</messagingSecurity>

这将授予管理员用户对队列myQueues.queue_1的访问权限,但是,如果我想授予对多个队列myQueues.queue_1myQueues.queue_n的访问权限,似乎我必须为每个队列创建一个部分。

我已经尝试了几种通配符,例如myQueues*或regexpmyQueues。我一直找不到任何关于使用通配符的文档,所以有人可以确认或否认在这种情况下是否可以使用通配符吗?

从我所看到的(深入研究 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.

也许对自由社区有什么暗示;)

最新更新