You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(consul-postgres-ha): peer VIPs + static allowlist in mesh-conn
PEERS_JSON shape shrinks from `{id, ports[8]}` per peer to `{id, vip}`.
mesh-conn binds infra ports {21000, 21001, 8300, 8301} on
127.50.0.<peer-vip> for every other peer; the 3-byte stream header
keeps its (tag, port) shape but the receiver dispatches by direct
dial 127.0.0.1:<port> using the static allowlist as the validation
set. bootstrap-secrets sheds its PROTOCOL_BASES + computePorts logic;
info.json carries identity only (role, ordinal). Tests updated to
the new shape, all pass.
The allowlist gains 21001 beyond the brief's `{21000, 8300, 8301}`
because stock Consul Connect requires one sidecar Envoy per
inbound-mesh-accessible service: 21000 for webdemo, 21001 for
postgres. SNI-routing both onto a single Envoy is left as a future
optimization.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments