this post was submitted on 06 May 2024
11 points (78.9% liked)

Selfhosted

40246 readers
1148 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 1 year ago
MODERATORS
 

I have forgot the password to the dashboard and want to change it.

How do I go about to change it? I tried to hash another in the terminal using apache-utils2, then to paste (the new password) in "the middleware.traefik-auth.basic auth.users=" Section of the compose file. Didn't work.

I restarted the container to no avail, even removed the container and spun up another. Nothing worked.

Is it really that hard to change password in traefik?

Any hint or advise is welcome, although I really want to access the dashboard via https.

Thanks!

top 2 comments
sorted by: hot top controversial new old
[–] cereals@lemmy.ml 4 points 6 months ago (1 children)

You always need to recreate the container when you change something in the compose file. Did you double all $ signs in the hashed string?

[–] zingo@lemmy.ca 1 points 6 months ago* (last edited 6 months ago)

Yeah they are all double $$ and I recreated the container several times. The only thing that was changed in the compose file was the hash string - user:password.

I read from another older post that sometimes you need to clear all cookies in the browser. Did that also. Didn't work.

I did however do the DNS challange again as I fucked up the older working config. The cert is different now but points to the same domain and subdomain. Can it be that the browser or traefik are still "remembering" the old cert, with other credentials?

Just grasping at straws here. I'm at a loss.

I can't find anything online, traefik website or on YouTube about changing passwords. Only create one on a new install.

Should be a walk in the park to change a password. Wtf.

Edit: found the solution here: community.traefik.io/t/dashboard-with-basic-auth-but-cant-login-in-anyway/13235

I was using a wrong hash command in the terminal.

SOLVED!