region HA P3b T5: recognize empty dormant IPv4 inventory
ip -j -4 addr omits interfaces with no IPv4 addresses. Accept its empty array only when verifying dormant state after a successful command; active inventories, null and malformed output still refuse.
Paul Campbellpushed by claude agent, operated by paul@keymail.dev85a0c31bc1c7b4d5d7ba9a8041a1255074de671eparent fa1fd2c
2 files changed,
+9−0
internal/hairpin/native_linux.go+5−0
internal/hairpin/native_linux_test.go+4−0
Intent
Humancodex~paul@keymail.dev
<task-notification>
<task-id>ac0e1092f30d487de</task-id>
<tool-use-id>toolu_01UJL7vvpVF7xcBymBu47S87</tool-use-id>
<output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/05c816f1-0a2d-43e3-9285-de8352549786/tasks/ac0e1092f30d487de.output</output-file>
<status>completed</status>
<summary>Agent "Review Task 5 (spec + quality)" finished</summary>
<note>A task-notification fires each time this agent stops with no live background children of its own. The user can send it another message and resume it, so the same task-id may notify more than once.</note>
<result>**Verdict:** ready for the root-runner run once P2-1 is fixed, and I strongly recommend fixing P2-2 first. Counts: P1 0, P2 2, P3 7. No finding is in the SAME FAMILY (rule 2), so nothing needs to go to Paul.
The design holds the stated invariant for every caller. The fence sits in the global OUTPUT and INPUT hooks, so it applies equally to tenant, sidecar, rootfs, root and agent, since all of them use the host network namespace. I checked several bypass routes and none gets through: IPv4-mapped IPv6, fragments, UDP and other protocols, and a tenant binding port 80 or 443 while the edge is down. The NLB only exposes TCP 80/443, so the dormant fence blocks no legitimate traffic.
The cgroup egress filter still sees the requested EIP, because nothing rewrites the address. The existing UDP probe still gets EPERM, because the nft drop runs before the cgroup filter. Enable order, removal order, admission coupling, process replacement, the Task 4 permit hook (it survived the merge), the verified public address (7 IMDS requests, within the budget of 8) and the non-Linux "unsupported" result all match the rulings. Fixed boxes keep the original code path at every new call site I traced.
I suspected that a 5-second read deadline in the root handler would cut root operations short. A throwaway Go program in `$TMPDIR` disproved it, so it is not a finding.
**P2 (both are gaps in the root-runner test's design):**
- **P2-1:** the external-peer check skips the case when the TCP connect fails (`group_hairpin_rootrunner_linux_test.go:844-847`). The "accept EIP-local connection from a non-local peer" mutation could therefore pass without ever testing the refusal. A failed connect should fail the test.
- **P2-2:** the test runs root's hairpin code in the root test process (lines 173-181), not under the production `carlos-instance-control.service` sandbox plus its `60-hairpin` drop-in. As written, the dev box would be the first place `ip` and `nft` run under that sandbox. If they are refused there, a newly launched member closes after its lifecycle CONTINUE.
**P3:**
1. Group boxes call `systemctl set-property` every 10 seconds, even when nothing changed (`hardening.go:383`).
2. After removal, production checks addresses but not the local routes left on the hairpin interface (`native_linux.go:259,352`).
3. The test's #367 checks pass on the templates' own deny lists, so they never actually test the slice-level deny.
4. Task 7 must allow for two things: `clearGroupHairpin` needs netlink, which `carlos-system-update.service` lacks, and `ReadWritePaths=/run/carlos-hairpin` has no `-` prefix, so instance-control fails at startup when the directory is missing (as after a reboot).
5. The test never probes ICMP or other protocols, and does not cover the brief's "no rewrite loops" item.
6. The test cannot catch the "exempt without the fence" mutation; only the pure test does.
7. The hairpin strips fewer client-address headers than the door does. This is not worse than the public NLB path.
Full review: `/home/paulca/amadan.net/carlos/platform/.claude/worktrees/region-ha-p3b-build/.superpowers/sdd/2026-11-04-region-ha-p3b-group/task-5-review-r1.md`</result>
<usage><subagent_tokens>243216</subagent_tokens><tool_uses>57</tool_uses><duration_ms>1035957</duration_ms></usage>
</task-notification>