Zero-Trust Governance for Multi-Tenant Model Context Protocol Gateways
Multi-tenant Model Context Protocol (MCP) deployments need application-level identity, tenant isolation, authorization, audit, and resource governance in addition to the protocol transport. This paper presents a zero-trust gateway architecture that composes identity verification, role-based access control (RBAC), input validation, rate governance, credential protection, and sanitized audit in an ASGI request path. Its policy has seven stages and eight concrete checks: tool availability, tool authorization, user write authorization, write attribution, separate JQL and SQL validation checks, project scope, and write throttling. The warehouse SQL guardrail parses Teradata and Snowflake syntax with sqlglot and enforces configured table and column allowlists; JQL uses a bounded lexical validator and checks every positive project equality and list clause. Tool availability fails closed by default when its registry is absent or unavailable. Rate limiting uses an exact in-memory sliding window locally and an optional atomic Redis sorted-set backend for shared state. Audit persistence can be configured for strict or availability-first behavior. A reproducible local corpus run classified 133 adversarial and 120 benign probes with no false positives or false negatives in the implemented guardrail checks. In end-to-end HTTPX evaluation across 200 steady-state samples per path, 10 automated cold starts, and 10/50/100 concurrent client bursts against a local mock backend, steady-state median latency ranged from 20.007 ms to 34.794 ms and all 160 burst requests succeeded without transport errors.
Authors
- Raheem Mohammed
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-12-02
- DOI
- https://doi.org/10.5281/zenodo.24765691
- Primary Topic
- Access Control and Trust
- Type
- preprint