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

If I want to set a fixed account password automatically when starting, is there any way? #8714

Open
bbhxwl opened this issue Aug 12, 2022 · 9 comments
Labels

Comments

@bbhxwl
Copy link

bbhxwl commented Aug 12, 2022

If I want to set a fixed account password automatically when starting, is there any way?

@thalesmg
Copy link
Contributor

You can change the default password for the dashboard user before starting the node for the first time:

https://www.emqx.io/docs/en/v5.0/admin/api.html#change-default-user-password

@bbhxwl
Copy link
Author

bbhxwl commented Aug 13, 2022

You can change the default password for the dashboard user before starting the node for the first time:

https://www.emqx.io/docs/en/v5.0/admin/api.html#change-default-user-password

Is there a way to default one when starting? I mean, the default mqtt ClientID and account password

@zmstone
Copy link
Member

zmstone commented Aug 13, 2022

Hi.
There is so far no way to bootstrap builtin database with username passwords.
Marking this as a feature request.

@AaronAutomation
Copy link

Hi. There is so far no way to bootstrap builtin database with username passwords. Marking this as a feature request.

Can you not mount acl.conf?

@zmstone
Copy link
Member

zmstone commented Aug 18, 2022

Hi. There is so far no way to bootstrap builtin database with username passwords. Marking this as a feature request.

Can you not mount acl.conf?

acl.conf is great for ACL (authorization), but not for authentication.

@zmstone
Copy link
Member

zmstone commented Feb 12, 2024

similar issue/discussion

We do not have plan to support MQTT credentials bootstrapping from environment variables (or a file).
In v5.5, there is a REST API to import users.

And if you call the API to list it first, you can write a bootstrap script to only import once (when list returns empty)

@zmstone
Copy link
Member

zmstone commented Feb 12, 2024

After some discussion in the team, we might be able to provide a bootstrap from file option.
Internal ref: ER-248

@id
Copy link
Collaborator

id commented Feb 13, 2024

One more related issue: #9148

@mvanhil
Copy link

mvanhil commented Jun 17, 2024

Any idea when this would be implemented? :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants