Website · Docs · Playground · Agent registry · Manifesto
Zentinel is a reverse proxy and API gateway written in Rust, built on Cloudflare's Pingora. It does what you run nginx, HAProxy or Envoy for (routing, TLS, load balancing, caching, health checks) and moves everything risky out of the proxy: WAF, auth, bot checks and custom logic run as agents, separate processes with their own timeouts and failure modes.
flowchart LR
C[Clients] --> Z
subgraph Z[Zentinel]
direction TB
P[Routing · TLS · Load balancing · Caching]
end
Z --> U[Your services]
Z <-. agent protocol v2 .-> A1[WAF]
Z <-. agent protocol v2 .-> A2[Auth]
Z <-. agent protocol v2 .-> A3[Your own agent]
Why have a look
- A plugin can't take the proxy down. Agents talk to the proxy over a
versioned protocol (Unix socket or gRPC). A slow or crashing agent is cut off
by its timeout and handled by its
failure-mode(closedrefuses,openpasses); the dataplane keeps serving. - Configuration you can check before it runs. One KDL file, validated by
zentinel testandzentinel lint: wrong types, unknown keys and settings that would be silently ignored are errors or warnings, not surprises in production. A converter translates nginx, HAProxy, Traefik, Caddy and Envoy configs. - A WAF that runs the OWASP Core Rule Set without C. The pure-Rust ModSecurity engine passes 96% of the CRS regression suite (4,979 of 5,184 cases); the libmodsecurity agent is there when you need the reference engine.
- Ready for agent and model traffic. Routes for MCP, A2A and LLM inference, with token rate limits and budgets, next to ordinary HTTP and gRPC.
- The operational basics, explicit. ACME certificates, configuration reload, bounded resources, Prometheus metrics and OpenTelemetry tracing, a Kubernetes Gateway API controller, and an SBOM and SLSA provenance with every release.
The mascot is a shisa, the guardian that sits at the gate in Okinawa: calm for ordinary traffic, firm where a rule says so.
Run it. Install, write a short config, and proxy your first service:
curl -fsSL https://get.zentinelproxy.io | sh
zentinel test -c zentinel.kdl # validate
zentinel -c zentinel.kdl # runThe quick start has the config, and the docs take it from there.
Try it without installing. The playground validates a configuration in your browser, and the converter turns an nginx, HAProxy, Traefik, Caddy or Envoy config into Zentinel's.
Extend it. Add a WAF, authentication or any of the agents below with
zentinel bundle install <agent>, or write your own in Rust, Go, Python,
TypeScript, Kotlin, Elixir or Haskell with the SDKs.
From the manifesto:
- Infrastructure should be calm. Clear limits, predictable timeouts, failure modes you can explain to another human.
- Security must be explicit. Every limit and decision is visible in configuration and observable in metrics and logs.
- The edge is a boundary, not a battleground. Step in only when necessary, and proportionally.
- Complexity must be isolated. The dataplane stays small; anything risky lives in agents, behind process boundaries.
- The web is a commons. Read the code, fork it, run it independently. No hidden control planes.
| Repository | What it does |
|---|---|
zentinel |
The proxy: routing, TLS, load balancing, caching and the agent pipeline |
zentinel-modsec |
Pure Rust ModSecurity rule engine with OWASP CRS compatibility |
zentinel-convert |
Converts nginx, HAProxy, Traefik, Caddy and Envoy configs to Zentinel KDL (online) |
zentinel-control-plane |
Fleet management for Zentinel proxies (Elixir/Phoenix) |
zentinel-helm |
Helm chart for running Zentinel on Kubernetes |
pingora |
Zentinel's Pingora fork, published as the zentinel-pingora-* crates |
zentinel-hub |
Deprecated Go fleet manager, superseded by zentinel-control-plane |
Each agent has a page in the agent registry and installs with zentinel bundle install <name>.
Security agents: WAF, ModSecurity and CRS, auth, bots, IP reputation, API and protocol protection
| Agent | What it does |
|---|---|
auth |
JWT, API keys, Basic, OIDC, SAML, mTLS client certificates, Cedar authorization |
waf |
Pure Rust WAF with its own detection rules and anomaly scoring |
zentinelsec |
ModSecurity-compatible WAF that loads the OWASP CRS, built on zentinel-modsec (no C dependencies) |
modsec |
ModSecurity WAF through libmodsecurity bindings |
denylist |
Blocks requests by IP, CIDR range and pattern |
ratelimit |
Token bucket rate limiting |
bot-management |
Bot detection and management |
ip-reputation |
Checks client IPs against threat intelligence feeds and blocklists |
ai-gateway |
Pattern-based prompt injection, jailbreak and PII checks for LLM API traffic |
graphql-security |
GraphQL query depth, complexity and introspection control |
grpc-inspector |
gRPC authorization, rate limiting and metadata inspection |
websocket-inspector |
WebSocket content filtering, schema validation and rate limiting |
soap |
SOAP/XML validation, WSDL enforcement and XXE protection |
mqtt-gateway |
Topic ACLs, client auth and payload inspection for MQTT over WebSocket |
content-scanner |
Malware scanning of request bodies with ClamAV |
spiffe |
SPIFFE/SPIRE workload identity |
policy |
Policy evaluation with Rego (OPA) and Cedar |
audit-logger |
Structured audit logging with PII redaction |
Extensibility and other agents: Lua, JavaScript, WebAssembly, transforms, testing and resilience
| Agent | What it does |
|---|---|
lua |
Custom request/response logic in Lua |
js |
Custom request/response logic in JavaScript (QuickJS) |
wasm |
Runs WebAssembly modules in the request pipeline (wasmtime) |
transform |
URL rewrites, header changes and JSON body transforms |
image-optimization |
On-the-fly JPEG/PNG to WebP/AVIF conversion with caching |
api-deprecation |
Deprecation/Sunset headers, redirects and blocking for retired endpoints |
mock-server |
Configurable stub responses for testing |
chaos |
Controlled fault injection for resilience testing |
Build your own agent against agent protocol v2 (protocol docs).
| Language | Repository |
|---|---|
| Rust | zentinel-agent-rust-sdk |
| Go | zentinel-agent-go-sdk |
| Python | zentinel-agent-python-sdk (install from the repository; not on PyPI) |
| TypeScript | zentinel-agent-typescript-sdk |
| Kotlin | zentinel-agent-kotlin-sdk |
| Elixir | zentinel-agent-elixir-sdk |
| Haskell | zentinel-agent-haskell-sdk |
| Repository | What it does |
|---|---|
zentinelproxy.io |
The website, zentinelproxy.io |
zentinelproxy.io-docs |
Versioned documentation, docs.zentinelproxy.io |
registry.zentinelproxy.io |
The agent registry, registry.zentinelproxy.io |
api.zentinelproxy.io |
Static JSON API for agent registry and bundle metadata, used by zentinel bundle |
design |
Design tokens and marks shared by the sites |
zentinel-bench |
Benchmarks against Envoy, HAProxy and nginx (results) |
wafworth |
WAF-agnostic test suite with confusion-matrix metrics and multi-WAF comparison |
.github |
This organization profile |
Zentinel is shaped by everyone who has sent a fix, a review or a release. Thank you.
New here? The open issues are a good place to start, and the contributing guide explains how changes are reviewed.
Part of Zentinel, the security-first reverse proxy. The shisa guards the gate.