Skip to content

feat: transparent proxy mode for zero-code interception #2480

@imran-siddique

Description

@imran-siddique

Summary

Add a transparent proxy/tunnel mode so AGT's governance sidecar can intercept agent traffic without requiring the agent to make explicit API calls.

Problem

AGT's current sidecar deployment requires the orchestration layer to explicitly call the sidecar HTTP API (e.g., POST /api/v1/check-policy). This means:

  • It's not truly "zero-code" integration (Tier 0)
  • Agents that don't know about AGT can't be governed
  • Retrofitting governance onto existing agent deployments requires code changes

The docs in docs/deployment/openclaw-sidecar.md explicitly note: "The orchestration layer must call the sidecar API." This is the biggest gap in AGT's zero-code story.

Proposed design

Tunnel-based transparent interception

Deploy AGT as a forward proxy that the agent's traffic routes through automatically (via network config, not code changes). The proxy:

  1. Intercepts outbound connections (HTTP/HTTPS, MCP over stdio/SSE)
  2. Parses the request at the protocol level
  3. Evaluates policy rules against the parsed request
  4. Forwards allowed requests, blocks denied requests
  5. Logs every decision to the audit trail

Deployment options

  1. Network namespace proxy (Linux): Run the agent in a network namespace where all outbound traffic routes through AGT's proxy process
  2. Docker network proxy: Configure Docker networking so the agent container's traffic routes through an AGT sidecar container
  3. Kubernetes sidecar with iptables: Use init container to redirect outbound traffic through AGT sidecar (Istio-style)
  4. Environment variable proxy: Set HTTP_PROXY/HTTPS_PROXY for HTTP-only interception (simplest, least coverage)

What changes vs. current sidecar

Current sidecar Transparent proxy
Agent calls AGT API explicitly Agent traffic routed through AGT automatically
Agent must know AGT exists Agent is unaware of AGT
HTTP API only Protocol-aware (HTTP, MCP, potentially more)
Requires code changes Requires network config only

Acceptance criteria

  • At least one transparent interception mode implemented (Docker network proxy recommended for MVP)
  • HTTP/HTTPS traffic intercepted and policy-evaluated
  • MCP over SSE traffic intercepted and policy-evaluated
  • Audit log captures all intercepted requests and verdicts
  • No changes required to agent code
  • Documentation with Docker Compose example
  • Performance benchmarks (latency overhead of proxy)
  • docs/integration-tiers.md updated to reflect true Tier 0 capability

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions