rabbitmq-plugins always executing as root #15045
-
Describe the bugHello I am currently using RabbitMQ 4.1.0 on Rocky8. One thing I am noticing is that all cli tools except the rabbitmq-plugins execute as the user rabbitmq. rabbitmq-plugins seems to be running as root. One way to check is to add a LOG trace on port 25672 using iptables. For example:
Then run a rabbitmq-plugins command:
The packets coming to port 25672 have uid=0 and gid=0 Any other tool like rabbitmqctl shows the packets with uid=rabbitmq Is this an expected behavior of rabbitmq-plugins? Thanks Reproduction steps
Expected behaviorrabbitmq-plugins should run as user rabbitmq Additional contextThe reason it is an issue for me is because I have iptables rules on OUTPUT chain to allow only rabbitmq user to connect to port 25672 and reject all other user including root. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
@arshad01 please never again file issues for questions.
|
Beta Was this translation helpful? Give feedback.
@arshad01 please never again file issues for questions.
rabbitmq-pluginsdoes not have to run asrootbut RPM and Debian packages can be more opinionated.rabbitmq-pluginsneeds to modify local files, and depending on how RabbitMQ was installed, the package may choose to use higher privileges.