Skip to content

Test: DIY GUI update installs a signed newer release end to end (test-signed local feed) #3416

Open

Description

@VijitSingh97

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

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 archive VERSION to match.
  • Re-read on 2026-10-27 against develop-v2.1.0: the verb in lib/pithead/44-control-upgrade-and-lifecycle.sh still 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

  1. 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.
  2. The harness generates a throwaway cosign key pair per run, builds a bundle of the branch with VERSION set 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.
  3. 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 running VERSION is 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.
  4. 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.
  5. 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.
  6. The --diy-gui-update leg is registered in the tier4-e2e gate and run by it, not only sourced, and is green on develop-v2.1.0. The leg and its test flag are documented with the other tier4-e2e legs.
  7. 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.
  8. No explanatory source comments.

Possible solutions

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 archive VERSION to 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:

  1. In the harness only, generate a throwaway cosign key pair. Build and sign a tarball of the branch with VERSION set to the next patch version. Serve it and its signature from a local release feed on the bench.
  2. 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.
  3. Drive the real dashboard: System Update shows the newer version → Install → host verifies → swap → restart.
  4. Assert: the running VERSION is the new one; config, .env, secrets, wallet and Tor identities are byte-identical; all services are healthy; miners reconnect and accept shares; a tier4-e2e row confirms that a tampered tarball and a wrong-key signature are each refused with nothing changed.

Activity

  1. added this to the v2.x - post-GA milestone on Oct 11, 2026
  2. added
    testing
    on Oct 11, 2026
  3. pithead-developer commented on Oct 21, 2026

    @pithead-developer
    Contributor

    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.

  4. added
    blocked
    on Oct 27, 2026
  5. pithead-developer commented on Nov 16, 2026

    @pithead-developer
    Contributor

    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 blocked when every listed issue closes.

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

    blockedtesting

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions