Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
See rabbitmq/rabbitmq-server#11999 for full context.
Starting with RabbitMQ 4.0, anonymous login should be disabled in production.
anonymous_login_user
andanonymous_login_pass
both default toguest
in RabbitMQ 4.0. The rabbitmq/cluster-operator complies already with best practices by provisioning a newdefault_user
anddefault_pass
instead of using RabbitMQ's defaultguest
user.Instead of having RabbitMQ advertise the ANONYMOUS mechanism, this commit disables anonymous logins.
Because
anonymous_login_user
is a new RabbitMQ 4.0rabbitmq.conf
setting and the cluster-operator doesn't know what RabbitMQ version it deploys and settingrabbitmq.conf
keyanonymous_login_user
in RabbitMQ 3.13 would make booting RabbitMQ fail, this commit modifies theauth_mechanisms.*
settings inrabbitmq.conf
:If the user provided a conscious choice on what
auth_mechanisms
RabbitMQ should advertise, this configuration will be respected. If the user did not configureauth_mechanisms
, the cluster-operator will disable ANONYMOUS logins by setting only: