-
Notifications
You must be signed in to change notification settings - Fork 4k
Closed
Description
Related issue:
- RABBITMQ_DEFAULT_USER/PASS environment variables not taken into account docker-library/rabbitmq#150
- RABBITMQ_DEFAULT_USER/PASS environment variables not taken into account docker-library/rabbitmq#150 (comment)
Reproduction steps:
- Use the configuration and defs file from here. Edit
rabbitmq.confso that the path to the definitions file matches your environment. Notice that the definitions file does not define any users. - Start a broker. I used
main:make RABBITMQ_CONFIG_FILE="/home/lbakken/development/lukebakken/docker-library_rabbitmq-150/rabbitmq.conf" PLUGINS='rabbitmq_management rabbitmq_top' RABBITMQ_DEFAULT_USER=foobar RABBITMQ_DEFAULT_PASS=bazbat run-broker - Note that neither the
foobarnor theguestuser is created:lbakken@shostakovich ~/development/rabbitmq/rabbitmq-server (main $=) $ ./sbin/rabbitmqctl authenticate_user foobar bazbat Authenticating user "foobar" ... Error: Error: failed to authenticate user "foobar" user 'foobar' - invalid credentials lbakken@shostakovich ~/development/rabbitmq/rabbitmq-server (main $=) $ ./sbin/rabbitmqctl authenticate_user guest guest Authenticating user "guest" ... Error: Error: failed to authenticate user "guest" user 'guest' - invalid credentials
What does work:
- Using just the env vars:
docker run --pull always --rm --publish 15672:15672 \ --env RABBITMQ_DEFAULT_USER=foobar --env RABBITMQ_DEFAULT_PASS=bazbat --name rmq-user-test rabbitmq:3-management $ docker exec rmq-user-test rabbitmqctl authenticate_user foobar bazbat Authenticating user "foobar" ... Success - Of course, creating users via the definitions file works.
Metadata
Metadata
Assignees
Labels
No labels