Skip to content

Escape Dollar-Sign in BasicAuth Password #2

@radiomix

Description

@radiomix

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions