Skip to main content

What It Does

Every agent pod includes an Envoy proxy sidecar that:
  1. Terminates mTLS using the agent’s X.509 SVID
  2. Extracts SPIFFE ID from the client certificate
  3. Queries OPA for authorization decisions
  4. Routes traffic to platform services (Gateway, Vault, Credential Injector)
  5. Emits metrics for every request

Traffic Flow

All outbound traffic from the agent container passes through Envoy, which upgrades it to mTLS using the process-specific SVID.

OPA Integration

Envoy calls OPA as an external authorization filter:
OPA policies can enforce:
  • Which processes can access which services
  • Rate limiting per identity
  • Time-based access restrictions
  • Region-based routing

Ports


Configuration

Envoy is configured via xDS from the Hexr control plane, not static config files. Key settings: