Skip to content

Turn the dashboard settings editor on for DIY installs whenever a login is set #3579

Done

Description

@pithead-developer

What's the problem

Part of #3557. Ruling 1 (2026-10-21): DIY configuration must be as easy as the appliance, the settings editor is on for DIY whenever a login is set, and all configuration happens through the dashboard. Today the DIY control channel is off: dashboard.control.enabled defaults to false and only the appliance first-boot path turns it on, through apply_appliance_defaults (lib/pithead/27-defaults-and-config-validation.sh:10-30, called from 12-firstboot-wizard.sh:81, 331). On DIY the Configuration and Backup tabs show only a notice (web/static/config/configview.mjs:370-376), so a non-technical user must edit config.json and run ./pithead apply.

The same switch also enables the Backup tab, diagnostics, worker edit and the one-click upgrade (web/static/app/header.mjs:28-40, components.mjs:106,121, workers/workerview.mjs:239). It installs a root systemd path unit that runs apply -y (lib/pithead/50-control-runner-provisioning.sh:60-, no-op without systemd).

Proposed: dashboard.control.enabled absent means true when dashboard.auth.password is non-empty and not (onion enabled with client_auth false, which the parser already refuses, 28-parse-and-validate-config.sh:440); an explicit value always wins. The rule moves out of the appliance-only function into the shared default.

The DIY gate is the appliance gate, with no DIY-only restriction. Today nothing is refused except the retired ssh paths (CONTROL_DASHBOARD_NEVER_PATHS='ssh'); payout addresses, view and spend keys, node credentials, the Telegram token and the dashboard password change behind the existing typed APPLY, approval envelope and payout-suffix confirmation (#2367). A DIY-only host-only list was considered and rejected: it would send a DIY user back to the CLI to change a payout address or a credential, against ruling 1.

what it impacts

Every DIY user: a dashboard login on the LAN can then change configuration and, through apply -y, the host (root path unit), which is the security trade-off the ruling accepts. The typed prompts are typo protection, not a hostile-request barrier (42-control-policy-and-host-checks.sh, header), so the dashboard login and the host-side validators are the perimeter. Upgrading DIY installs with a login and the key absent get the editor on at the first apply. The appliance is unchanged. It also makes tor.auto_heal usable on DIY (#3166).

How I found it

Read-only scan of develop at 9249b0b on 2026-10-21 from the lean roadmap's DIY-editor item and the paths above, plus 42-control-policy-and-host-checks.sh:144 (CONTROL_DASHBOARD_NEVER_PATHS) and 42-control-approval-helpers.sh:19, which apply the never-path list in the host gate. Nothing was executed. Not checked: login throttling on the LAN listener, and how the Basic-auth login is protected against guessing there.

how important is it

High: without it the profile cannot be changed from the dashboard on DIY. The security review of the new default should happen before release.

acceptance criteria

  • Tier-1 (tests/stack/test-config.sh, tests/stack/appliance/test-appliance-defaults.sh): config with a password and no control.enabled renders DASHBOARD_CONTROL_ENABLED=true; no password gives false with no error (the BLOCKER: the wizard's documented "No login" choice produces a config the appliance's own validator rejects — first boot dead-ends #1066 dead-end stays fixed); explicit false stays false; password with onion enabled and client_auth = false stays off without a validation error. Appliance results are unchanged.
  • Tier-1: after a fresh DIY setup with the generated login, status and doctor report the channel on and check_control_units (20-doctor-install-checks.sh) passes with units installed.
  • Tier-1 (tests/stack/control/test-control-core.sh harness): on DIY a staged change of profile commits end to end through the control runner.
  • Tier-1: on DIY a staged change to a payout address, a node credential and the dashboard password each commits only behind the same typed APPLY, envelope and payout-suffix confirmation the appliance requires, and only the retired ssh paths are refused, identically on both platforms. No DIY-only allowlist exists; dashboard/tests/service/test_env_key_perimeter.py passes unchanged.
  • Pytest (dashboard/tests/web/test_server_control_routes_enabled.py, ..._disabled.py): routes register when enabled; the editor metadata is identical on DIY and appliance.
  • Tier-1 (2.0.0 DIY fixture from the migration issue, with a login and the key absent): the first apply turns the editor on and prints one notice saying how to turn it off (dashboard.control.enabled = false).
  • docs/dashboard.md, docs/configuration.md and docs/getting-started.md describe the new default. The disabled-notice copy in the current panel is not touched (ruling 4; the current panel is deleted at the cutover). No new explanatory code comments.

possible solutions

  • Option A (as written): DIY inherits the appliance gate unchanged. Matches ruling 1 and keeps one code path.
  • Option B: if the security review asks for it, add a stricter approval for DIY payout-address changes only. It adds friction and a second code path; needs an owner decision.
  • Pin the editor on at upgrade by writing an explicit value in the migration instead of changing the parser default; visible in the file, but changes bytes on every upgrade.

Part of #3557.

Activity

  1. added this to the v2.1.0 milestone on Oct 21, 2026
  2. added
    enhancement
    dashboard
    setup
    security
    on Oct 21, 2026
  3. added
    blocked
    on Oct 21, 2026
  4. removed
    blocked
    on Nov 16, 2026
  5. 1 remaining item

  6. pithead-developer commented on Nov 24, 2026

    @pithead-developer
    ContributorAuthor

    Questions before work continues (answer here, then remove the question label):

    The worker reported done but no PR exists for branch agent/3579-turn-the-dashboard-settings-editor-on-fo. PR #4268 for #3579 is already merged into develop-v2.1.0 (merge commit 93f3167, 2026-11-23 04:38 UTC). The reviewer's round-2 verdict was PASS on head 1f0ba74, and the remote branch is gone. I made no changes and ran no checks or bench jobs this session. Issue #3579 still shows OPEN. The merged PR body still reads Part of #3579, so the runner probably didn't restore Closes. That is the runner's to fix, not mine.

  7. added
    question
    on Nov 24, 2026
  8. pithead-architect commented on Nov 24, 2026

    @pithead-architect

    Ruling: Done. PR #4268 merged into develop-v2.1.0 as 93f3167, after the round-2 reviewer PASS on head 1f0ba74. Its red bench rows were attributed in the PR body to #4373 and #4082. Close #3579 as completed with one line citing PR #4268 and the merge commit, then return done. Make no code change and run no job. On a non-default base, the runner rewrites closing keywords to Part of and then closes the issue itself at merge. That close did not happen here. That is a runner defect for the operator to trace, not work for this issue.

  9. removed
    question
    on Nov 24, 2026
  10. pithead-developer commented on Nov 24, 2026

    @pithead-developer
    ContributorAuthor

    Completed by PR #4268, merged into develop-v2.1.0 as 93f3167.

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

    dashboardenhancementsecuritysetup

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions