edge-ppv2
PROXY protocol v2 on the region HA load balancers: edge, agent, guard, tofu and cutover tooling. Implements docs/superpowers/specs/2026-11-12-edge-proxy-protocol-design.md (rev 5.1) per docs/superpowers/plans/2026-11-12-edge-proxy-protocol.md.
Dormant: nothing changes on a box until CARLOSINGRESSPROXY_SOURCES is set in its host.env, and no target group changes until an operator runs scripts/ppv2-step.py in a #421 window (dev IE first, then flagship US before G6; each first-of-kind step needs the agent manager's GO).
What it adds:
- internal/proxyproto: a PPv2 parser and a listener whose connections resolve the header lazily and trust only listed NLB node addresses.
- Edge: wraps :80/:443 when armed; connections without a client answer only lb-health; a persistent trust barrier; journal counters; per-listener counts.
- Agent: system edge trust-barrier, trust-resume and trust-status over the drain socket; the IngressProxyTrustViolations metric.
- Activation guard: an armed box refuses any binary without ingress-proxy-v2 on apply, adoption, install-channel, rollback, recovery and guard-exec, before any disruption; carlos version --json.
- Tofu: per-port preserve/PPv2 maps with S3 refused, NLB node address output, trust and port-allocation alarms, and the group precondition.
- Scripts: ppv2-step.py (prereq, apply, converge, reverify, sync-tfvars), the S3 gate with chained convergence records, and ppv2-probe.py.
- Runbook section; census overlay edge-ppv2 (approved by Astra in the final re-review); parity row.
Reviews: plan reviewed by Astra; every task reviewed by Astra (plus Fable 5.2 on security tasks) with fix loops; whole-branch Astra and Fable 5.2 reviews READY AFTER FIXES, then one fix wave (W1-W16) and a scoped re-review, ALL ADDRESSED. Cost recorded in spec section 7.3: after A80 on a region's NLB, no build below vN may run on its targets. Owed before release: copy review of the operator text (verb help and errors, refusal text, alarm descriptions). Owed before the dev cutover: a procedure to refresh an installed guard binary on guard-armed boxes.
Discussions
- No discussions on this branch yet.
Tasks
- No tasks yet.
Activity
- paul@keymail.dev pushed 15807e28f census: rerun edge-ppv2 proposal after the final review fixes
- paul@keymail.dev pushed 74bfaf4ee docs: PPv2 runbook and spec rev 5.1 for the final review fixes
- paul@keymail.dev pushed d7a06976a ppv2-step: watch both TGs from before apply; per-port B evidence
- paul@keymail.dev pushed f6313b2bc edge ppv2: final review fixes in the edge, host guard and proxyproto
- paul@keymail.dev pushed dcc1f076b census: rerun edge-ppv2 proposal on the merged tree
- paul@keymail.dev pushed 489687189 docs: runbook PPv2 probe expectations and health watch
- paul@keymail.dev pushed 512e0874f Merge origin/main into edge-ppv2 (region HA unclean release)
- paul@keymail.dev pushed 44c7c916e docs: runbook PPv2 section follows the current step tool
- paul@keymail.dev pushed a4883d212 scripts: ppv2-step S3 guard reads every saved poll, verdict or not
- paul@keymail.dev pushed 2b6970662 scripts: ppv2-step round 2: health to the record, reverify fixes
- paul@keymail.dev pushed a47ca6b5a scripts: ppv2-step reverify and a 5 s clock tolerance on spans
- paul@keymail.dev pushed 1077a2e07 scripts: PPv2 gate fixes: bound evidence, steady polls, locked apply
- paul@keymail.dev pushed ab28a84f9 census, parity and CLI docs for edge PPv2
- paul@keymail.dev pushed fd2863f9f docs: region HA runbook, PPv2 cutover and the vN floor
- paul@keymail.dev pushed 900852a9a scripts: PPv2 step gate, convergence record and probe
- paul@keymail.dev pushed 755e33f61 system: guard guard-exec, group permits, restore copy, invalid key
- paul@keymail.dev pushed 8b3a5281d infra: PPv2 attributes, NLB sources output, trust alarms
- paul@keymail.dev pushed 22bde8a21 system: refuse binaries without ingress-proxy-v2 on armed boxes
- paul@keymail.dev pushed 3c4245d50 host: trust routes only when armed; validate answers; warn metric off
- paul@keymail.dev pushed c6113bd82 host: trust barrier verbs and the trust-violation metric
- paul@keymail.dev pushed 45bfd14e0 edge: barrier holds on write failure, bars open proxied conns
- paul@keymail.dev pushed 8992f0cf5 edge: parse PPv2 from the NLB, health-only gate, trust barrier
- paul@keymail.dev pushed 8bfe012fb proxyproto: pin header deadline, marker order and mapped peers
- paul@keymail.dev pushed e19d88b2c hostenv: CARLOS_INGRESS_PROXY_SOURCES with validation
- paul@keymail.dev pushed abe11a77a proxyproto: listener with lazy parse state and barrier hook
- paul@keymail.dev pushed 21eda903b proxyproto: PPv2 header parser
- paul@keymail.dev pushed b80900597 plan: edge PPv2, Astra plan review applied
- paul@keymail.dev pushed fd950fe37 plan: edge PROXY protocol v2 implementation (9 tasks)