Fix for the red promote of 93fd8c11 (prod 28 of 31: 0003:run, 0007:webrtc, 0013:run). Cause: a guest's nftables rules were loaded once, by the bidder binary that booted it; the promote's own VM is booted before channel rc moves, so it never had decision 54's rule and could not dial a guest on its own host over WebRTC.
Change: when a bidder adopts a running guest it reloads that guest's rules from its own rule set: the same function boot uses, table swcguest replaced in one nf_tables transaction, through a netfilter socket opened by our unprivileged stub swc-userns-stage in a new join mode (setns into the VM's user and network namespaces the bidder's uid owns; no new privileges). New staging entry 0007:fence (staging 47): a guest rented on the previous release's bidder, the bidder upgraded under it, then a rent from inside that guest to a guest on the same bidder over WebRTC.
Run out of band: 0007:fence four runs on held staging network stg-989592 (~/.tmp/fence-adopt/proof/): before the upgrade the dial fails with the promote's ICE error and probes pass 0 of 16; after it the rule table holds the 31000-31999 accept to the host's own address, probes pass 40 of 40, the dial returns uname exit 0; a second reload is identical; a held session lives through the reload; after a rollback the newer rules stay (the older binary cannot reload). Strict review: one transaction, the old table kept on any failure, the VMM pinned by pidfd before setns, the adopting binary's own stub, no polling. go build and deploy/check.sh --fast pass on the head.
Not run (owner decision 77): the full hand staging cycle: CI's test runs all 47 before promote touches prod. Not provable before the roll: the reload on the prod hosts themselves.
Fix for the red promote of 93fd8c11 (prod 28 of 31: 0003:run, 0007:webrtc, 0013:run). Cause: a guest's nftables rules were loaded once, by the bidder binary that booted it; the promote's own VM is booted before channel rc moves, so it never had decision 54's rule and could not dial a guest on its own host over WebRTC.
Change: when a bidder adopts a running guest it reloads that guest's rules from its own rule set: the same function boot uses, table swcguest replaced in one nf_tables transaction, through a netfilter socket opened by our unprivileged stub swc-userns-stage in a new join mode (setns into the VM's user and network namespaces the bidder's uid owns; no new privileges). New staging entry 0007:fence (staging 47): a guest rented on the previous release's bidder, the bidder upgraded under it, then a rent from inside that guest to a guest on the same bidder over WebRTC.
Run out of band: 0007:fence four runs on held staging network stg-989592 (~/.tmp/fence-adopt/proof/): before the upgrade the dial fails with the promote's ICE error and probes pass 0 of 16; after it the rule table holds the 31000-31999 accept to the host's own address, probes pass 40 of 40, the dial returns uname exit 0; a second reload is identical; a held session lives through the reload; after a rollback the newer rules stay (the older binary cannot reload). Strict review: one transaction, the old table kept on any failure, the VMM pinned by pidfd before setns, the adopting binary's own stub, no polling. go build and deploy/check.sh --fast pass on the head. Not run (owner decision 77): the full hand staging cycle: CI's test runs all 47 before promote touches prod. Not provable before the roll: the reload on the prod hosts themselves.
🤖 Generated with Claude Code