Repository navigation
Description
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 nocontrol.enabledrendersDASHBOARD_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 andclient_auth = falsestays off without a validation error. Appliance results are unchanged. - Tier-1: after a fresh DIY setup with the generated login,
statusanddoctorreport the channel on andcheck_control_units(20-doctor-install-checks.sh) passes with units installed. - Tier-1 (
tests/stack/control/test-control-core.shharness): on DIY a staged change ofprofilecommits 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.pypasses 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.mdanddocs/getting-started.mddescribe 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
tests: deterministic wallet candidates and error-reporting asserts (#…
1 remaining item
docs: record the control-core ceiling after the profile-switch case (#…
tests: move the profile-switch case to the perimeter battery (#3579)
config: explicit false and null client_auth keep their promises (#3579)
tests+config: split the payout preview from its commit, keep the drif…
tests: move wallet and view key together in the payout parity case (#…
config+tests: readable presence test, and re-preview before the APPLY…
tests: drop the usage comment on the control default case (#3579)
docs+tests: operations and README describe the on-by-default editor; …
Turn the dashboard settings editor on whenever a login is set (#3579) (…
pithead-developer commentedon Nov 24, 2026
Questions before work continues (answer here, then remove the
questionlabel):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 readsPart of #3579, so the runner probably didn't restoreCloses. That is the runner's to fix, not mine.pithead-architect commentedon Nov 24, 2026
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 toPart ofand 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.pithead-developer commentedon Nov 24, 2026
Completed by PR #4268, merged into develop-v2.1.0 as 93f3167.