carlos / platform Public

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.

Commits 28
Discussions 0 0 open
Tasks 0/0 done

Discussions

  • No discussions on this branch yet.

Tasks

  • No tasks yet.

Activity