edge: PROXY protocol v2 from the region NLBs, dormant until armed
The edge reads PPv2 only from its region NLB's node addresses (CARLOS_INGRESS_PROXY_SOURCES), so client IP preservation can go off on the HA target groups without losing client addresses. Adds the trust barrier and alarm, an activation guard against binaries without ingress-proxy-v2, tofu inputs, and the one-way cutover gate and probe. Spec 2026-11-12-edge-proxy-protocol-design.md rev 5.1; plan beside it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Squashed from edge-ppv2 into main.
commands.go+26 −4commands_test.go+36 −0docs/parity.md+1 −1docs/region-ha-runbook.md+133 −0docs/superpowers/notes/census-claims-edge-ppv2.tsv+35 −0docs/superpowers/notes/census-proposal-edge-ppv2.md+62 −0docs/superpowers/plans/2026-11-12-edge-proxy-protocol.md+294 −0docs/superpowers/plans/ASTRA-FINDINGS-edge-ppv2-plan-R1.md+61 −0docs/superpowers/plans/CODEX-REVIEW-BRIEF-edge-ppv2-plan.md+54 −0docs/superpowers/specs/2026-11-12-edge-proxy-protocol-design.md+19 −10infra/modules/region-host/group.tf+2 −2infra/modules/region-host/ingress/alarms.tf+50 −0infra/modules/region-host/ingress/main.tf+24 −1infra/modules/region-host/ingress/outputs.tf+4 −0infra/modules/region-host/ingress/tests/group_ingress.tftest.hcl+206 −0infra/modules/region-host/ingress/variables.tf+52 −0infra/modules/region-host/tests/group.tftest.hcl+50 −0internal/edge/edge.go+20 −0internal/edge/hairpin.go+23 −8internal/edge/ingressdrain.go+4 −1internal/edge/proxyingress.go+443 −0internal/edge/proxyingress_seam.go+12 −0internal/edge/proxyingress_test.go+1,135 −0internal/host/agent.go+7 −5internal/host/edgetrust.go+638 −0internal/host/edgetrust_linux_test.go+172 −0internal/host/edgetrust_test.go+555 −0internal/host/edgetrust_wiring_test.go+136 −0internal/host/execsandboxfloor_test.go+3 −2internal/host/group_maintenance.go+38 −0internal/host/group_maintenance_prepare.go+9 −0internal/host/guardexec.go+80 −27internal/host/hadrain_call.go+16 −6internal/host/hadrain_socket.go+19 −2internal/host/installchannel.go+1 −1internal/host/memwatch.go+71 −19internal/host/proxyfeature.go+244 −0internal/host/proxyfeature_linux_test.go+310 −0internal/host/proxyfeature_test.go+632 −0internal/host/rootmovesfloor_boot.go+19 −3internal/host/systemapply.go+61 −4internal/host/units/carlos-system-recover.service+8 −1internal/hostenv/group.go+3 −0internal/hostenv/hostenv.go+55 −0internal/hostenv/hostenv_test.go+139 −0internal/provision/testdata/plan14-root-reads-chain.tsv+1 −0internal/provision/testdata/plan14-root-reads-edge-ppv2.tsv+62 −0internal/proxyproto/conn.go+357 −0internal/proxyproto/counters.go+79 −0internal/proxyproto/export_test.go+11 −0internal/proxyproto/header.go+130 −0internal/proxyproto/header_test.go+264 −0internal/proxyproto/listener.go+159 −0internal/proxyproto/listener_test.go+763 −0internal/version/features.go+11 −0parity/cli.tsv+4 −0parity/parity.tsv+1 −1scripts/ppv2-probe.py+333 −0scripts/ppv2-step.py+1,689 −0scripts/ppv2_probe_test.py+256 −0scripts/ppv2_step_test.py+1,870 −0scripts/testdata/ppv2/plan-a80.json+59 −0scripts/testdata/ppv2/probe-responses.json+37 −0scripts/testdata/ppv2/tofu-state-show-tg80.jsonl+2 −0scripts/testdata/ppv2/trust-status.json+17 −0system.go+25 −0testdata/clireg-golden.jsonl+14 −0
CI passed — run details
commands.goLoading diff…
commands_test.goLoading diff…
docs/parity.mdLoading diff…
docs/region-ha-runbook.mdLoading diff…
docs/superpowers/notes/census-claims-edge-ppv2.tsvLoading diff…
docs/superpowers/notes/census-proposal-edge-ppv2.mdLoading diff…
docs/superpowers/plans/2026-11-12-edge-proxy-protocol.mdLoading diff…
docs/superpowers/plans/ASTRA-FINDINGS-edge-ppv2-plan-R1.mdLoading diff…
docs/superpowers/plans/CODEX-REVIEW-BRIEF-edge-ppv2-plan.mdLoading diff…
docs/superpowers/specs/2026-11-12-edge-proxy-protocol-design.mdLoading diff…
infra/modules/region-host/group.tfLoading diff…
infra/modules/region-host/ingress/alarms.tfLoading diff…
infra/modules/region-host/ingress/main.tfLoading diff…
infra/modules/region-host/ingress/outputs.tfLoading diff…
infra/modules/region-host/ingress/tests/group_ingress.tftest.hclLoading diff…
infra/modules/region-host/ingress/variables.tfLoading diff…
infra/modules/region-host/tests/group.tftest.hclLoading diff…
internal/edge/edge.goLoading diff…
internal/edge/hairpin.goLoading diff…
internal/edge/ingressdrain.goLoading diff…
internal/edge/proxyingress.goLoading diff…
internal/edge/proxyingress_seam.goLoading diff…
internal/edge/proxyingress_test.goLoading diff…
internal/host/agent.goLoading diff…
internal/host/edgetrust.goLoading diff…
internal/host/edgetrust_linux_test.goLoading diff…
internal/host/edgetrust_test.goLoading diff…
internal/host/edgetrust_wiring_test.goLoading diff…
internal/host/execsandboxfloor_test.goLoading diff…
internal/host/group_maintenance.goLoading diff…
internal/host/group_maintenance_prepare.goLoading diff…
internal/host/guardexec.goLoading diff…
internal/host/hadrain_call.goLoading diff…
internal/host/hadrain_socket.goLoading diff…
internal/host/installchannel.goLoading diff…
internal/host/memwatch.goLoading diff…
internal/host/proxyfeature.goLoading diff…
internal/host/proxyfeature_linux_test.goLoading diff…
internal/host/proxyfeature_test.goLoading diff…
internal/host/rootmovesfloor_boot.goLoading diff…
internal/host/systemapply.goLoading diff…
internal/host/units/carlos-system-recover.serviceLoading diff…
internal/hostenv/group.goLoading diff…
internal/hostenv/hostenv.goLoading diff…
internal/hostenv/hostenv_test.goLoading diff…
internal/provision/testdata/plan14-root-reads-chain.tsvLoading diff…
internal/provision/testdata/plan14-root-reads-edge-ppv2.tsvLoading diff…
internal/proxyproto/conn.goLoading diff…
internal/proxyproto/counters.goLoading diff…
internal/proxyproto/export_test.goLoading diff…
internal/proxyproto/header.goLoading diff…
internal/proxyproto/header_test.goLoading diff…
internal/proxyproto/listener.goLoading diff…
internal/proxyproto/listener_test.goLoading diff…
internal/version/features.goLoading diff…
parity/cli.tsvLoading diff…
parity/parity.tsvLoading diff…
scripts/ppv2-probe.pyLoading diff…
scripts/ppv2-step.pyLoading diff…
scripts/ppv2_probe_test.pyLoading diff…
scripts/ppv2_step_test.pyLoading diff…
scripts/testdata/ppv2/plan-a80.jsonLoading diff…
scripts/testdata/ppv2/probe-responses.jsonLoading diff…
scripts/testdata/ppv2/tofu-state-show-tg80.jsonlLoading diff…
scripts/testdata/ppv2/trust-status.jsonLoading diff…
system.goLoading diff…
testdata/clireg-golden.jsonlLoading diff…