API, AI and MCP Governance: the Triple Gate PoC
Three enforcement points that govern API, AI (LLM), and agent (MCP) traffic as defense in depth. Everything is reconciled declaratively by ArgoCD on a single-node Kubernetes homelab, no GPU required. The gateway under test here is Traefik Hub, but the gate model and the benchmark method are vendor-neutral by design.
What this is
A reproducible benchmark method for API, AI and agent governance, built and documented step by step so you can run it yourself, against this gateway or another one. It doubles as a portfolio piece; quality and clarity are first-class goals alongside "it works".
The three gates
| Gate | What it enforces |
|---|---|
| Gate 1: API Gateway | Identity (JWT/OAuth-style auth) and abuse control (rate limiting) on a sample REST API. |
| Gate 2: AI Gateway | Governance on LLM traffic: Content Guard (regex PII/keyword), LLM Guard (hosted NVIDIA safety model), semantic cache, token rate-limit/quota, and multi-provider failover. |
| Gate 3: MCP Gateway | Tool-level access control (TBAC) for Model Context Protocol servers: only specific identities may call specific tools. |
Why "defense in depth"
The gates compose. A prompt-injection attempt that tries to make an agent exfiltrate data can be stopped or constrained at multiple layers: refused auth at the edge, scrubbed by a content guard, denied a tool by TBAC. The Unified Demo walks one scripted end-to-end scenario through all three.
How to use this site
- Prerequisites: stand up the homelab and verify every tool and SaaS dependency live.
- Architecture: the gates, what each enforces, and the end-to-end request flow.
- The Three Gates: one tutorial chapter each: API, AI, MCP.
- Unified Demo: the multi-gate attack scenario.
- Observability: OpenTelemetry + Prometheus + Grafana findings.
- Evaluation Notes: what impressed, what I'd flag, and how this GitOps model sits next to the other API management platforms in the market.
Built and documented by Yassine TEIMI. All tokens come from a gitignored
.env; this public site contains zero secrets.