Network boundary for AI agents using NGINX and OpenTelemetry
Summary
A network boundary solution for AI agents, developed by Marko Sluga of F5 and posted on July 8, 2026, utilizes NGINX and OpenTelemetry to enhance operational and security control. This approach addresses concerns about agentic autonomy by creating an enforced and observable network perimeter without new infrastructure. NGINX acts as both a reverse proxy for inbound traffic and a forward proxy for outbound requests, with iptables rules ensuring all egress traffic passes through it. The NGINX native OpenTelemetry module emits OTEL spans for every request, enabling traffic flow observability and correlation of user interactions with agent-initiated external calls. The design was validated using a single-node Kubernetes cluster running NGINX, Ollama, OpenClaw, and an OpenTelemetry Collector, demonstrating its applicability across various platforms from edge devices to enterprise AI infrastructure. This method focuses on controlling network behavior, not agent intent, and serves as one layer in a defense-in-depth strategy.
Key takeaway
For AI Security Engineers or MLOps teams deploying autonomous agents, you should implement a robust network boundary using NGINX and OpenTelemetry. This approach provides critical traffic control and observability, ensuring agent network access is enforced and auditable. While it doesn't guarantee agent intent, it forms a vital layer in your defense-in-depth strategy, complementing higher-level guardrails. Consider exploring the OpenClaw Network Boundary repository for a practical deployment example.
Key insights
Enforce and observe AI agent network access using existing cloud-native tools like NGINX and OpenTelemetry.
Principles
- Network boundaries are architectural properties, not just policies.
- Combine traffic control with audit for agent security.
- Open standards enable deployable, familiar operational tooling.
Method
Deploy NGINX as a dual reverse/forward proxy with iptables for egress control, using its OpenTelemetry module to emit spans for all agent requests.
In practice
- Implement fine-grained, application-aware traffic shaping rules.
- Correlate user interactions with agent external calls via OTEL spans.
- Feed OTEL spans into SIEM, Jaeger, or Grafana for auditing.
Topics
- AI Agents
- Network Security
- NGINX
- OpenTelemetry
- Kubernetes
- Observability
Code references
Best for: AI Engineer, MLOps Engineer, AI Security Engineer
Related on AIssential
Editorial summary, takeaway, and curation by AIssential. Original article published by Cloud Native Computing Foundation.