Skip to main content

AI Governance: Security, Policies & Compliance

GoRoute governance gives teams control over who can use AI, which models they can reach, and how requests are checked. It also protects provider credentials and limits where the gateway can send traffic. The guides below explain the safeguards and show how to configure them.

Yes No Incoming request Access allowed? Apply request policies Approved provider Reject request

Core Capabilities​

CapabilityImplementationGuide
4-Layer Policy ModelHierarchical fail-closed scoping across Organization → Team → User → Virtual Key for model allowlists, budgets, and rate limits.RBAC & Credential Vault
Operator RBAC & OIDC/JWTRole-based access control for /admin/v1/* and /ui/* supporting Master Admin Keys as well as OIDC/JWT identity mapping.RBAC & Credential Vault
AES-256-GCM Credentials VaultUpstream provider API keys, MCP credentials, and guardrail secrets are encrypted at rest and in transit via internal/storage/vault.go with DEK rotation.RBAC & Credential Vault
Virtual Keys (sk-gw-...)Scoped, revocable data-plane tokens accepted via Authorization: Bearer or x-api-key (with conflict rejection on mismatched dual headers).Virtual Keys
Two-Layer Guardrails Engine (19 Drivers)Pipeline v2 with 7 hooks (pre_call, during_call, post_call, logging_only, pre_mcp_call, during_mcp_call, post_mcp_call), POST /v1/guardrails/apply, Starlark custom_code, WithGuardrailScanner, streaming windowing, and hierarchical bindings (Org → Team → VirtualKey → EndUser → ModelGroup → Tag).Guardrails Engine
Outbound SSRF Firewallinternal/security/network SafeTransport enforces DNS pinning, private-IP/loopback blocking, and link-local address protection on all provider, OTLP, and MCP egress.SSRF & Network Security
Security Headers & CORSStrict HTTP security headers, configurable CORS origins, and production secret validation before startup.Production Readiness Checklist

Fail-Closed Enforcement Flow​

Incoming Request Virtual Key (sk-gw-...) or OIDC/JWT 4-Layer RBAC Check(Org → Team → User → Key) Input Guardrails(enforce or logging_only) Decrypt Upstream Key(AES-256-GCM Vault) Outbound SSRF Firewall(DNS Pinning & CIDR Blocklist) Streaming Output Guardrails(Chunk Filter & Redaction)

Explore Governance Guides​