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

Configurable default user & password #919

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

viktorerlingsson
Copy link
Member

WHAT is this pull request doing?

Makes it possible to configure default user and password. Takes a hashed value for password.

Also adds api endpoint /api/auth/hash_password/:password and lavinmqctl command lavinmqctl hash_password password to hash passwords.

Also changes guest-only-loopback to default-user-only-loopback, since the default user no longer has to be guest.

Fixes #877

Configuration

Values can be configured by environment variables, in the config file or by command line arguments.
Env

LAVINMQ_DEFAULT_USER=USER
LAVINMQ_DEFAULT_PASSWORD=PASSWORD

Config file

[main]
default_user=USER
default_password=PASSWORD

Command line
--default-user=USER --default-password=PASSWORD

HOW can this pull request be tested?

Run specs.

@viktorerlingsson viktorerlingsson requested a review from a team as a code owner January 22, 2025 10:46
…lt user and password is set after specs have run, remove spec for env variables since it does not work
…t default user and password is set after specs have run, remove spec for env variables since it does not work
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Default User and Password from Environment
1 participant