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
Add an envoyProxy backend that consolidates egress (forward proxy on :3128) and ingress (reverse proxy) into a single container, reducing the auxiliary count from 3 → 2. Opt-in via TOOLHIVE_NETWORK_PROXY=envoy; Squid stays default.
What
Typed protobuf-JSON Envoy bootstrap generator (structs + builders), written to a 0600 temp file and bind-mounted read-only.
Egress: HTTP connection manager with CONNECT upgrade, dynamic_forward_proxy cluster, and RBAC filters — a gateway DENY (L3 CIDR + L7 :authority) followed by an allowlist ALLOW.
Ingress: reverse-proxy listener bound 0.0.0.0:<port> inside the container, routing to a STRICT_DNS upstream cluster targeting the MCP container.
Admin API bound to 127.0.0.1; stdout access logging on both listeners.
Acceptance criteria
Egress enforces AllowHost allowlist, default-deny, and InsecureAllowAll passthrough.
Gateway block (resolved IP + docker-internal hostnames) present unless --allow-docker-gateway.
Ingress reverse-proxies the MCP port; Inbound.AllowHost gating honored.
Egress + ingress in one container → aux count 3 → 2; cleanup handles both Envoy (2) and legacy Squid (3) workloads.
Generated config validates against real Envoy (--mode validate).
Squid remains the default; unknown backend values still fail loudly.
Notes
Config generation is large (~struct-heavy). If it exceeds PR limits, split config-model+generation from the SetupProxies wiring. Design: docs/arch/14-envoy-network-proxy.md.
Activity