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

Escape Dollar-Sign in BasicAuth Password #2

Open
radiomix opened this issue Mar 12, 2024 · 0 comments
Open

Escape Dollar-Sign in BasicAuth Password #2

radiomix opened this issue Mar 12, 2024 · 0 comments

Comments

@radiomix
Copy link

Escape $ Dollar-signs in BasicAuth Password

Context

3. To generate a new `username:password`, use `htpasswd -nb user pass`, then copy user to `DASHBOARD_USER` and pass to `DASHBOARD_PASSWORD` in .env file
describes how to generate a BasicAuth password. The above method does not work as Traefik basicuth explains:

# Note: when used in docker-compose.yml all dollar signs in the hash need to be doubled for escaping.
# To create user:password pair, it's possible to use this command:
# echo $(htpasswd -nB user) | sed -e s/\\$/\\$\\$/g

Request to update

  • Readme.md with the above note on escaping the $ dollar signs in the password by adding the echo-sed.
  • env.example with a password generated by: echo $(htpasswd -nb user pass) | sed -e s/\$/\$\$/g
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

No branches or pull requests

1 participant