如何根据用户控制deleteAddress选项卡的可见性

huangapple go评论54阅读模式
英文:

How to control visibility of the deleteAddress tab per user

问题

management.xml中,这个过滤器不起作用:

<match domain="org.apache.activemq.artemis" key="address=myadress1">
   <access method="delete*" roles="myrole1"/>

场景:

当用户在控制台树中单击myadress时,将显示deleteAddress选项卡,而对于其他地址则不会。

结果:

deleteAddress选项卡不显示。

我已阅读了Artemis和JBoss的文档。

英文:

In management.xml this filter does not work:

<match domain="org.apache.activemq.artemis" key="address=myadress1">
   <access method="delete*" roles="myrole1"/>

Scenario:

When the user clicks on myadress in console tree => the tab deleteAddress shows. For other addresses not.

Outcome:

The deleteAddress tab does not show.

I have read Artemis and JBoss documentation.

答案1

得分: 1

"Delete Address"选项卡的显示并不表示用户是否实际上可以删除相关地址。所有选项卡都会显示,而不考虑安全权限,因为Web控制台本身不了解授权细节。安全性是在执行操作(例如删除地址)时在代理上执行的。如果用户未被授权执行该操作,那么当执行该操作时他们将收到错误信息。

英文:

The display of the "Delete Address" tab is not an indication of whether or not the user can actually delete the address in question. All tabs are displayed regardless of security permission because the web console itself has no knowledge about authorization details. Security is enforced on the broker when the operation (e.g. delete address) is executed. If the user is not authorized for that operation then they will receive an error when that operation is executed.

huangapple
  • 本文由 发表于 2023年4月4日 13:05:16
  • 转载请务必保留本文链接:https://go.coder-hub.com/75925680.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定