emqx-docker icon indicating copy to clipboard operation
emqx-docker copied to clipboard

Cannot set the admin's password by using EMQX_ env

Open srdgame opened this issue 2 years ago • 1 comments

Our system creates new EMQX node dynamically, but the dashboard's admin password cannot be initialized via docker ENV. That's makes our system has security issue!!

srdgame avatar Oct 26 '23 08:10 srdgame

EMQX 5.3

srdgame avatar Oct 26 '23 08:10 srdgame

@srdgame

docker run -e EMQX_DASHBOARD__DEFAULT_PASSWORD=foobar -p 18083:18083 emqx/emqx:5.8.4
WARNING: Default (insecure) Erlang cookie is in use.
WARNING: Configure node.cookie in /opt/emqx/etc/emqx.conf or override from environment variable EMQX_NODE__COOKIE
WARNING: NOTE: Use the same cookie for all nodes in the cluster.
EMQX_DASHBOARD__DEFAULT_PASSWORD [dashboard.default_password]: ******
EMQX_RPC__PORT_DISCOVERY [rpc.port_discovery]: manual
EMQX_NODE__NAME [node.name]: [email protected]
Listener tcp:default on 0.0.0.0:1883 started.
Listener ssl:default on 0.0.0.0:8883 started.
Listener ws:default on 0.0.0.0:8083 started.
Listener wss:default on 0.0.0.0:8084 started.
Listener http:dashboard on :18083 started.
EMQX 5.8.4 is running now!

id avatar Feb 05 '25 08:02 id