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

EMQX docker environment variables of dashboard default username and password ignores # and its following characters. #12231

Closed
Yavathar opened this issue Dec 26, 2023 · 2 comments
Labels

Comments

@Yavathar
Copy link

What happened?

I set my emqx container's default dashboard password to password12#45 when I ran emqx.

$ docker run -d --name emqx -p 18083:18083 -e EMQX_DASHBOARD__DEFAULT_PASSWORD="password12#45" emqx/emqx

The environment variable had a correct value in the container.

$ docker exec emqx env | grep PASSWORD
EMQX_DASHBOARD__DEFAULT_PASSWORD=password12#45

When I tried to log into emqx dashboard, http://localhost:18083, with the username admin and the password password12#45, it failed.

image

But, if I tries it with the password password12, which I remove # and its following letters 45, it succeeds.

image

The environment variable EMQX_DASHBOARD__DEFAULT_USERNAME also has the same issue.

What did you expect to happen?

I expected to set emqx dashboard's default password to password12#45.

How can we reproduce it (as minimally and precisely as possible)?

No response

Anything else we need to know?

No response

EMQX version

emqx@c7b342cd0d06:/opt/emqx$ ./bin/emqx_ctl broker
sysdescr  : EMQX
version   : 5.4.0
datetime  : 2023-12-26T06:13:58.860957295+00:00
uptime    : 9 minutes, 1 seconds
emqx@c7b342cd0d06:/opt/emqx$```

</details>


### OS version

<details>

```console
Sonoma 14.1.2 on Macbook Pro 16-inch, 2029

Log files

@Yavathar Yavathar added the BUG label Dec 26, 2023
@zhongwencool
Copy link
Contributor

# is is explain for comment in hocon config file.
try to use -e EMQX_DASHBOARD__DEFAULT_PASSWORD="\"password12#45\""

@Yavathar
Copy link
Author

# is is explain for comment in hocon config file. try to use -e EMQX_DASHBOARD__DEFAULT_PASSWORD="\"password12#45\""

It works!
Many thanks.

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

2 participants