Skip to content
template · v0.1 · MIT

LLM Gateway Governance Config

A governance config for an LLM gateway. It decides who may call which model, what gets redacted, how long logs are kept and the rate and fallback rules.

Available as a page on this site. A repository copy is not published yet.

Published · Updated

Contents

What is inside

Usage

How to use it

Use the schema on this page to build your own policy file, with one row per team or workflow that calls a model. Start with whatever is already in production. Route every model call through the gateway before a second application starts talking to a model directly. Review your file on the same schedule as your AI register.

Detail

In my words

What this is

A policy file for whichever LLM gateway you run, hosted or self-built. It is the config, not the gateway itself. The decisions live in a file your team reviews, not in a script only one engineer remembers.

The policy schema

KeyWhat it controlsExample
allowed_modelsWhich providers and model versions a team may calltwo named models, not an open list
redactFields stripped before a prompt or response is logged or forwardedemail, national_id, card_number
rate_limitCalls per minute before the gateway queues or refusesa ceiling per team, not per user
log_retentionHow long a request and response pair is keptmatches your data retention policy, not a default
fallbackWhat happens if the primary provider is downa named second provider, or a hard failure

Logging and retention

The logging schema borrows its shape from the EU AI Act’s Article 12, which requires automatic event logs for high-risk systems. Not every call through a gateway is high-risk. The habit costs little to build in now. It is expensive to retrofit once a regulator or a customer asks first.

The allowed_models and log_retention keys map to two NIST SP 800-53 control families: Access Control and Audit and Accountability. Procurement questionnaires often draw on this catalogue, even when nobody names it.

What it is not

It is not a gateway, and it will not stop a determined engineer from calling a model directly. It makes an unrouted call a shadow AI finding. That is the layer the 90-Day Production Sprint puts in front of a workflow before it counts as production.

Next step

Filling these in is the hard part.

If you want them filled in against the systems you already run, that is the two-week Assessment.

Book a 30-min fit call

Or email hello@meshin.co