default_user combined with env variable interpolation does not have an effect #14882
-
Community Support Policy
RabbitMQ version used4.1.0 Erlang version used27.3.x Operating system (distribution) usedWindows, Docker Desktop How is RabbitMQ deployed?Community Docker image Logs from node 1 (with sensitive values edited out)See https://www.rabbitmq.com/docs/logging to learn how to collect logs rabbitmq.confSee https://www.rabbitmq.com/docs/configure#config-location to learn how to find rabbitmq.conf file location note: this is what I see in container, /etc/rabbitmq/rabbitmq.conf Steps to deploy RabbitMQ clusteruse docker-compose to build the custom rabbitmq container Steps to reproduce the behavior in questioncreate the rabbitmq container What problem are you trying to solve?hi, I enable a plugin so I have a minor custom rabbitmq build. below is a dockerfile dockerfile rabbitmq conf file copied above dockerfile definitions json docker compose file to build the image when I enable the custom rabbitmq.conf file copying in dockerfile then I can never login with the default user/pwd provided, neither with guest/guest if you really need a repo then it is in https://github.com/gungorenu/talepreter2-public/tree/main/Talepreter but I am trying to upgrade rabbitmq. it is same behaviour with old/new versions thanks |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
Your definitions file almost certainly contains configuration changing the default user/password, which is overriding the environment variables. |
Beta Was this translation helpful? Give feedback.
-
|
@gungorenu you have two meaningful flaws in your configuration. As @MirahImage has explained, definition import combined with default user defined in Another flaw is that you use a configuration key that's years out of date ( It may not be obvious but the Finally, I will quote the aforementioned doc section on seeding users: In other words, existing users won't be overridden by those |
Beta Was this translation helpful? Give feedback.
Your definitions file almost certainly contains configuration changing the default user/password, which is overriding the environment variables.