box/host
dan-claude-bot 57db9a56bb fix: teardown-host carried the same SIGPIPE race — it sets pipefail (#106 review)
The original diff claimed all three sibling `ufw status | grep -q` sites were
safe because none set pipefail. That is true of drill/wipe.sh and
drill/doctor.sh (both `set -u`) and FALSE of host/teardown-host.sh, whose
line 12 is `set -euo pipefail`. Its line 60 was the identical pipeline, so
the same race could read a plainly-active UFW as inactive and skip the whole
crumb-removal block — leaving stale boxnet/claudenet rules on a host the
operator was told is clean. Its numbered-delete loop had the same early-exit
reader as its condition, so it could also end while rules remained.

Both now read captures, matching box-firewall.sh's fix. The changelog claim
is corrected rather than deleted: this repo's changelog is the record of what
was proven, and shipping a disproven safety claim about a live defect is
worse than the defect, because it tells the next reader not to look.

Pinned in both directions, with comment lines stripped before matching — the
fix's own commentary quotes the racing shape to explain it, and a pin that
cannot tell prose from code fails on the comment documenting why it exists.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-19 18:18:36 +00:00
..
box-firewall.service Give box-firewall.service RemainAfterExit so its state means something 2026-07-17 14:05:23 +00:00
box-firewall.sh fix: the fresh-UFW test block no longer flakes on a missing log 2026-07-19 18:17:42 +00:00
grant-user.sh fix: grant the 'incus' membership to incus-admin members too (#101 review) 2026-07-19 17:33:37 +00:00
migrate-host.sh feat(setup-host): refuse a claimed subnet, and BOX_SUBNET to move off one (#80) 2026-07-18 19:46:58 +00:00
revoke-user.sh fix: grant the 'incus' membership to incus-admin members too (#101 review) 2026-07-19 17:33:37 +00:00
setup-host.sh feat(setup-host): auto-pick a free subnet — nested box-in-box, zero flags (#80) 2026-07-18 21:22:00 +00:00
teardown-host.sh fix: teardown-host carried the same SIGPIPE race — it sets pipefail (#106 review) 2026-07-19 18:18:36 +00:00