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

Selfhosted

60758 readers
167 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:

Detailed Rules Post

  1. Be civil.

  2. No spam.

  3. Posts are to be related to self-hosting.

  4. Don't duplicate the full text of your blog or readme if you're providing a link.

  5. Submission headline should match the article title.

  6. No trolling.

  7. Promotion posts require active participation, with an account that is at least 30 days old. F/LOSS without a paywall has exceptions, with requirements. See the rules link for details. Tags [CBH] or [AIP] are required, see the links in Rule 8 for details.

  8. AI-related discussions and AI-involved promotional posts have additional requirements for tagging, as noted in Rule 7 and the AI & Promotional Post Expanded Rules post, and find example disclosures here.

Resources:

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

Questions? DM the mods!

founded 3 years 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!

you are viewing a single comment's thread
view the rest of the comments
[โ€“] cereals@lemmy.ml 4 points 2 years 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 2 years ago* (last edited 2 years 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!