在RabbitMQ中的非管理员用户权限

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

Non-administrative user rights in RabbitMQ

问题

我有点困惑这个表格,我需要创建一个具有创建和管理队列权限的用户,但我无法确定需要设置哪些权限。

我不想使用像这样的规则:

rabbitmqctl set_permissions -p "custom-vhost" "username" ".*" ".*" ".*"

我需要设置哪些权限,以便用户不是管理员,但同时可以创建和管理队列?

英文:

I'm a little confused by this table, I need to create a user with rights to create and manage queues, but I can't figure out what rights I need to set

I don't want to use a rule like:

rabbitmqctl set_permissions -p "custom-vhost" "username" ". *" ".*" ".*"

What rights do I need to set the user so that he is not an administrator, but at the same time can create and manage queues?

答案1

得分: 0

在RabbitMQ中,“Administrator”概念仅存在于管理插件(HTTP API),您可以通过HTTP网站或rabbitmqadmin使用它:

管理界面需要进行身份验证和授权,类似于RabbitMQ要求连接的客户端进行身份验证。除了成功的身份验证之外,管理界面访问还受用户标签的控制。这些标签是使用rabbitmqctl进行管理的。新创建的用户默认没有任何标签。

有关标签的描述,请参阅链接。

因此,如果您使用rabbitmqctl set_permissions -p "custom-vhost" "username" ".*" ".*" ".*"为用户授予权限,它将不会成为“管理员”,因为它不会被标记为管理员。它只会具有创建任何队列和交换以及从/到它们的任何队列读取/写入消息的权限。

英文:

In RabbitMQ, the concept of "Administrator" only exists in the management plugin (the HTTP API, which you can use through the HTTP website or rabbitmqadmin):

> The management UI requires authentication and authorisation, much like RabbitMQ requires it from connecting clients. In addition to successful authentication, management UI access is controlled by user tags. The tags are managed using rabbitmqctl. Newly created users do not have any tags set on them by default.

See the link for the description of the tags.

As such, if you give permissions to an user with rabbitmqctl set_permissions -p "custom-vhost" "username" ". *" ".*" ".*", it won't be an "administrator", since it won't be tagged as such. It will just have perissions to create any queue and exchange, and to read/write message from/to any of them.

huangapple
  • 本文由 发表于 2023年6月29日 01:41:18
  • 转载请务必保留本文链接:https://go.coder-hub.com/76575544.html
匿名

发表评论

匿名网友

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

确定