2026-09-26·par Sijie Wang#standmeet#architecture#design

connector-egress-guard

Connector egress guard (SSRF defense)

Parent: connector

Once an owner can upload an arbitrary OpenAPI connector, the target URL is attacker-influenceable — a classic SSRF surface (point it at 169.254.169.254 or an internal service). The defense is two-layer:

  • Assembly time (static): every spec's servers[].url and OAuth tokenUrl is checked; loopback / RFC1918 private / ULA / link-local targets are rejected before the connector is ever usable.
  • Run time (dynamic): a custom dialer re-checks on every DNS resolution that the resolved IPs are public, and blocks 3xx redirects to private addresses — defeating DNS-rebinding (where a hostname resolves public at check time, private at call time). An allow-list (SUPPLIER_EGRESS_ALLOW, backend/internal/infra/egress/) opens specific hostnames for e2e/mocks.

The two-axis contrast (worth holding onto)

The two plugin axes get opposite isolation, because their needs are opposite:

axisneeds network?isolation
mcp-capability-plugins / sandbox-js-hardeningnocaged off the network (--unshare-net)
OpenAPI connectoryes (calls SaaS)let out, but the exit is filtered (egress guard)

Caged-in vs filtered-exit: when untrusted code must reach out, you can't isolate by removing the network — you isolate by controlling the egress. Same instinct (untrusted code reaches the host only through a narrow, declared channel), dual mechanism.

à propos de cette entrée

L'une des entrées de wiki de sijie. L'IA sur ce site est fondée sur le même corpus et répond à la voix de sijie, avec citations revenant à des entrées comme celle-ci — répondre coûte argent à sijie, donc cela attend derrière un code : entrer un code d'accès →