Skip to content

End-to-end proof on the appliance: download the support-bundle zip through the dashboard, with Tor wedged and with monerod stopped #4131

Open

Description

@pithead-developer

What's the problem

Nothing proves the owner's whole flow on real appliance hardware. It is part of tracker #4032.

What it impacts

How I found it

This came from a read-only audit of develop at eb929ce on 2026-11-15, against the owner's request and the acceptance criteria of #4032, verified by a second agent. The owner said on 2026-11-15: "make sure 2.0.4 has the export logs feature also. i want to be able to select a time frame and then dump pretty much every log on the system into a zip file for download. this is so we can debug issues users face".

Evidence is the file:line list above, and the audit finding that the full owner flow has never been exercised on appliance hardware. Not verified: which existing tier4-kvm phase is cheapest to extend. tests/os/phases/fault.sh and the tor-heal phase (which faults only the guest's Tor) are candidates. Also not verified: how the leg should authenticate to the dashboard route. The existing appliance legs that log in (for example tests/os/appliance-password-fixture.sh) are a starting point.

How important is it

Release blocker for v2.0.4, because the owner's rule is that log pulling ships. It is proof work, so it cannot start before #4127, #4128 and #4129 merge. Part of #4032.

Acceptance criteria

  • A tier4-kvm (appliance) leg under tests/os provisions a guest, sends the request the dashboard route receives for a chosen start and end, waits for completion, and downloads the .zip over the dashboard route as an authenticated owner, with the control channel switch off. With a dashboard password set, an unauthenticated request to the same route is refused.
  • The leg unzips the archive and asserts that manifest.json and every file specified by Support bundle collector: one .zip of the whole journal for a chosen start and end time, with a manifest #4127 and Support bundle: add state snapshots and non-journal sources, each time-bounded so a wedged service cannot block it #4128 are present and non-empty (or listed in the manifest with a reason).
  • The leg proves the window bounds: a seeded journal line inside the window is present, and a seeded line just before the start and one just after the end are absent.
  • The leg seeds secrets (a wallet address, a token, a Tor key value, a cookie) in the journal, a container log, the Tor state file and a Caddy access log, and asserts none of them appear anywhere in the zip.
  • The leg repeats the export with Tor deliberately wedged on the guest. The export completes within a stated time, the zip is complete and redacted, and the manifest records the Tor step as failed or timed out.
  • The leg repeats the export with monerod stopped. The export completes, the zip is complete and redacted, and the manifest records the monerod snapshot as unavailable.
  • A passing run shows the leg's evidence (job id and the unzip listing) on this issue. A failing run fails the phase; it is not a warning.
  • If Dashboard: time-frame picker and one-click .zip export, always available, with docs and a browser test #4129 did not ship its Playwright test, this issue adds the browser test that picks a range and downloads the zip. Otherwise it only runs it.
  • A selftest for the new leg's verdict logic runs without a VM, in the style of the existing selftest-*.sh files under tests/os.
  • make check passes.

Possible solutions

  • Extend the fault or tor-heal phase of tests/os with a new leg file next to appliance-recovery-bundle-leg.sh, and reuse its fault helpers.
  • Wedge Tor the way the tor-heal phase already does, or by stopping it or blocking its upstream on the guest. Stop monerod with systemctl stop.
  • Seed journal lines with systemd-cat or logger at known timestamps. Add short-lived dummy lines rather than editing real logs.
  • Make the download request from inside the guest with curl, so the leg's evidence holds no host name or address.

Release: date 2026-11-29
Who: operator

Activity

  1. added this to the v2.0.4 milestone on Nov 15, 2026
  2. added
    testing
    appliance
    release-blocker
    on Nov 15, 2026
  3. pithead-developer commented on Nov 15, 2026

    @pithead-developer
    ContributorAuthor

    Blocked on #4129. I haven't started #4131 because its three prerequisites are still open and unmerged: #4127 (the collector zip and manifest), #4128 (state snapshots and non-journal sources) and #4129 (the dashboard picker and export). The issue says the work starts only after all three merge. The legs assert the files, manifest fields and route that those issues define, and none of that exists on develop yet. No code, branch or PR exists, so nothing is finished. Once #4127, #4128 and #4129 are closed, resume this issue. Then I will extend the tier4-kvm fault or tor-heal phase with a bundle-download leg, a verdict selftest, and the Playwright test if #4129 doesn't ship one. #4129 is named as the blocker because it is the last in the chain, but the other two must also be closed.

    The runner resumes this issue when that one closes.

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

    @pithead-developer
    ContributorAuthor

    Owner ruling 2026-11-16 (2.0.4 scope review, "all as recommended"): conditional. A minimal tier4-kvm leg stays in 2.0.4: authenticated download through the dashboard route with the control switch off, plus manifest and redaction assertions. If log export is the last thing holding the cut, the Tor-wedged and monerod-stopped legs move to v2.0.5, and the owner checks the Tor-wedged case by hand on their appliance.

  6. removed
    blocked
    on Nov 16, 2026
  7. pithead-developer commented on Nov 16, 2026

    @pithead-developer
    ContributorAuthor

    Blocked on #4128. #4127 and #4129 are merged, but #4128 is still open, so I have not started #4131. Its draft PR is #4173. The acceptance criteria for #4131 need #4128's output: the per-step manifest entries (Tor step failed or timed out, monerod snapshot unavailable) and the non-journal files. Writing the leg now would mean guessing those names. The issue also says work starts after #4127, #4128 and #4129 all merge. Finished so far: I checked the dependency states and merged current develop into this branch, which has no other changes and no PR. To unblock, #4128 must merge, at which point the runner resumes this session and the leg gets built from the merged manifest. #4128's scope is partly deferrable to v2.0.5 under the owner's 2026-11-16 ruling. Which files #4131 asserts will depend on what ships, so I'll read the merged manifest then.

    The runner resumes this issue when that one closes.

  8. added
    blocked
    on Nov 16, 2026
  9. removed
    blocked
    on Nov 17, 2026
  10. 13 remaining items

  11. added this to the v2.0.5 milestone on Nov 21, 2026
  12. removed
    release-blocker
    on Nov 21, 2026
  13. pithead-architect commented on Nov 21, 2026

    @pithead-architect

    Appliance proof at PR #4188 head 69815a7 (KVM provision with the old image, bench job 607, 2026-11-21): 237 rows passed, 3 failed.

    • Passed: support bundle (baseline), complete, window-bounded and redacted in 59 s (limit 300 s); support bundle (Tor wedged), complete, window-bounded and redacted in 100 s; unauthenticated requests and downloads refused (401); the proof ran with the dashboard control channel off and restored it and the original configuration.
    • Failed, all in the monerod-stopped leg: the harness could not stop monerod on the guest, so that bundle did not record the monerod snapshot as failed, and monerod was not restarted.

    Owner ruling 2026-11-16: if this proof is the last thing holding the 2.0.4 cut, its remaining legs move to v2.0.5. It is the last one, and only the monerod-stopped leg remains (Tor wedged passed on the appliance, so no manual check is needed for it). Moving this issue and #4188 to v2.0.5 and removing release-blocker; the monerod-stopped leg is the remaining work.

  14. pithead-developer commented on Nov 22, 2026

    @pithead-developer
    ContributorAuthor

    Blocked on #4302. The owner cancelled provision jobs 4420 and 4424 on head 5d05f34 and ordered no resubmit until pithead#4302 (the 2.0.4 publication) closes, so the fleet is reserved for the release gate. Neither job ran. I did not resubmit. Finished: PR #4188 has the new appliance leg, its verdict selftest and the docs, and GitHub checks are green on the head. On earlier heads, real runs proved the control-off step, the baseline export (59 s), the 401 refusal of unauthenticated requests, and the Tor-wedged export (100 s, tor-heal job 474, success). Not proved on the current head: the monerod-stopped round, whose stop and start I reworked in 5d05f34. If the provision guest has no monerod container, that round skips and the criterion needs a phase that has one. To unblock: #4302 closes and the runner resumes this session. I then resubmit the provision phase on the head and read it. The same explanation is on the PR.

    The runner resumes this issue when that one closes.

  15. added
    blocked
    on Nov 22, 2026
  16. removed
    blocked
    on Nov 27, 2026
  17. added a commit that references this issue on Nov 27, 2026
  18. pithead-developer commented on Nov 27, 2026

    @pithead-developer
    ContributorAuthor

    Needs an operator action (do it, then remove the operator-action label):

    PR #4188 needs an owner-only rewrite of head branch agent/4131-end-to-end-proof-on-the-appliance-downlo from observed remote head 810422cc65a8632dc7be687d12a6050e4c40641f onto develop-v2.0.5 before it can merge. Candidate preparation runs locally; its evidence will follow if available. Verify the candidate, target-base SHA, selected commits, check results and prior review coverage before publication. Publish only to the same PR head branch with an explicit lease on 810422cc65a8632dc7be687d12a6050e4c40641f, followed by the base change; if the remote head moved, stop and reassess. Preserve the existing PR discussion and review history; a replacement PR requires explicit owner approval. Keep this issue open; remove only the operator-action label after verifying publication. The rewritten head needs fresh checks and review, then any required owner approval; old PASS or approval evidence must not be carried to it.

  19. added
    operator-action
    on Nov 27, 2026
  20. pithead-developer commented on Nov 27, 2026

    @pithead-developer
    ContributorAuthor

    Candidate preparation for PR #4188 (owner publication still required):

    PR #4188's branch carries commits from develop that develop-v2.0.5 lacks, so I rebuilt the change as a local candidate. Nothing was pushed. I did not force-push, change the PR base or open a replacement PR. The PR head branch is agent/4131-end-to-end-proof-on-the-appliance-downlo. The remote head I observed is 810422cc65a8632dc7be687d12a6050e4c40641f, rechecked after fetching. The target base is develop-v2.0.5 at 36c8af8f787ac76821d53f8e37398bde966152e8. The candidate is the local branch candidate/4131-on-develop-v2.0.5 at full SHA 717a4aa18a2e44085f075b660aea605e69f22aa4. It is 12 commits on that base, cherry-picked with -x from the PR's non-merge commits, oldest first: 31420be, 5e58ed3, 3e4a695, b1f6bef, a5d61e4, c61c7ec, 00c47d2, 17f3443, c193b0d, 69815a7, 63408d1, 5d05f34. All applied without conflict. The diff against the base is 7 files (388 insertions, 1 deletion): the new proof leg, guest seed script, verdict script and selftest under tests/os, the run.sh and appliance-support-bundle-leg.sh wiring, and one docs/dev/testing-strategy.md row. Checks run on the candidate: shellcheck (warning level) exit 0, shfmt -i 4 -d exit 0, tests/os/selftest-support-bundle-verdict.sh pass, tests/os/selftest-provision-legs.sh exit 0, and make lint-md with 0 errors. make lint-file-budget fails on the candidate: "docs/dev/file-budget.tsv raises dashboard/tests/service/health/test_tor_heal.py's ceiling from 401 to 459". It fails identically on bare origin/develop-v2.0.5, so it is not from this change. No GitHub checks or bench job have run on the candidate. Existing evidence covers the old commits only, not the candidate. Job 474@63408d19f5 (tor-heal) succeeded, and its leg rows show the control-off step, baseline export, 401 refusals and the Tor-wedged export all passing. Earlier provision runs proved the same steps, and jobs 4420 and 4424 on 5d05f34 were cancelled by the owner without running. The monerod-stopped round has never passed on hardware. No review is recorded: the verifier ran earlier on an older diff, and I did not re-run it on later commits. Requested owner action: publish the candidate to the same head branch with an explicit lease on the observed head, for example git push --force-with-lease=agent/4131-end-to-end-proof-on-the-appliance-downlo:810422cc65a8632dc7be687d12a6050e4c40641f origin 717a4aa18a2e44085f075b660aea605e69f22aa4:refs/heads/agent/4131-end-to-end-proof-on-the-appliance-downlo. Then change the PR base to develop-v2.0.5. If the remote head has moved from 810422c, stop and reassess. The rewritten head needs fresh GitHub checks, a fresh tier4-kvm provision run (the PR has no passing run of the current leg), fresh review and any required owner approval. Carry over no old PASS or approval. The PR discussion and review history stay on the existing PR.

  21. added
    operator-hold
    and removed
    operator-action
    on Dec 1, 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

    applianceoperator-holdtesting

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions