Skip to content

Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure

TypeScript

fix(guardrails): mcp-host broad-egress except, done in the right layer (n12)

Andy Pavia0286f86c4908
diff --git a/deploy/base/mcp-host/networkpolicies.yaml b/deploy/base/mcp-host/networkpolicies.yaml
index 6e19ab465..26d74c953 100644
--- a/deploy/base/mcp-host/networkpolicies.yaml
+++ b/deploy/base/mcp-host/networkpolicies.yaml
@@ -110,7 +110,29 @@ spec:
to:
- ipBlock:
cidr: 0.0.0.0/0
- except: []
+ # Public-internet only (N12): exclude cluster pod/service/node CIDRs and
+ # all private/link-local/metadata/reserved ranges — the SAME list HCC
+ # applies to mcp-server public-web egress (PUBLIC_EGRESS_EXCEPT_CIDRS).
+ # Internal deps ride separate dedicated lanes above, so this is safe.
+ except:
+ - 0.0.0.0/8
+ - 10.0.0.0/8
+ - 100.64.0.0/10
+ - 127.0.0.0/8
+ - 169.254.0.0/16
+ - 172.16.0.0/12
+ - 192.0.0.0/24
+ - 192.0.2.0/24
+ - 192.31.196.0/24
+ - 192.52.193.0/24
+ - 192.88.99.0/24
+ - 192.168.0.0/16
+ - 192.175.48.0/24
+ - 198.18.0.0/15
+ - 198.51.100.0/24
+ - 203.0.113.0/24
+ - 224.0.0.0/4
+ - 240.0.0.0/4
# http_request tool: external HTTP with the same public-only boundary.
- ports:
- port: 80
@@ -118,7 +140,29 @@ spec:
to:
- ipBlock:
cidr: 0.0.0.0/0
- except: []
+ # Public-internet only (N12): exclude cluster pod/service/node CIDRs and
+ # all private/link-local/metadata/reserved ranges — the SAME list HCC
+ # applies to mcp-server public-web egress (PUBLIC_EGRESS_EXCEPT_CIDRS).
+ # Internal deps ride separate dedicated lanes above, so this is safe.
+ except:
+ - 0.0.0.0/8
+ - 10.0.0.0/8
+ - 100.64.0.0/10
+ - 127.0.0.0/8
+ - 169.254.0.0/16
+ - 172.16.0.0/12
+ - 192.0.0.0/24
+ - 192.0.2.0/24
+ - 192.31.196.0/24
+ - 192.52.193.0/24
+ - 192.88.99.0/24
+ - 192.168.0.0/16
+ - 192.175.48.0/24
+ - 198.18.0.0/15
+ - 198.51.100.0/24
+ - 203.0.113.0/24
+ - 224.0.0.0/4
+ - 240.0.0.0/4
---
# ─── L1: K8s API server egress (HCC-managed mcp-host pods) ────────────────────
# Required for getHost() and other K8s API calls in production mode.