Skip to main content

Enforce at your own gateway

Your gateway keeps carrying your agents' traffic. On each call it asks MeetLoyd one question - may this agent do this? - and enforces the answer. Nothing of the agent changes: not its code, not its platform, not its model.

The same decision answers three things:

  • Which tools the agent may call on an MCP server.
  • Where it may send data: which hosts, and whether it may write to them.
  • Which models it may use at a model provider, with the tokens of every answer recorded.

The answer comes from a decision server that holds a live copy of your rules, close to your gateway, in milliseconds. Change a rule, revoke a key or halt an agent in MeetLoyd, and every gateway applies it within about a second.

Gateways it works with​

GatewayHow it asks
Envoyext_authz (gRPC), or ext_proc when you want the request body checked too
TraefikForwardAuth
NGINXauth_request
Konga pre-function
agentgatewayextAuthz (gRPC)
Google Agent Gatewaya content-authorization extension (Service Extensions)

Ready-to-use configurations for each are provided with the decision server.

Set it up​

  1. Register your gateway in Compliance → Runtime Enforcement → Register a gateway. Choose how it proves it is your gateway:
    • a gateway token, shown once, that the gateway sends with each question; or
    • a certificate from us: you create the key on your gateway, we sign it (valid 24 hours, renewed the same way). The decision server then accepts only connections presenting it.
  2. Run a decision server near your gateway, or point the gateway at MeetLoyd's. It follows your rules from MeetLoyd and keeps answering for a short while if it loses contact, then refuses rather than guess.
  3. Attach the configuration for your gateway on the routes that carry your agents' traffic.
  4. Say what each agent may do, on the agent's page (below).
  5. Start in watch mode, then enforce.

How the agent is identified​

An agent is known by one of:

  • Its gateway key (mlg_…), minted on the agent's page.
  • The identity its own platform gives it: a workload token from its cloud (OIDC) or an AWS role, bound to the agent on its page under Identity.
  • The identity your gateway already checked: a mesh identity, a client certificate, or the agent identity Google Agent Gateway signs for each call. It is accepted only from a registered gateway.

An identity is bound to one agent at a time. Revoke the binding and the identity stops working at once; it can be bound again later.

Tools​

Each tool is granted one by one under Tool grants at the gateway. A grant can carry conditions - an expiry, a time window, the networks the call must come from, a declared purpose - and holds only while all of them hold. Anything not granted is refused (not_granted).

Where an agent may send data​

When the gateway asks with the scope egress, the decision is about the destination: the host the call goes to, and its method.

The callWithout a grant
A read (GET, HEAD, OPTIONS) of a public hostpasses
A write to a host nobody grantedrefused (destination_not_granted)
A write to a service with side effects (payments, email…)held: refused (held_for_review), and the agent's owner is asked
Model providers, package registries, gitpass, unless your organisation switched them off
Cloud metadata endpoints, private addressesalways refused

Grant a destination under Where it may send data on the agent's page: a host (it covers its subdomains), read or read and write, with the same conditions as tool grants. Your organisation's egress policy applies first: what it denies, no grant reopens.

A held write is a person's decision. The agent's accountable owner gets one approval request per agent and destination, in the approvals inbox (web and mobile). Approving grants the host for writing, and the agent's next call goes through.

Handing a grant on. An agent can pass one of its destinations to another agent, never wider: the same host or a subdomain, no write from a read grant, its conditions plus any you add. If the original grant changes or is removed, everything handed on from it is withdrawn.

Models​

A destination on a model provider can name its models: the agent may then call only those models there (model_not_granted for any other). Without a list, any model of an allowed provider passes.

When the answer comes back through the gateway, its token counts are recorded against the agent, model and provider - never the content. The cost appears in FinOps with your other model spend.

Watch mode​

A gateway in watch mode lets through what it would refuse and records it as a would-refuse. Read a week of would-refuse on Runtime Enforcement, grant what is legitimate in one click, then switch the gateway to enforce. The kill switch, unknown identities and cloud metadata are refused even in watch mode.

The kill switch​

Halt an agent, a team or a workspace in MeetLoyd: every gateway refuses the agent's next call (agent_halted).

Audit​

Every refusal is recorded with the agent, the gateway and the reason - tools, destinations and models alike - and sent to your SIEM with the rest of your audit (authz.denied, or authz.would_deny in watch mode). Allowed calls are counted per agent, tool or destination, and outcome.

Agents with no gateway​

An agent that has no gateway in front of it can route its traffic through MeetLoyd's egress proxy, run in your network. The proxy asks the same decision for every request and refuses what is not allowed; an encrypted tunnel counts as a write. The agent uses its gateway key as the proxy credential.