Repository navigation
Description
What's the problem
No automated test proves that a real DIY host, driven from the dashboard, downloads, verifies, swaps and restarts on a real newer signed release. The DIY upgrade verb takes the latest release from GitHub, verifies the bundle with cosign against the cosign.pub already on disk, and requires the bundle VERSION to match the tag. Only the release signing key can produce an accepted bundle, and the verb on develop-v2.1.0 has no test-only key or local-feed seam. Today's coverage, dashboard/tests/browser/diy-upgrade.test.mjs, fakes the backend and drives the header Upgrade button, which the lean UI removes (#3566 section B).
The owner's rule of 2026-10-11 is that every gap an RC cut finds is closed by an automated test. The original deadline (before 2.0.1 was cut) has passed: 2.0.1 was published on 2026-10-26 without this proof. The test now targets the Update Pithead dialog on Settings > Updates (#2530; #3566 sections F and J), on a DIY host with a dashboard login set.
What it impacts
- DIY users who upgrade from the dashboard. A break in the verify, swap or restart step, or a regression in signature verification, stays invisible until a user hits it.
- The tier4-e2e gate gains one leg and one tier-1 test.
- Out of scope: appliance OS updates (signed image, see Automate: KVM os-update keeps every identity byte, and an operator rollback serves the provisioned stack #3422) and the old header Upgrade button (no work goes into the old dashboard UI).
How I found it
- The owner asked the RC4 tester to install an update through the real dashboard GUI on an appliance and on a DIY host. The DIY half could not run, by design: the host updater takes the latest release from GitHub, verifies the signed archive against the shipped
cosign.pub(lib/pithead/03-release-verify.sh) and requires the archiveVERSIONto match. - Re-read on 2026-10-27 against
develop-v2.1.0: the verb inlib/pithead/44-control-upgrade-and-lifecycle.shstill derives the target from the GitHub release API, builds the bundle URL from that tag, verifies with cosign and refuses a version mismatch. No override exists. - Not established: how much time the leg adds to the tier4-e2e job. The 10 to 15 minute figure from the original report is an estimate, and tier4-e2e default matrix cannot complete within bench-ci's job cap #3495 reports that the default tier4-e2e matrix does not fit the bench job cap.
How important is it
Medium. It is the only end-to-end proof of a security-relevant path (signature verification, swap, restart) that DIY users reach from the dashboard, and the owner requires RC-found gaps to be closed by tests. Nothing is known to be broken, and the proof cannot be completed before the Update Pithead dialog exists (#2530), so it should not gate other work. Cost is M: about 10 to 15 minutes of e2e runtime (estimate). No production key is involved at any point.
Acceptance criteria
- A test-only override points the host upgrade verb at a local release feed and a test public key. It is refused unless an explicit test flag is set, and a production build ignores it. A tier-1 test pins both: with the flag absent the override is refused, and a production build ignores it.
- The harness generates a throwaway cosign key pair per run, builds a bundle of the branch with
VERSIONset to the next patch version, signs it, and serves the bundle and its signature from a local release feed on the bench. No production key is used, read or needed. - On a DIY host with a dashboard login, Settings > Updates offers Update Pithead for the newer version. The leg opens the dialog and types
UPGRADE; the host verifies, swaps and restarts. The leg asserts that the runningVERSIONis the new one; config,.env, secrets, wallet and Tor identities are byte-identical to before; all services are healthy; and miners reconnect and accept shares. - A tampered bundle and a bundle signed with the wrong key are each refused through the same flow with nothing changed: running
VERSION, install tree, config and services are as before. - Negative controls: the leg goes RED when the swap step is broken and when the verification step is broken, and each negative row fails if its refusal is removed.
- The
--diy-gui-updateleg is registered in the tier4-e2e gate and run by it, not only sourced, and is green ondevelop-v2.1.0. The leg and its test flag are documented with the other tier4-e2e legs. - The leg drives only the new dialog. It adds no test of, and no change to, the old header Upgrade button or any old-UI screen; the fake-backend browser test of that button is deleted by the page PR that removes the control (v2.1.0 lean UI spec: four pages, one profile control, an Advanced drawer #3566 A7), not here.
- No explanatory source comments.
Possible solutions
- Leg design, carried over from the original report: a tier4-e2e (DIY, Docker CE) leg
--diy-gui-updatethat generates the throwaway key, builds and signs the newer bundle, serves it from the local feed, points the host at the feed through the override, then drives the Update Pithead dialog and runs the assertions above. - Seam: the smallest change is one read of a feed base URL and a public-key path inside the verb, honored only when the explicit test flag is set. The tier-1 pins in criterion 1 are its refusal paths.
- Reuse to check first: the CLI
pithead upgradelive test already stages a signed candidate bundle (tests/integration/lib/live-upgrade-support.sh), and the appliance image-upgrade leg already drives a real browser (tests/os/image-upgrade-browser.mjs). Unknown whether either fits without change. - Order: the seam, the harness-signed bundle and the tier-1 pins do not need the new UI and can land first as a stacked PR; the dialog-driving step waits for Sovereign: organize mining and advanced settings without losing fields #2530 (which waits for the shell Sovereign: build navigation, page headers and persistent status #2513 and the configuration model Implement the approved v2.1.0 configuration model and migration contract #3557).
- If the leg does not fit the bench job cap, run it as its own leg (see tier4-e2e default matrix cannot complete within bench-ci's job cap #3495).
Earlier scope, kept as evidence only (superseded 2026-10-27; do not implement from it)
What's the problem
Test debt from 2.0.0 RC testing; must land before 2.0.1 is cut (owner, 2026-10-11: every gap an RC cut finds is closed by automated tests). 2.0.1 is the first release that DIY installs will reach through the dashboard's update flow.
What slipped
The owner asked the RC4 tester to install an update through the real dashboard GUI on both an appliance and a DIY host. The DIY half could not run, by design:
- the DIY host updater takes the latest release from GitHub;
- it verifies the signed tarball with cosign against the shipped
cosign.pub(lib/pithead/03-release-verify.sh) and requires the archiveVERSIONto match; - only the release-signing key can produce an accepted tarball, and no test-only key or local-feed seam exists.
Today's coverage is dashboard/tests/browser/diy-upgrade.test.mjs, which fakes the backend. Nothing proves that a real DIY host downloads, verifies, swaps and restarts on a real newer release.
what it impacts
Where it runs
tier4-e2e in the RC gate's e2e job. The override-refusal and production-ignores-override checks run in tier-1 CI.
How I found it
Discovery details are not separately established in the existing report; preserve and verify the evidence already recorded.
how important is it
Cost
M. About 10-15 min of e2e runtime (estimate). No production key is involved at any point.
acceptance criteria
Done when
- Green on develop.
- RED with the swap or the verification step broken. Each negative row fails if the refusal is removed.
- Registered and run by the gate, not just sourced.
possible solutions
Test to build
A tier4-e2e (DIY, Docker CE) leg, --diy-gui-update:
- In the harness only, generate a throwaway cosign key pair. Build and sign a tarball of the branch with
VERSIONset to the next patch version. Serve it and its signature from a local release feed on the bench. - Point the installed host at that feed and test public key through a test-only override. The override must be refused unless an explicit test flag is set, and production builds must ignore it. A tier-1 test pins both.
- Drive the real dashboard: System Update shows the newer version → Install → host verifies → swap → restart.
- Assert: the running
VERSIONis the new one; config,.env, secrets, wallet and Tor identities are byte-identical; all services are healthy; miners reconnect and accept shares; atier4-e2erow confirms that a tampered tarball and a wrong-key signature are each refused with nothing changed.
Activity
pithead-developer commentedon Oct 21, 2026
Parked in Icebox under the lean roadmap (owner, 2026-10-21): all work on the current dashboard UI is deferred until the lean 4-page UI (now part of v2.1.0), which replaces it.
pithead-developer commentedon Nov 16, 2026
Blocked on #2530.
Parked until the lean UI lands (see the park comment above). The native blocked-by links already hold it, and the tick removes
blockedwhen every listed issue closes.