Component: PEP — Gateway
What it is: agentic-auth-gateway, a shared central proxy — the same decide → exchange → forward logic
as the sidecar, at one choke point serving many agents instead of one
sidecar per agent process.
What it does: runs the sidecar's own enforce() unmodified, so the two reach the same
decisions by construction. It is stateless, so several instances run behind a load balancer.
It fails closed: a control plane that is unreachable, or slower than the decision deadline,
means a refused call. It holds no agent's signing key; agents supply their identity headers
and the gateway relays them.
Why "must fail closed" is called out explicitly for this component and not just implied: a gateway is a single choke point for a whole fleet, unlike a per-process sidecar. A silent pass-through here has a far larger blast radius than one sidecar failing open, so Phase 5's design makes this a hard requirement rather than an implementation detail left to whoever builds it.
As an OAuth protected resource (0.4.0): the gateway takes the same
AGENTIC_AUTH_GATEWAY_OAUTH_RESOURCE_ENABLED settings as the connector proxy, and runs the same
gate in front of the same enforce(): metadata, 401 challenges, local token validation, a
session through consent, and no client token forwarded. Observe mode is refused with it, since
the only token observe mode could forward for a would-be denial is the client's.
Related
- Deploy the gateway PEP
- How an MCP client's login becomes per-hop authority
- Enforcement point tradeoffs
- PEP — Sidecar — the logic this centralizes