ON-PREM CHOREO CLOUD BOTH

What it is

The api-key-auth policy checks that a request carries a valid API key. AMS configures it to read the key from the X-API-Key header (LLM proxies default to the header API-Key instead), and the key is checked against the hashes the gateway stores. Agent Manager uses it on LLM proxies, MCP proxies and agent invocation routes.

Why it exists

Agents get a cheap, revocable key instead of the real vendor key, so a leaked key can be cut off without touching the vendor account.

How it works

  • Runs first in the chain for routes that use it.
  • Keys are minted by AMS and stored in hashed form at the gateway.
  • The header name and location are policy parameters, and AMS sets them to X-API-Key in a header.
  • For agent invocation, an agent route uses exactly one of api-key-auth or jwt-auth. A newly created agent starts with API key security on and OAuth (jwt-auth) off.

Identity and access

A key proves only that the caller holds it. It carries no user or scope information.

Key facts

Policy
api-key-auth v1
Header set by AMS
X-API-Key
Used on
LLM, MCP and agent routes
Side
Data plane (gateway policy)
Namespace
gateway