Skip to content

Twenty-nine fixes for 2.0.5 in one pull request, one commit each - #4668

Open
pithead-developer[bot] wants to merge 54 commits into
developfrom
fix/batch-20261201
Open

pithead-developer[bot] wants to merge 54 commits into
developfrom
fix/batch-20261201

Conversation

@pithead-developer

@pithead-developer pithead-developer Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

What's the problem

This continues #4619: its commits up to its develop merge (5cc98511) are unchanged, and its six commits after that merge are made again with the same trees under the bot identity; three new fixes and a second develop merge follow. Twenty-nine fixes for 2.0.5 are combined here, so they are reviewed and tested once, on one head, with one KVM run and one end-to-end run. The first twenty-six each had their own pull request (listed below; each is closed with a pointer here, its branch kept); the last three were written here and are described below the table. Each fix is one commit, titled like its pull request with a Source: #N line, so the set can be reviewed and bisected fix by fix. Each source pull request's description says what it changes and why.

How I fixed it

Commit Source What it does
13efda0c #4573 The rendered control-proxy unit carries the same switches as the compose service
6e732afc #4574 install.sh keeps every download on HTTPS and checks the signature of a signed release, with a pinned cosign when none is installed
fae304a0 #4575 A requested factory reset stays requested until the reformat has succeeded
73264e80 #4576 The egress request runner removes entries that are not regular files
3223ed19 #4577 Support bundles mask the generated login and setup token, and the boot media summary hides worker API tokens
68cd8d54 #4578 Bound XvB player counts, future-dated wins and a rig's config block
72751766 #4579 Mount the Tari config folder read-only and render config.toml in a private folder
76142802 #4580 Read the Tor cookie, the Tor state file and markers through one checked descriptor
0bfc2576 #4581 Say so when stratum TLS is on and the key pair is missing
8ffca932 #4582 A Fresh start reinstall also empties the stack's named volumes
96c074c6 #4583 The boot egress unit waits for the xtables lock, and Docker does not start without it
5e367203 #4584 The schema-hold marker replaces whatever sits at its name
027903ef #4585 The data-folder check refuses when a protected folder cannot be resolved
1856dca6 #4586 The setup wizard's cookie no longer carries the setup code
d8b1eea4 #4588 The monerod entrypoint writes its config file owner-only
d75ca7d4 #4589 Hand passwords, tokens and keys to jq and awk through the environment
b18f4f77 #4606 Add dependency review and diff-only image gates; report the rootfs scan on every PR
580eb7de #4607 Fix red pin-watch and lychee schedules; add a daily security sweep
09a0cb47 #4608 Trivy hygiene, mute expiry report, zizmor on composite actions, Dependabot security groups
f5b290d5 #4609 KVM battery: XvB off by default, one short XvB-on leg
f5eac243 #4610 Count failed logins per IPv6 /64 network in the dashboard and setup wizard limiters
fd316f5a #4611 doctor warns on a Docker Engine older than 28; the docs name 28 as the minimum
239dd07b #4612 A rig pools change from the dashboard needs a typed APPLY
eba7e8e3 #4613 Docs install with install.sh and check a bundle's signature before unpacking it
70094c6f #4614 up refuses to start containers when the Tor-only egress rules are not in place
32c8f7ce #4615 Count failed Basic-auth logins in the dashboard's sign-in limiter
089797a0 combining Keep the setup wizard server within its line budget
39ae2936 taken out again by 358884ea Dashboard app answers only requests that come through Caddy
0e71d16e combining Give the Tari upgrade-space test the firewall stubs the rest of the sandbox has
4a27e385 combining Keep the combined files within their line budgets
a7abbc73 see below Print where the dashboard proxy secret stands when the fresh default dashboard check fails
358884ea see below Take the dashboard web-front check out of this batch
5254cb39 combining Send the typed APPLY with pools changes from the end-to-end harness
b171f721 combining Re-run the boot egress unit in the end-to-end harness without restarting Docker
288668a3 combining Poll the short XvB leg's route check and name the part that differs
5189c6bf combining Read Podman's container start time in the XvB-off dwell row
96541e5f combining Drop the duplicate libzstd1 line from the dashboard image
411648ad combining Read the short XvB leg's route in the same step that routes it, as the routing leg does
9b2969bb new here Run Caddy with its admin endpoint off and check its health on a loopback site
049f4fb4 new here Name iptables from the system folders in the boot firewall units
3be3cc8a new here Ship early CPU microcode for Intel and AMD in the appliance image
c8a311f7 combining Merge develop (495c6d3)
2b481930 combining Keep the doctor appliance test within its line budget
de56da9a combining Let the Caddy loopback health site answer the previous release's probe path
bde388b8 combining Check both release health probes in the live Caddy test
9fa3b461 combining Re-run the hardware set on a new head (no change)
7dd704b4 combining Bump the Tor pin to 0.4.9.18-r0
8084cc9c combining Upgrade busybox, busybox-binsh and ssl_client in the Alpine images (Part of #4676)
2eafb844 combining Keep the tor user at 100:101 in the tor image
9232e679 combining Merge develop (17ae627)

The three fixes written here:

  • 9b2969bb: every generated Caddyfile opens with a global block that sets admin off. The Caddy health check probes a site bound to 127.0.0.1:2019 that answers / with 204 and every other path and Host with 404, so no new host port is taken. Nothing in the stack reloaded Caddy through its API; the one test that did (the mini-stack boot-health proxy test) now restarts the container, and the boot-probe evidence tool no longer reads the loaded configuration.
  • 049f4fb4: the egress boot unit and the LAN-guard boot unit take iptables from /usr/sbin, /usr/bin, /sbin or /bin, in that order, instead of from the PATH of the shell that ran apply. With none there, the egress boot unit is not installed and apply says so (egress-boot:no-system-iptables); the LAN-guard units take their existing not-installed path.
  • 3be3cc8a: the appliance image enables Debian's non-free-firmware component and installs intel-microcode and amd64-microcode, set to put every CPU's microcode of their vendor into the initramfs rather than only the build machine's, and rebuilds the initramfs. The image build fails when the early Intel file is under 4 MiB or the AMD file is missing; verify-image.sh checks the initrd for both.

The dashboard web-front check is no longer in this pull request: it moves to its own, because it needs the 2.0.5 compose file. Its commit (39ae2936) and a test-only diagnostic used to find that (a7abbc73) are reverted by 358884ea; the tree has neither.

develop is merged in three times: 5cc98511, after the 2.0.5 line was folded into develop, c8a311f7, at develop 495c6d3, and 9232e679, at develop 17ae627. The c8a311f7 merge's one conflict was a single line in lib/pithead/02e-tor-recovery.sh, where this batch drops the trailing comment on control_tor_history and develop adds built='@' to its local line; both are kept. The 9232e679 merge's one conflict was the three setup-trivy pins in .github/actions/install-trivy/action.yml: develop moves them to v0.3.1 (#4630) and this batch adds a zizmor ignore marker to each; the merge keeps the v0.3.1 pin with the marker, and zizmor 1.25.2 reports the same findings before and after it. Every fix's added lines are in the merged tree and none of its removed lines came back.

Combining them:

Review round (0a98502a, db4568ee, ee6ac3af):

  • config-reset stops Caddy with a 30-second grace, then retries a failed compose down up to three times, ten seconds apart (PITHEAD_RESET_DOWN_TRIES, PITHEAD_RESET_DOWN_RETRY_S, PITHEAD_RESET_CADDY_STOP_S); a shutdown that still fails warns and goes on, as before. Tests: tests/stack/test-restore-configless.sh (a shutdown that fails twice then works; one that never works) and the host-firewall reset rows, which now count three attempts.
  • A newly generated stratum key pair restarts a running xmrig-proxy, and the doctor and entrypoint messages say apply restarts it. Test: tests/stack/test-xmrig-proxy-entrypoint.sh (running, stopped and existing-pair cases).
  • compose-image-scan.sh and security-issue.sh fail when jq cannot read a report instead of reporting clean, each with a truncated-report self-test case. The security sweep stops when git ls-remote fails, resolve-pins.sh in report mode no longer says every pin matches after a MISMATCH, and the rootfs scope matches lib/pithead/, scripts/build-pithead.sh and data/egress-map.tsv instead of the generated pithead. The release-switch docs chain cosign verify-blob to the unpack with &&.
  • tor image: busybox CVE-2026-140044 (HIGH, fixed in 1.37.0-r32) fails the image scan #4676 criterion 3, the third-party Alpine images, checked from the registry (apk database of the linux/amd64 image at each pinned digest): caddy:2.11.9@sha256:4851e54a has Alpine 3.24.4 with busybox, busybox-binsh and ssl_client 1.37.0-r31; tecnativa/docker-socket-proxy:v0.5.0@sha256:1f5038b5 has Alpine 3.24.1 with the same three at 1.37.0-r31. Both digests are the newest the registry publishes for their tags (caddy 2.11.9 on 2026-11-16, socket proxy v0.5.0 on 2026-07-27), so there is no pin to bump. Shortcut: both pins keep busybox r31 (fix in r32); upgrade when either publisher rebuilds on a base with r32. Neither container runs the busybox HTTP daemon: Caddy runs caddy and the proxy runs HAProxy, and only a health check uses busybox wget. The compose image scan is diff-only, so these digests are not scanned until a pin changes.
  • tor image: busybox CVE-2026-140044 (HIGH, fixed in 1.37.0-r32) fails the image scan #4676 criterion 4 (the fix reaching develop-v2.1.0) can only be met after this merges, by the next forward merge or a linked follow-up; the issue stays open until then.

What to know:

  • The tor image creates its tor user and group as 100:101 before apk runs. Upgrading busybox creates a klogd system user first, which had moved tor to uid 101 while pithead hands the tor data folder to 100:101, so tor would not start. Every existing tor data folder stays owned by the tor user, and the image build fails unless tor is 100:101.
  • The Tor image pins tor 0.4.9.18-r0: Alpine 3.24 no longer carries 0.4.9.17-r0, so the old pin could not build. The tor image and the tor-client and netwatch test images also upgrade busybox, busybox-binsh and ssl_client past the pinned base layer, with the other base packages (Part of tor image: busybox CVE-2026-140044 (HIGH, fixed in 1.37.0-r32) fails the image scan #4676).
  • Caddy's admin endpoint is off. caddy reload and caddy stop inside the container now do nothing and exit 0; restart the container to load a changed Caddyfile (docker compose restart caddy), which is what Pithead already does.
  • An existing install picks the Caddy change up with no manual step: upgrade renders the Caddyfile before compose up, and the changed health check makes Compose recreate the Caddy container; the appliance renders before the stack starts at every boot. Every site and upstream stays as it was: the eight render modes (HTTP and HTTPS, default and custom port, with and without a login, with the onion vhosts) adapt to the same Caddy routes as before apart from the new loopback site.
  • A Docker host whose only iptables is outside /usr/sbin, /usr/bin, /sbin and /bin gets no egress boot unit, and apply warns.
  • The appliance initrd grows by about 15 MB (Intel's full microcode set).
  • Restarting or stopping pithead-egress.service restarts or stops Docker, since docker.service requires it (The boot egress unit waits for the xtables lock, and Docker does not start without it #4583). To re-run its rules alone, use systemctl --job-mode=ignore-dependencies restart pithead-egress.service.
  • Everything each source pull request lists under "What to know" still holds.

Here is the proof

Head ee6ac3af, on develop 17ae627. The review round added the three commits 0a98502a, db4568ee and ee6ac3af on top of 9232e679. The hardware runs below are at 2eafb844; 9232e679 adds only develop's two dependency updates since 495c6d3 (#4630, the setup-trivy action, and #4671, dashboard/uv.lock), and outside the resolved conflict its tree changes exactly as develop's did. 9fa3b461 changes nothing: the hardware set runs again on a new head because two runs on bde388b8 failed on test-environment faults and passed when run again. 7dd704b4 and 8084cc9c change only the three Alpine images and one harness assertion; the image builds and their scans in this pull request's checks are their proof. Every commit after develop is authored and committed by the bot: git log --format='%an | %cn' develop..HEAD | sort | uniq -c prints 51 pithead-developer[bot] | pithead-developer[bot], and no commit carries any other name or address.

Local checks at 2b481930 (the same tree as bde388b8 apart from the Caddy health-site line, which make test-compose covers), in the Linux test image:

  • make lint: passes (shellcheck and shfmt, ruff, biome, yamllint, markdownlint, docs voice, path references, operator strings, topology classes, the generated CLI build, Trivy version parity, the file budget).
  • Dashboard pytest with the coverage gate: 4529 passed, 1 skipped; coverage 97.70%. Frontend node --test: 1039 passed, 0 failed. make test-netwatch 43 passed; make test-tools and make test-fakes (52 passed) pass.
  • make test-compose: passes, including the generated-Caddyfile gate (every generated Caddyfile adapts with the shipped Caddy and has its admin endpoint off) and a run of the pinned Caddy image on a rendered file (the health URL answers 204, admin paths answer 404, nothing else listens).
  • Stack suite, all five blocks: 9221 passed, 10 failed. The ten are the local image's: the eight monerod entrypoint rows, which render with envsubst, absent from that image, and the two GUI backup rows in control-backup-ownership.sh, which fail the same way on unmodified develop in that image and pass in develop's CI.
  • Integration and OS self-tests, each run on its own: 236 run, one fails, selftest-derived-state-fingerprint.sh, which needs systemctl (absent from the image, the same on develop).
  • The three new fixes: every new statement and condition was changed in turn and a test went red (Caddy 14 of 14, including the compose pins; system iptables 8 of 8). The microcode build guard was checked against the initramfs listing of a trixie build with the pinned base image: with Debian's defaults that build had no AMD microcode at all; with these settings it has both files (Intel 15.1 MB, AMD 147 KB), and the guard refuses a listing without the AMD file or with a small Intel one.
  • Upgrade: the stack suite runs the real stack_upgrade from a Caddyfile rendered by 2.0.4 and checks that Caddy starts with the admin endpoint off and every old site and upstream still served; the eight render modes adapt to the same routes as before apart from the new loopback site.
  • The develop merges: every fix's added lines are in the merged tree and none of its removed lines came back.
  • The Alpine images at this head: Build image (tor), Test image (tor-client) and Test image (netwatch) pass with their scans. The tor image built from this commit (docker build https://github.com/p2pool-starter-stack/pithead.git#8084cc9c10dd4c802f573ab88109679c7653632b:build/tor) reports busybox-1.37.0-r32, busybox-binsh-1.37.0-r32, ssl_client-1.37.0-r32 and tor-0.4.9.18-r0 (apk info -v), and tor --version prints Tor version 0.4.9.18.
  • The hardware runs below ran at 2eafb844 and cover this head: 9232e679 adds only develop's build(deps): Bump aquasecurity/setup-trivy from 0.2.6 to 0.3.1 in /.github/actions/install-trivy in the actions group across 1 directory #4630 (the setup-trivy action, CI only) and build(deps): Bump the python group in /dashboard with 2 updates #4671 (diff-cover and hypothesis in dashboard/uv.lock, both in the test extra, which the dashboard's production stage does not install: it copies the environment of a uv sync --locked with no extras). Nothing under os/, build/ or docker-compose.yml changes.
  • End-to-end at head 2eafb844: tier4-e2e targeted, job 805, success (327 pass, 0 fail, rig restored).
  • KVM at head 2eafb844: setup-defaults 4860, install 4861, boot 4862, stack 4863 and media 4864 succeed; boot's two failed rows are the non-required netwatch legs (netwatch wired into the KVM battery: five windows, both roles, honest capture; plus the htpdate image check #4196).
  • KVM reset at ee6ac3af: jobs 4873 and 4874 (two runs, both required green) are queued; their evidence blocks are added when they finish. At 2eafb844 the phase failed twice (4865, 4867) and passed once (4868); the logs show docker compose down exiting 1 because Podman could not unmount Caddy's root filesystem ("directory not empty"), then up failing on the Caddy name still in use. This head's config-reset stops Caddy with a 30-second grace and retries a failed compose down up to three times, ten seconds apart. The mechanism is the one stack_down_except_caddy already documents (Caddy forced to exit before it finishes draining leaves its /tmp and /config tmpfs submounts mounted); the retry's effect on the bench is what 4873 and 4874 measure, and Appliance config-reset leaves Tor and Caddy instances for wizard setup to reuse #3591 stays the canonical issue until they pass.
  • KVM provision with old_image, job 901, failed one row ("the existing old dashboard snapshot could not be seeded and independently verified"). Its old image was the develop tip, and the cause is in the test harness on develop, filed as OS provision migration test: the old-dashboard seed step crashes because its bare container has no TOR_SOCKS_PROXY #4681: the seeding step starts the old dashboard image with no environment, and since Fail-closed HTTP helper: refuse public hosts without a usable proxy #4260 that dashboard refuses to start without a Tor proxy setting. The harness files are the same on develop and on this head. Job 4866 ran the same phase from an image on the 2.0.4 line and succeeded (next line).
  • KVM provision from an image on the 2.0.4 line, job 4866, succeeds: 354 pass, and the one failed row is the non-required netwatch leg (netwatch wired into the KVM battery: five windows, both roles, honest capture; plus the htpdate image check #4196). Its old image was built from f2a2bd07 ("release: prepare version 2.0.4", 19 commits before the 2.0.4 tag, VERSION 2.0.4, before Fail-closed HTTP helper: refuse public hosts without a usable proxy #4260), whose build/tor is byte-identical to the tag's, so the run upgrades a 2.0.4 install, its tor data folder included, to this head with tor at 100:101. The 2.0.4 tag itself can no longer be rebuilt: its tor Dockerfile pins tor=0.4.9.17-r0, which Alpine no longer serves (job 4869, a build from the tag, stopped at that step with "unable to select packages"). An image built while that package existed is the closest proof available.
bench-ci evidence at 2eafb84

bench-ci job 805@2eafb8440a2238cb0cfe9cadb40c36f5e1746aa5 · pithead · tier4-e2e

  • options: {"mode": "targeted"}
  • status: completed · conclusion: success · exit 0 · 66m 27s
  • baseline verified: yes · rig restored: yes
  • node guard: not recorded · no comparison recorded
  • steps: checkout success · reserve success · preflight success · run success · collect success · restore success · cleanup success
  • host audit: clean
  • rows: 327 pass · 0 fail · 13 skip (by-design 5, missing 8)
    Generated by bench-ci evidence 805@2eafb8440a2238cb0cfe9cadb40c36f5e1746aa5; re-run it to check.

bench-ci job 4860@2eafb8440a2238cb0cfe9cadb40c36f5e1746aa5 · pithead · tier4-kvm

  • options: {"phases": ["setup-defaults"]}
  • status: completed · conclusion: success · exit 0 · 17m 04s
  • baseline verified: yes · rig restored: n/a
  • node guard: not recorded · no comparison recorded
  • steps: checkout success · reserve success · preflight success · run success · collect success · restore success · cleanup success
  • host audit: job 452: docker object inventory unavailable
  • rows: 143 pass · 0 fail · 4 skip (missing 4)
  • image sha256: system.img c864da89d08dfb25fc6ae82006d1fed6e7ae10545fe298aef6a53014725e2c5c
    Generated by bench-ci evidence 4860@2eafb8440a2238cb0cfe9cadb40c36f5e1746aa5; re-run it to check.

bench-ci job 4861@2eafb8440a2238cb0cfe9cadb40c36f5e1746aa5 · pithead · tier4-kvm

  • options: {"phases": ["install"]}
  • status: completed · conclusion: success · exit 0 · 48m 37s
  • baseline verified: yes · rig restored: n/a
  • node guard: not recorded · no comparison recorded
  • steps: checkout success · reserve success · preflight success · run success · collect success · restore success · cleanup success
  • host audit: job 899: docker object inventory unavailable
  • rows: 257 pass · 0 fail · 5 skip (missing 5)
  • image sha256: system.img 3d22b5b96c97c7d2bf909eb64023d47e1af73c69f13f847e9202b4ed29b5bd14
    Generated by bench-ci evidence 4861@2eafb8440a2238cb0cfe9cadb40c36f5e1746aa5; re-run it to check.

bench-ci job 4862@2eafb8440a2238cb0cfe9cadb40c36f5e1746aa5 · pithead · tier4-kvm

bench-ci job 4863@2eafb8440a2238cb0cfe9cadb40c36f5e1746aa5 · pithead · tier4-kvm

  • options: {"phases": ["stack"]}
  • status: completed · conclusion: success · exit 0 · 59m 03s
  • baseline verified: yes · rig restored: n/a
  • node guard: not recorded · no comparison recorded
  • steps: checkout success · reserve success · preflight success · run success · collect success · restore success · cleanup success
  • host audit: job 522: docker object inventory unavailable
  • rows: 149 pass · 0 fail · 5 skip (missing 5)
  • image sha256: system.img 405bfddbaa565dbc91a1a1baa1772689d3653eb505b189cc6dd9465995cb2a66
    Generated by bench-ci evidence 4863@2eafb8440a2238cb0cfe9cadb40c36f5e1746aa5; re-run it to check.

bench-ci job 4864@2eafb8440a2238cb0cfe9cadb40c36f5e1746aa5 · pithead · tier4-kvm

  • options: {"phases": ["media"]}
  • status: completed · conclusion: success · exit 0 · 15m 25s
  • baseline verified: yes · rig restored: n/a
  • node guard: not recorded · no comparison recorded
  • steps: checkout success · reserve success · preflight success · run success · collect success · restore success · cleanup success
  • host audit: job 453: docker object inventory unavailable
  • rows: 152 pass · 0 fail · 4 skip (missing 4)
  • image sha256: system.img c864da89d08dfb25fc6ae82006d1fed6e7ae10545fe298aef6a53014725e2c5c
    Generated by bench-ci evidence 4864@2eafb8440a2238cb0cfe9cadb40c36f5e1746aa5; re-run it to check.

bench-ci job 4865@2eafb8440a2238cb0cfe9cadb40c36f5e1746aa5 · pithead · tier4-kvm

  • options: {"phases": ["reset"]}
  • status: completed · conclusion: failure · exit 1 · 49m 39s
  • baseline verified: yes · rig restored: n/a
  • node guard: not recorded · no comparison recorded
  • steps: checkout success · reserve success · preflight success · run failure · collect success · restore success · cleanup success
  • host audit: job 708: docker object inventory unavailable
  • rows: 170 pass · 2 fail · 6 skip (missing 6)
  • image sha256: system.img 74638e95577e819713ea8193aeedc80a0d5da298904744bec1a56fd76ddccd5b
  • failed rows:
    • [reset] config-reset Compose shutdown failed or was not recorded before the configuration wipe (no issue linked)
    • [reset] stack never came back up after config-reset — running: 'tor pithead-wizard ' (no issue linked)
      Generated by bench-ci evidence 4865@2eafb8440a2238cb0cfe9cadb40c36f5e1746aa5; re-run it to check.

bench-ci job 901@2eafb8440a2238cb0cfe9cadb40c36f5e1746aa5 · pithead · tier4-kvm

  • options: {"old_image": true, "phases": ["provision"]}
  • status: completed · conclusion: failure · exit 1 · 47m 21s
  • baseline verified: yes · rig restored: n/a
  • node guard: not recorded · no comparison recorded
  • steps: checkout success · reserve success · preflight success · run failure · collect success · restore success · cleanup success
  • host audit: job 901: docker object inventory unavailable
  • rows: 314 pass · 1 fail · 6 skip (missing 6)
  • image sha256: system.img 3d22b5b96c97c7d2bf909eb64023d47e1af73c69f13f847e9202b4ed29b5bd14
  • image sha256: provision/bundle-1.raucb 9716a92083f8496a2def144ac6023832d295f6e37ab3874c46b9aaf9646ea10c
  • failed rows:
    • [provision] the existing old dashboard snapshot could not be seeded and independently verified (no issue linked)
      Generated by bench-ci evidence 901@2eafb8440a2238cb0cfe9cadb40c36f5e1746aa5; re-run it to check.

bench-ci job 4866@2eafb8440a2238cb0cfe9cadb40c36f5e1746aa5 · pithead · tier4-kvm

  • options: {"old_image_commit": "f2a2bd0796c0d25e8e092e8def65d66f84ef0719", "phases": ["provision"]}
  • status: completed · conclusion: success · exit 0 · 179m 09s
  • baseline verified: yes · rig restored: n/a
  • node guard: not recorded · no comparison recorded
  • steps: checkout success · reserve success · preflight success · run success · collect success · restore success · cleanup success
  • host audit: job 523: docker object inventory unavailable
  • rows: 354 pass · 1 fail · 6 skip (missing 6)
  • image sha256: system.img 2bfccd606d422a70da1a8dd41c87e053a5fa246e58cdb97dc2d76536a068312f
  • image sha256: old-system.img b9646ec3a594fa360320833bfb76165ec83a1481ca68a0d34a24b06a95dc7f18
  • image sha256: provision/bundle-1.raucb 729727bc7744aef31b7d5291af158aad406d8e9a1fed54183a8bf531a0b2ad6e
  • failed rows:

bench-ci job 4867@2eafb8440a2238cb0cfe9cadb40c36f5e1746aa5 · pithead · tier4-kvm

  • options: {"phases": ["reset"]}
  • status: completed · conclusion: failure · exit 1 · 45m 46s
  • baseline verified: yes · rig restored: n/a
  • node guard: not recorded · no comparison recorded
  • steps: checkout success · reserve success · preflight success · run failure · collect success · restore success · cleanup success
  • host audit: job 902: docker object inventory unavailable
  • rows: 170 pass · 2 fail · 6 skip (missing 6)
  • image sha256: system.img bd6575abc4fa5017bb23a00102d8dec9297326c064d025db4b46ddb661b9eebf
  • failed rows:
    • [reset] config-reset Compose shutdown failed or was not recorded before the configuration wipe (no issue linked)
    • [reset] stack never came back up after config-reset — running: 'tor pithead-wizard ' (no issue linked)
      Generated by bench-ci evidence 4867@2eafb8440a2238cb0cfe9cadb40c36f5e1746aa5; re-run it to check.

bench-ci job 4868@2eafb8440a2238cb0cfe9cadb40c36f5e1746aa5 · pithead · tier4-kvm

  • options: {"phases": ["reset"]}
  • status: completed · conclusion: success · exit 0 · 58m 10s
  • baseline verified: yes · rig restored: n/a
  • node guard: not recorded · no comparison recorded
  • steps: checkout success · reserve success · preflight success · run success · collect success · restore success · cleanup success
  • host audit: job 709: docker object inventory unavailable
  • rows: 200 pass · 0 fail · 5 skip (missing 5)
  • image sha256: system.img 729c44a6cc92440e0bfdc826e67b2c8908869eae9f2f594f8266516e18c2d11e
  • image sha256: reset/bundle-1.raucb 5b446f2c0722f712d00fc7eea08f2f8566cd30655683103f999a1e4494049df6
    Generated by bench-ci evidence 4868@2eafb8440a2238cb0cfe9cadb40c36f5e1746aa5; re-run it to check.

Models: claude-fable-5-2 (developer), claude-opus-5-5 (developer), claude-sonnet-5-5 (merges and review fixes)

🤖 Generated with Claude Code

Part of #4676

pithead-developer Bot and others added 30 commits November 27, 2026 17:28
…ose service

Source: #4573

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…a signed release, with a pinned cosign when none is installed

Source: #4574

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…eeded

Source: #4575

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Source: #4576

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…t media summary hides worker API tokens

Source: #4577

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Source: #4578

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ivate folder

Source: #4579

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ed descriptor

Source: #4580

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Source: #4581

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Source: #4582

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…start without it

Source: #4583

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Source: #4584

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Source: #4585

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Source: #4586

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Source: #4588

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Source: #4589

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…an on every PR

Source: #4606

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Source: #4607

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…dabot security groups

Source: #4608

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Source: #4609

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…izard limiters

Source: #4610

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e minimum

Source: #4611

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Source: #4612

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…packing it

Source: #4613

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… in place

Source: #4614

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Source: #4615

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…andbox has

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
pithead-developer Bot and others added 2 commits December 4, 2026 01:24
Alpine 3.24 no longer carries tor 0.4.9.17-r0, so the image build could
not select the pinned package. 0.4.9.18-r0 is the version it carries now;
this is the change the daily Tor pin watcher prepared on
bot/tor-0.4.9.18-r0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The tor image and the tor-client and netwatch test images now upgrade
busybox, busybox-binsh and ssl_client with the other base packages, so
they ship the current Alpine builds rather than the ones in the pinned
base layer. The harness test requires all three in each image.

Fixes #4676

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Upgrading busybox creates a klogd system user before the tor package
creates its own, so tor moved to uid 101 while pithead hands the tor
data folder to 100:101, and tor refused to start. The image now creates
the tor group and user as 101 and 100 before apk runs, and its build
fails unless tor is 100:101. The harness test ties those ids to the
chown pithead does on the tor data folder.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@pithead-developer pithead-developer Bot added stage/in-review a reviewer session is on it now and removed stage/needs-review green or pending CI, no reviewer verdict on the head yet labels Dec 4, 2026
@pithead-reviewer

Copy link
Copy Markdown
Contributor

FAIL

What I investigated

Reviewed head 9232e67 against #4676 and the 29-fix batch: GitHub checks, every bench-ci job quoted at 2eafb84, the head-vs-tested diff, the product diffs (dashboard auth, CLI slices, OS overlay, images, compose), topology, and each angle-reviewer lead. It fails on a flaky required reset phase (two failed runs, then a pass, on the same head), an unmet #4676 criterion (the two third-party Alpine images are not addressed), and three defects in the new code and docs.

  • gh pr checks 4668 --json: 51 checks, all pass; runs 47351384408 and 47351384282 report head_sha 9232e67.

  • bench-ci list --all --fleet --commit 9232e679… --json: 0 jobs on the head. Same for 2eafb84…: 14 jobs.

  • git diff --stat 2eafb844 HEAD: only .github/actions/install-trivy/action.yml (three setup-trivy pins) and dashboard/uv.lock (diff-cover 11.0.4 to 11.0.5, hypothesis 6.170.17 to 6.170.23). Both packages are in the test extra in dashboard/pyproject.toml; the production stage runs uv sync --locked with no extra (dashboard/Dockerfile:52). The tier-4 jobs at 2eafb84 therefore cover the head.

  • bench-ci evidence <id>@2eafb844… for 805, 4860, 4861, 4862, 4863, 4864, 4865, 901, 4866, 4867, 4868: all eleven blocks are byte-identical to the PR body.

  • Reset phase on 2eafb84: 4865 failed in run (finished 10:10Z), 4867 failed in run (finished 11:53Z), 4868 passed (started 11:07Z, finished 12:05Z). Logs of 4865 and 4867 both show Container caddy Error Error while Stopping, compose_exit=1, replacing mount point … directory not empty, then ✗ config-reset Compose shutdown failed… and ✗ stack never came back up after config-reset; 4865's guest evidence shows the container name "caddy" is already in use.

  • GET /benches downtime intervals for the benches that ran 4865 and 4867: one non-dark paused interval ending 09:20:44Z, before 4865's failure at 09:43:33Z; nothing overlaps 4867. No outage exemption; neither job's error starts with environment:.

  • pithead#3591 (open, labelled blocked): its newest comment records the cause as an unverified lead and 3 of 10 non-PR runs failing the same rows.

  • e2e on 2eafb84: 803 and 804 errored at preflight (hugepages), run skipped, so they are not flaky runs; 805 succeeded (327 pass, 0 fail).

  • Provision: 901 (old_image: true) failed one row, the existing old dashboard snapshot could not be seeded…; git diff 17ae6272 HEAD -- tests/os/migration-recovery.sh tests/os/migration-release-snapshot.py tests/os/phases/provision-migration.sh is empty, so the harness is develop's, matching pithead#4681. 4866 (old image f2a2bd0) succeeded.

  • tor image: busybox CVE-2026-140044 (HIGH, fixed in 1.37.0-r32) fails the image scan #4676 criterion 1: gh run view 47351384408 --job 145104433279 --log (Build image (tor) at the head) prints Upgrading busybox (1.37.0-r31 -> 1.37.0-r32), the same for busybox-binsh and ssl_client, and Installing tor (0.4.9.18-r0). git grep CVE-2026-140044 finds no ignore entry.

  • tor image: busybox CVE-2026-140044 (HIGH, fixed in 1.37.0-r32) fails the image scan #4676 criterion 3: FROM alpine appears in build/tor, tests/integration/tor-client and tests/netwatch, all three upgraded. docker-compose.yml also pins caddy:2.11.9 (line 998) and tecnativa/docker-socket-proxy:v0.5.0 (lines 899, 952); lines 934 to 936, 988 and 1027 run busybox wget inside them. The PR body's only busybox text is about the tor image; tor image: busybox CVE-2026-140044 (HIGH, fixed in 1.37.0-r32) fails the image scan #4676 has no comments.

  • Reproduced scripts/ci/compose-image-scan.sh with a fake Trivy that exits 0 and writes truncated JSON: prints two jq: parse error lines, then ok r.io/x/app: no new fixable HIGH/CRITICAL, exit 0.

  • docs/operations.md:587: the conversion block runs cosign verify-blob on its own line, followed by tar xzf, rm -f build/*/Dockerfile dashboard/Dockerfile (line 589) and ./pithead upgrade; the release block at line 521 chains the same steps with &&. git diff 17ae6272 HEAD -- docs/operations.md shows this PR added both.

  • Stratum TLS cure, by code reading: ensure_stratum_tls_cert (lib/pithead/31-directories-and-dashboard-state.sh:90) regenerates the files; apply then runs compose_up_checked -d --remove-orphans (lib/pithead/40-apply-and-render.sh:343); xmrig-proxy's environment and mounts are unchanged and its TLS flags are set only at start (build/xmrig-proxy/entrypoint.sh:18). git grep finds no restart or recreate of xmrig-proxy in lib/pithead for this case.

  • Dashboard tests in a scratch worktree at the head: the six changed modules pass (exit 0). With dashboard/mining_dashboard checked out from 17ae627 they fail (exit 1, 30 failures across TestBasic, limiter_key, wizard cookie, rig_reply, XvB bounds, pools APPLY). Worktree removed.

  • Topology detector over the PR body, both PR comments, the issue body and inline comments: all clean. tor image: busybox CVE-2026-140044 (HIGH, fixed in 1.37.0-r32) fails the image scan #4676 has no comments.

  • Added-comment scan over the full diff: three added comment lines, all in .config/trivyignore (mute rationale, not source code); none in code files.

  • Leads rejected: README.md:105 (the existing public bootstrap URL, not introduced here); install.sh:93 (tags from 1.18.1 on and non-semver tags fail closed; an attacker who controls the API answer already controls the script); install.sh:105 (exec predates this PR); compose-image-scan.sh:7 (the repo's compose file uses only the plain image: form); os-rootfs.yml:53 as a blocker (the old filter was os/** only, so coverage widened; kept as a note); 02a-tor-egress-boot.sh:119 as a blocker (disclosed in the PR body and warned at apply).

  • Not re-derived: the second evidence block (jobs on bde388b, an older head) and the PR's local make runs; the head's GitHub checks stand for tiers 1 to 3.

  • [F4668-6] scripts/watch/security-issue.sh:49: Same pattern: osv_rows … || true discards a jq error, so an unreadable non-empty osv.json with a clean zizmor report renders an empty body and upsert closes the open security issue (line 100). The workflow validates only the zizmor JSON shape (security-sweep.yml:91).

  • [F4668-7] .github/workflows/security-sweep.yml:27: The trailing || true is needed for a zero-match grep under pipefail, but it also hides a failed git ls-remote; the sweep then covers only develop and main and can finish green.

  • [F4668-8] scripts/release/resolve-pins.sh:89: With RESOLVE_PINS_MISMATCH_OK=1 the report prints a MISMATCH row and then "Every third-party image pin matches…", because the counter is zeroed before the footer is chosen.

  • [F4668-9] .github/workflows/os-rootfs.yml:53: The scope pattern matches pithead$, a generated and ignored file that never appears in a diff, and does not match lib/pithead/ or data/egress-map.tsv, which the rootfs build bakes. Not a regression: the old filter was os/** only.

  • [F4668-10] tests/os/appliance-xvb-short-leg.sh:17: The on predicate accepts any mode without "Disabled" and a zero fail count, which is also the state before any XvB fetch. The leg proves the flag and the driven route, not that the dashboard fetched stats; the body says as much.

  • [F4668-11] PR body, "What to know": tor image: busybox CVE-2026-140044 (HIGH, fixed in 1.37.0-r32) fails the image scan #4676 criterion 4 (the fix reaches develop-v2.1.0 by the next forward merge or a linked follow-up) can only be met after this merges; the issue should not close before that merge or link exists.

  • [F4668-12] PR body, second evidence block: The "bench-ci evidence blocks (job ids are bench-local)" section quotes jobs on bde388b, an older head, and the paragraph after it describes red rows on that head. Drop or mark it as history so the body shows only what covers the current head.

Reviewed head: 9232e679bd255c07fae7c9da31fb538517ea6d65.

What are the gaps

  • [F4668-1] bench-ci jobs 4865@2eafb8440a2238cb0cfe9cadb40c36f5e1746aa5, 4867@2eafb8440a2238cb0cfe9cadb40c36f5e1746aa5 and 4868@2eafb8440a2238cb0cfe9cadb40c36f5e1746aa5 (tier4-kvm, phases=reset): Flaky required phase. 4865 and 4867 failed in run with config-reset Compose shutdown failed… and stack never came back up after config-reset; 4868 then passed on the same head. Under the owner ruling of 2026-11-23 that is not a pass, and no bench outage overlapped either failure. Both logs show docker-compose down exiting 1 because Podman cannot unmount the caddy container's root filesystem, after which up fails on the caddy name still in use. pithead#3591 owns the rows but is open and records its cause only as an unverified lead. Establish the cause and fix the config-reset teardown (here or in a PR merged first), then show reset on the new head with no failed run. The body asks the approver to accept the rows; a reviewer cannot waive that ruling.
  • [F4668-2] docker-compose.yml:899, docker-compose.yml:952, docker-compose.yml:998: tor image: busybox CVE-2026-140044 (HIGH, fixed in 1.37.0-r32) fails the image scan #4676 criterion 3 is not met: "Every other Alpine-based image in the repository is checked for the same packages. Each gets the same fix or a stated reason." The three FROM alpine Dockerfiles are upgraded, but the pinned third-party caddy:2.11.9 and tecnativa/docker-socket-proxy:v0.5.0 images are Alpine-based and ship busybox (their health checks at lines 936, 988 and 1027 run busybox wget). Neither the PR body nor the issue records a check of them. The new Compose image scan is diff-only and does not scan unchanged digests. Check busybox, busybox-binsh and ssl_client at both pinned digests; bump the pin where the fix exists, or state the versions found and why the pin stays.
  • [F4668-3] docs/operations.md:587: The "Switching a source checkout to release images" block added here runs cosign verify-blob on its own line. Pasted into a shell, a failed verification is followed by tar xzf over the checkout, rm -f build/*/Dockerfile dashboard/Dockerfile and ./pithead upgrade. The prose says to stop before anything is unpacked, and the sibling block at line 521 chains with &&. Chain this block the same way.
  • [F4668-4] lib/pithead/20-doctor-install-checks.sh:317 and build/xmrig-proxy/entrypoint.sh:24: The cure both new messages give ("run './pithead apply' to create the key pair again, then pin the new fingerprint on each rig") leaves the proxy in cleartext. Apply regenerates the files, but its compose up -d (lib/pithead/40-apply-and-render.sh:343) does not recreate xmrig-proxy because its service definition is unchanged, and the entrypoint adds the TLS flags only at start. Rigs repinned to the new fingerprint then cannot connect. Derived from the code; no run. Either recreate xmrig-proxy when ensure_stratum_tls_cert creates a pair, or name the restart in both messages; add a test for whichever is chosen.
  • [F4668-5] scripts/ci/compose-image-scan.sh:21: The new PR gate reports a clean scan when it cannot read the scan. scan_ids runs inside $(…) ||, so a jq failure does not stop it: it removes the file, returns 0, and the empty id list prints ok … no new fixable HIGH/CRITICAL. Reproduced with a fake Trivy that exits 0 and writes truncated JSON: two jq: parse error lines, then ok, exit 0. Return 1 when jq fails and add that case to the self-test.

Models: claude-fable-5-2 (reviewer); gpt-6.2-sol x3 (angles)
The review ran on Claude: Codex credits exhausted.

@pithead-developer pithead-developer Bot added stage/in-progress and removed stage/in-review a reviewer session is on it now labels Dec 4, 2026
pithead-developer[bot] and others added 3 commits December 4, 2026 10:04
… fail closed on unreadable scans

config-reset stops caddy with a bounded grace first and retries a failed
compose down up to three times, since a container's root filesystem can
stay mounted for a moment after it exits. A new stratum key pair restarts
a running xmrig-proxy so it serves TLS, and both repair messages say so.
The compose image scan and the security issue renderer return an error
when jq cannot read a report instead of reporting clean. The sweep stops
when git ls-remote fails, report mode no longer says every pin matches
after a mismatch, and the rootfs scope matches the sources it bakes. The
release-switch docs chain the verification to the unpack.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The config-reset retry test reinstalls its Docker stub after the sandbox is rebuilt, the key-pair test no longer sets the read-only app uid and checks the call's exit status, and the retry helper sits above config-reset's own description.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@pithead-developer pithead-developer Bot added stage/bench-testing its issue waits on a queued or running tier-4 bench job operator-hold The operator's own hold: never picked or merged, not an owner ask; the operator removes it and removed stage/in-progress labels Dec 4, 2026
@pithead-developer

Copy link
Copy Markdown
Contributor Author

Holding this PR (operator-hold) while the cause of #3591 is found. The owner's direction (2026-12-04) is no flaky tests: the reset phase has to pass on every run because the teardown no longer fails, not because something retries until it is green or the row reads only the final outcome.

Reset run 4873 at ee6ac3af shows why the current change doesn't meet that:

  • Caddy stopped cleanly within its 30-second grace.
  • docker compose down then failed to remove it with "replacing mount point …/merged: directory not empty". The first attempt warned, and the row failed.
  • The retry 10 seconds later succeeded (compose_exit=0), and every later row passed.

So the mount is held for a few seconds after a clean stop, and neither the stop grace nor the retry removes the cause.

Next:

  • The operator is investigating what holds caddy's overlay mount after it stops: the health-check exec, a concurrent cleanup or Quadlet unit, or a submount.
  • The fix will land here or in a PR merged first, with reset runs that show no "attempt 1 of 3" warning.
  • Reset jobs 4874 and 4876–4879 and e2e 4880 keep running at this head as data.
  • The other findings (F4668-2 to F4668-5) stand as the worker addressed them. tor image: busybox CVE-2026-140044 (HIGH, fixed in 1.37.0-r32) fails the image scan #4676 criterion 3 (the third-party images) is being done in a separate PR.

Models: claude-opus-5-5 (operator)

@pithead-developer pithead-developer Bot added stage/operator parked for the operator and removed stage/bench-testing its issue waits on a queued or running tier-4 bench job labels Dec 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

operator-hold The operator's own hold: never picked or merged, not an owner ask; the operator removes it stage/operator parked for the operator

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants