Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support to override default_{user,pass,vhost} and the Erlang cookie from the environment #3299

Commits on Aug 11, 2021

  1. rabbit_env: Add $RABBITMQ_DEFAULT_{USER,PASS,VHOST} and $RABBITMQ_ERL…

    …ANG_COOKIE vars
    
    Those environment variables are unset by default. The default values are
    set in the `rabbit` application environment and can be configured in the
    configuration file. However, the environment variables will take
    precedence over them respectively if they are set.
    dumbbell committed Aug 11, 2021
    Configuration menu
    Copy the full SHA
    33c6cbf View commit details
    Browse the repository at this point in the history
  2. Add support for $RABBITMQ_DEFAULT_{USER,PASS,VHOST} env vars

    They are the equivalent of the `default_{user,pass,vhost}` configuration
    settings. Each set environment variable will take precedence over its
    configuration file counterpart.
    
    Fixes docker-library/rabbitmq#508.
    dumbbell committed Aug 11, 2021
    Configuration menu
    Copy the full SHA
    46b8321 View commit details
    Browse the repository at this point in the history
  3. Add support for $RABBITMQ_ERLANG_COOKIE env var

    It is the equivalent of the content of the Erlang cookie file. Note this
    variable IS the cookie value, NOT the path to a cookie file.
    
    If it is set, it will take precedence over the content of the Erlang
    cookie file.
    
    Fixes docker-library/rabbitmq#508.
    dumbbell committed Aug 11, 2021
    Configuration menu
    Copy the full SHA
    bd39027 View commit details
    Browse the repository at this point in the history
  4. Log a warning when Erlang cookie is overriden using an env variable

    as it can be really difficult to troubleshoot such cookie changes
    michaelklishin committed Aug 11, 2021
    Configuration menu
    Copy the full SHA
    81780dc View commit details
    Browse the repository at this point in the history