MCP gateway with identity · one door, four checks, every call on the record
agentgateway on GKE Autopilot behind a Cloudflare Tunnel · Keycloak OAuth 2.1 · CEL authorisation per tool and role · human approval for destructive tools · PII masked on the way out · ledger in Postgres and BigQuery · traces in Cloud Trace
MCP CLIENTS · anywhere
THE DOOR · mcp.jainosoft.com · GKE Autopilot, namespace mcp
MCP SERVERS · never reachable directly
Claude Code claude mcp add --transport http
Claude Desktop / Cursor custom connector, PKCE in the browser
n8n · agents MCP client node, same identity
GitHub Actions client-credentials, conformance daily
Cloudflare Tunnel TLS at the edge, outbound-only connectors, no load balancer, no public IP
agentgateway v1.7 · Rust · 2 replicas · one /mcp endpoint multiplexing four servers
1 · identity OAuth 2.1 resource server JWT iss · aud · exp · JWKS 401 → resource_metadata
2 · authorisation CEL rules per tool + role tools/list filtered per user 403 before any server
3 · approval destructive tools park a request; admin decides A-xxxxxx · 15 min TTL
4 · record PII masked in output ledger row + span who · what · ms
Keycloak 26 realm mcp · auth.jainosoft.com PKCE public client · audience mapper roles mcp-user / mcp-admin
Approvals console console.jainosoft.com · OIDC login approve / deny · API for agents dashboard: ledger vs gateway log
OpenTelemetry → Cloud Trace a span per tool call JSON access log → Cloud Logging → BigQuery audit.stdout (sink)
Postgres · keycloak · mcp (approvals, audit_log) · demo (customers, orders; read-only role for queries)
audit_log(ts, user, roles, target, tool, args, decision, latency_ms, approval_id, redactions)
approvals(id, user, tool, args, status: pending→approved→consumed | denied | expired, decided_by, decided_at)
ops-db list_tables · describe · query_readonly run_migration ⚠
ops-k8s pods · logs · events · deployments restart_deployment ⚠ · scale ⚠ (demo-apps only)
ops-cloud · Workload Identity instances · Cloud Run · GKE · error logs stop_instance ⚠
GitHub MCP server · official, stdio repos · issues · pull requests (read-only) runs inside the gateway pod
FastMCP · streamable HTTP · stateless · identity headers from the gateway · every tool wrapped: audited / guarded
MEASURED (recorded run)
·
·
·
·
·
bob reads: identity ✓ authorisation ✓ server ✓ masked ✓ recorded bob calls a destructive tool: refused at check 2, no server involved alice restarts a deployment: parked at check 3 until an admin approves, then executes