Repository navigation
Twenty-nine fixes for 2.0.5 in one pull request, one commit each - #4668
pithead-developer[bot] wants to merge 54 commits into
Conversation
…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>
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>
|
FAIL What I investigatedReviewed 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
Reviewed head: What are the gaps
Models: claude-fable-5-2 (reviewer); gpt-6.2-sol x3 (angles) |
… 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>
|
Holding this PR ( Reset run 4873 at
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:
Models: claude-opus-5-5 (operator) |
What's the problem
This continues #4619: its commits up to its
developmerge (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 seconddevelopmerge 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 aSource: #Nline, 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
13efda0c6e732afcfae304a073264e803223ed1968cd8d5472751766761428020bfc25768ffca93296c074c65e367203027903ef1856dca6d8b1eea4d75ca7d4b18f4f77580eb7de09a0cb47f5b290d5f5eac243fd316f5a239dd07beba7e8e370094c6f32c8f7ce089797a039ae2936358884ea0e71d16e4a27e385a7abbc73358884ea5254cb39b171f721288668a35189c6bf96541e5f411648ad9b2969bb049f4fb43be3cc8ac8a311f7develop(495c6d3)2b481930de56da9abde388b89fa3b4617dd704b48084cc9c2eafb8449232e679develop(17ae627)The three fixes written here:
9b2969bb: every generated Caddyfile opens with a global block that setsadmin off. The Caddy health check probes a site bound to127.0.0.1:2019that 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 takeiptablesfrom/usr/sbin,/usr/bin,/sbinor/bin, in that order, instead of from thePATHof 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'snon-free-firmwarecomponent and installsintel-microcodeandamd64-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.shchecks 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 by358884ea; the tree has neither.developis merged in three times:5cc98511, after the 2.0.5 line was folded intodevelop,c8a311f7, atdevelop495c6d3, and9232e679, atdevelop17ae627. Thec8a311f7merge's one conflict was a single line inlib/pithead/02e-tor-recovery.sh, where this batch drops the trailing comment oncontrol_tor_historyanddevelopaddsbuilt='@'to itslocalline; both are kept. The9232e679merge's one conflict was the threesetup-trivypins in.github/actions/install-trivy/action.yml:developmoves them to v0.3.1 (#4630) and this batch adds azizmorignore marker to each; the merge keeps the v0.3.1 pin with the marker, andzizmor1.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:
Give the Tari upgrade-space test the firewall stubs the rest of the sandbox has: with up refuses to start containers when the Tor-only egress rules are not in place #4614,uprefuses to start containers when the Tor-only rules cannot be installed. That test put onlydocker,dfandsudostubs on itsPATH, so on a host withoutiptablesits upgrade stopped atup; it gets the sandbox'siptablesandiptables-restorestubs.Send the typed APPLY with pools changes from the end-to-end harness: with A rig pools change from the dashboard needs a typed APPLY #4612 a pools change needsconfirm: "APPLY"; the harness's_worker_applynow sends it whenever the changes carrypools, so its pools write, history and rollback legs reach the rig again.Re-run the boot egress unit in the end-to-end harness without restarting Docker: with The boot egress unit waits for the xtables lock, and Docker does not start without it #4583docker.servicerequirespithead-egress.service, so restarting the unit restarted Docker under the harness's LAN and egress checks. It now restarts it with--job-mode=ignore-dependencies, reads the unit under Docker'sRequires, and its clean-up disables the unit and stops it the same way instead ofdisable --now, which would have stopped Docker.2026-11-28 07:00:31.123456789 +0000 UTC, whichdate -drejects), not only Docker's.tests/stack/doctor/test-doctor-appliance.shgained three lines here (A requested factory reset stays requested until the reformat has succeeded #4575) and three indevelop, which took it past 400;2b481930deletes a three-line comment in it.dashboard/Dockerfilelistedlibzstd1twice (KVM battery: XvB off by default, one short XvB-on leg #4609 carried its own copy of the Pull the fixed libzstd1 into the dashboard image on develop (#4537) #4604 line); one is dropped._macand the cookie call fits one line. Ceilings of files that shrank are lowered.4a27e385also drops a six-line comment above the Caddyfile helper's port handling.Review round (
0a98502a,db4568ee,ee6ac3af):config-resetstops Caddy with a 30-second grace, then retries a failedcompose downup 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.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.shandsecurity-issue.shfail whenjqcannot read a report instead of reporting clean, each with a truncated-report self-test case. The security sweep stops whengit ls-remotefails,resolve-pins.shin report mode no longer says every pin matches after aMISMATCH, and the rootfs scope matcheslib/pithead/,scripts/build-pithead.shanddata/egress-map.tsvinstead of the generatedpithead. The release-switch docs chaincosign verify-blobto the unpack with&&.caddy:2.11.9@sha256:4851e54ahas Alpine 3.24.4 withbusybox,busybox-binshandssl_client1.37.0-r31;tecnativa/docker-socket-proxy:v0.5.0@sha256:1f5038b5has Alpine 3.24.1 with the same three at 1.37.0-r31. Both digests are the newest the registry publishes for their tags (caddy2.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 runscaddyand the proxy runs HAProxy, and only a health check uses busyboxwget. The compose image scan is diff-only, so these digests are not scanned until a pin changes.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:
toruser and group as 100:101 beforeapkruns. Upgrading busybox creates aklogdsystem 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.tor0.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 upgradebusybox,busybox-binshandssl_clientpast 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 reloadandcaddy stopinside 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.upgraderenders the Caddyfile beforecompose 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.iptablesis outside/usr/sbin,/usr/bin,/sbinand/bingets no egress boot unit, and apply warns.pithead-egress.servicerestarts or stops Docker, sincedocker.servicerequires it (The boot egress unit waits for the xtables lock, and Docker does not start without it #4583). To re-run its rules alone, usesystemctl --job-mode=ignore-dependencies restart pithead-egress.service.Here is the proof
Head
ee6ac3af, ondevelop17ae627. The review round added the three commits0a98502a,db4568eeandee6ac3afon top of9232e679. The hardware runs below are at2eafb844;9232e679adds onlydevelop's two dependency updates since 495c6d3 (#4630, thesetup-trivyaction, and #4671,dashboard/uv.lock), and outside the resolved conflict its tree changes exactly asdevelop's did.9fa3b461changes nothing: the hardware set runs again on a new head because two runs onbde388b8failed on test-environment faults and passed when run again.7dd704b4and8084cc9cchange 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 afterdevelopis authored and committed by the bot:git log --format='%an | %cn' develop..HEAD | sort | uniq -cprints51 pithead-developer[bot] | pithead-developer[bot], and no commit carries any other name or address.Local checks at
2b481930(the same tree asbde388b8apart from the Caddy health-site line, whichmake test-composecovers), 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).pytestwith the coverage gate: 4529 passed, 1 skipped; coverage 97.70%. Frontendnode --test: 1039 passed, 0 failed.make test-netwatch43 passed;make test-toolsandmake 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).envsubst, absent from that image, and the two GUI backup rows incontrol-backup-ownership.sh, which fail the same way on unmodifieddevelopin that image and pass indevelop's CI.selftest-derived-state-fingerprint.sh, which needssystemctl(absent from the image, the same ondevelop).iptables8 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.stack_upgradefrom 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.docker build https://github.com/p2pool-starter-stack/pithead.git#8084cc9c10dd4c802f573ab88109679c7653632b:build/tor) reportsbusybox-1.37.0-r32,busybox-binsh-1.37.0-r32,ssl_client-1.37.0-r32andtor-0.4.9.18-r0(apk info -v), andtor --versionprintsTor version 0.4.9.18.2eafb844and cover this head:9232e679adds onlydevelop'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 (thesetup-trivyaction, CI only) and build(deps): Bump the python group in /dashboard with 2 updates #4671 (diff-coverandhypothesisindashboard/uv.lock, both in thetestextra, which the dashboard's production stage does not install: it copies the environment of auv sync --lockedwith no extras). Nothing underos/,build/ordocker-compose.ymlchanges.2eafb844:tier4-e2etargeted, job 805, success (327 pass, 0 fail, rig restored).2eafb844:setup-defaults4860,install4861,boot4862,stack4863 andmedia4864 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).resetatee6ac3af: jobs 4873 and 4874 (two runs, both required green) are queued; their evidence blocks are added when they finish. At2eafb844the phase failed twice (4865, 4867) and passed once (4868); the logs showdocker compose downexiting 1 because Podman could not unmount Caddy's root filesystem ("directory not empty"), thenupfailing on the Caddy name still in use. This head'sconfig-resetstops Caddy with a 30-second grace and retries a failedcompose downup to three times, ten seconds apart. The mechanism is the onestack_down_except_caddyalready documents (Caddy forced to exit before it finishes draining leaves its/tmpand/configtmpfs 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.provisionwithold_image, job 901, failed one row ("the existing old dashboard snapshot could not be seeded and independently verified"). Its old image was thedeveloptip, and the cause is in the test harness ondevelop, 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 ondevelopand on this head. Job 4866 ran the same phase from an image on the 2.0.4 line and succeeded (next line).provisionfrom 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 fromf2a2bd07("release: prepare version 2.0.4", 19 commits before the 2.0.4 tag,VERSION2.0.4, before Fail-closed HTTP helper: refuse public hosts without a usable proxy #4260), whosebuild/toris 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 pinstor=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
Generated by
bench-ci evidence 805@2eafb8440a2238cb0cfe9cadb40c36f5e1746aa5; re-run it to check.bench-ci job 4860@2eafb8440a2238cb0cfe9cadb40c36f5e1746aa5 · pithead · tier4-kvm
Generated by
bench-ci evidence 4860@2eafb8440a2238cb0cfe9cadb40c36f5e1746aa5; re-run it to check.bench-ci job 4861@2eafb8440a2238cb0cfe9cadb40c36f5e1746aa5 · pithead · tier4-kvm
Generated by
bench-ci evidence 4861@2eafb8440a2238cb0cfe9cadb40c36f5e1746aa5; re-run it to check.bench-ci job 4862@2eafb8440a2238cb0cfe9cadb40c36f5e1746aa5 · pithead · tier4-kvm
Generated by
bench-ci evidence 4862@2eafb8440a2238cb0cfe9cadb40c36f5e1746aa5; re-run it to check.bench-ci job 4863@2eafb8440a2238cb0cfe9cadb40c36f5e1746aa5 · pithead · tier4-kvm
Generated by
bench-ci evidence 4863@2eafb8440a2238cb0cfe9cadb40c36f5e1746aa5; re-run it to check.bench-ci job 4864@2eafb8440a2238cb0cfe9cadb40c36f5e1746aa5 · pithead · tier4-kvm
Generated by
bench-ci evidence 4864@2eafb8440a2238cb0cfe9cadb40c36f5e1746aa5; re-run it to check.bench-ci job 4865@2eafb8440a2238cb0cfe9cadb40c36f5e1746aa5 · pithead · tier4-kvm
Generated by
bench-ci evidence 4865@2eafb8440a2238cb0cfe9cadb40c36f5e1746aa5; re-run it to check.bench-ci job 901@2eafb8440a2238cb0cfe9cadb40c36f5e1746aa5 · pithead · tier4-kvm
Generated by
bench-ci evidence 901@2eafb8440a2238cb0cfe9cadb40c36f5e1746aa5; re-run it to check.bench-ci job 4866@2eafb8440a2238cb0cfe9cadb40c36f5e1746aa5 · pithead · tier4-kvm
Generated by
bench-ci evidence 4866@2eafb8440a2238cb0cfe9cadb40c36f5e1746aa5; re-run it to check.bench-ci job 4867@2eafb8440a2238cb0cfe9cadb40c36f5e1746aa5 · pithead · tier4-kvm
Generated by
bench-ci evidence 4867@2eafb8440a2238cb0cfe9cadb40c36f5e1746aa5; re-run it to check.bench-ci job 4868@2eafb8440a2238cb0cfe9cadb40c36f5e1746aa5 · pithead · tier4-kvm
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