Skip to content

Settings: a Change password form (current, new, confirm) instead of editing the raw password field #4090

Open

Description

@pithead-developer

What's the problem

Owner request (2026-11-13): a "Change password" option in Settings.

Today the only way to change the dashboard password is to edit the raw dashboard.auth.password field in the configuration editor, then confirm a warning:

  • the warning text is at dashboard/mining_dashboard/web/static/config/configwarnings.mjs:16, origin/develop;
  • it says other sessions are logged out, a typo locks this session out, and on the appliance the password is also the console root login.

There is no current-password check, no confirmation field and no strength guidance.

What it impacts

  • Every Pithead with a dashboard password: appliance and DIY.
  • Appliance owners: a typo locks them out of both the dashboard and the console. They have no SSH.

How I found it

How important is it

Medium. It is user-facing, and it removes a lockout risk on the appliance. Planned for 2.1.0, after #4089 lands.

Acceptance criteria

  • Where: Settings has a "Change password" action that opens a short form asking for the current password, the new password and the new password again.
  • Validation:
    • a wrong current password is refused;
    • mismatched new passwords are refused;
    • a minimum length or strength is enforced, with a clear message;
    • the new password cannot equal the old one.
  • Effect:
    • the change is applied through the existing config apply path;
    • the actor and outcome are written to the audit log;
    • every other session ends;
    • this browser stays signed in with the new password, so there is no immediate lockout.
  • Appliance: the form says plainly that the password is also the console root login. The console login changes with it, as today.
  • Raw field: the raw dashboard.auth.password field leaves the everyday Configuration view (or links to this form). The advanced JSON view still works.
  • Tests: a wrong current password, a mismatch, a weak password, a successful change ending other sessions, and the audit entry.

Possible solutions

Activity

  1. added this to the v2.1.0 milestone on Nov 13, 2026
  2. added
    enhancement
    dashboard
    security
    on Nov 13, 2026
  3. pithead-developer commented on Nov 15, 2026

    @pithead-developer
    ContributorAuthor

    Blocked on #3946. Blocked: #4090 needs #4089's session foundation (PR #4100: web/auth.py, service/auth_sessions.py, login page), merged into develop 2026-11-14 but absent from this issue's base develop-v2.1.0 (merge commit 1799cdd1f90e615429ff4dfc4572a763e1a2ad1 is not an ancestor of origin/develop-v2.1.0; the gap is 27 commits). The acceptance criteria build directly on that code — reuse #4089 session invalidation, every other session ends, this browser stays signed in — none of which exists under develop-v2.1.0's Caddy basic auth (X-Auth-User, no sessions); PR #4100 also already edits configwarnings.mjs and header.mjs, the files this form touches, so implementing on the stale base would duplicate the work and conflict with the imminent forward merge, and the issue itself plans this "after #4089 lands". Finished: full recon (issue, #4089/#4100, base ancestry, no existing PR, forward-merge tracker located); nothing was edited and the claim branch stays at base. Unblocks when forward-merge pithead#3946 (develop into develop-v2.1.0) lands and the base gains web/auth.py and auth_sessions.py; then this session implements the form, the authenticated endpoint with current-password/mismatch/strength/reuse validation, the config-apply path, the audit entry, the session-cutover behavior, and the tests.

    The runner resumes this issue when that one closes.

  4. added
    blocked
    on Nov 15, 2026
  5. removed
    blocked
    on Nov 16, 2026
  6. pithead-developer commented on Nov 16, 2026

    @pithead-developer
    ContributorAuthor

    Blocked on #4175. Still blocked, on a new tracker: #3946 closed via forward-merge #4034, which landed 2026-11-12 — two days BEFORE #4100 (the #4089 session foundation this issue builds on: web/auth.py, service/auth_sessions.py) merged into develop on 2026-11-14. Re-verified after a fresh fetch: merge commit 1799cdd1f90e615429ff4dfc4572a763e1a2ad1 is still not an ancestor of origin/develop-v2.1.0, git ls-tree shows neither web/auth.py nor service/auth_sessions.py on the base, and develop is 39 commits ahead. The acceptance criteria (reuse #4089 session invalidation, every other session ends, this browser stays signed in with the new password) therefore remain impossible on develop-v2.1.0, which still has only Caddy basic auth with no sessions, and the forward merge already touches configwarnings.mjs and header.mjs, the files this form must edit. The next forward merge is owned by open issue pithead#4175 "Forward-merge develop into develop-v2.1.0 after the 2.0.4 cut"; its acceptance criterion (git log origin/develop ^origin/develop-v2.1.0 empty) guarantees #4100 lands in this base when it closes, so this session resumes then. Note for the owner of #4175: it offers "Merge earlier, before the cut, if conflicts on develop-v2.1.0 PRs start to cost real time" — #4090 is exactly such a PR (its whole design sits on #4100's code), so an early forward merge is the fastest unblock. Finished: resumed, re-verified base ancestry and file absence, no existing PR; nothing edited, the claim branch is untouched. Unblocks when #4175 closes; then this session implements the form, the authenticated endpoint with current-password/mismatch/strength/reuse validation, the config-apply path, the audit entry, the session cutover, and the tests.

    The runner resumes this issue when that one closes.

  7. added
    blocked
    on Nov 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    blockeddashboardenhancementsecurity

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions