Skip to content
IAM Insights

Briefing · Video · source · updated · Boston Identity

A KubeCon demo moves MCP servers' OAuth checks into a gateway, safe only if nothing can reach a server directly

In Amsterdam, Lin Sun of Solo.io first added OAuth to an MCP server the hard way, in its own code against Keycloak. Then she showed the route she recommends once there is more than one server: leave the server alone and let agentgateway check the tokens and decide, from a JWT's role, which tools each caller may use. SPIFFE, in the title, is left to her closing advice.

CNCF [Cloud Native Computing Foundation] · Uploaded March 24, 2026 · watch on YouTube

share
2 findings3 segmentsAgentic identityStandardsPlatform consolidationNon-human identity
25 minutes of video. With Lin Sun, speaker, Solo.io.
01

What's happening

Finding2
BI-FIND-2026-1106Lead finding

Lin Sun of Solo.io argued for taking OAuth out of each MCP server and putting it in agentgateway once there is more than one server.

Lin Sun of Solo.io showed OAuth working inside an MCP server and then argued for taking it out once there is more than one server. Wired into a FastMCP echo server against Keycloak, it did the job: a 401 first, then a token after the OAuth flow. Her objection was the upkeep, asking whether every MCP developer should "change their code, recompile, rebuild their Docker image" for it. Her alternative ran the same server with no auth code behind agentgateway, set up with the issuer, JWKS URL, audience and resource metadata, and she summed it up as working "without you needing to make any change or code or redeploy of your MCP server." We read the catch in her own setup: the server now trusts whatever reaches its port. She said a network or access policy could keep out everything but the gateway, and called that easy to configure.

medium confidencebest source: vendor, technicalobserved Mar 2026Evidence00:4714:02
flag a problem with BI-FIND-2026-1106
BI-FIND-2026-1107

With plain JWTs, Sun had agentgateway pick the tools a caller may use from the role in the token, across two backends behind one gateway.

With plain JWTs in place of the OAuth flow, Sun had agentgateway pick the tools a caller may use from the role in the token, across two backends behind the one gateway. A user token for J Smith got the time server's current time, and an admin token reached the echo server once she had raised a rate limit that tripped mid-demo. SPIFFE, in the talk's title, was part of neither demo; she recommended it in her closing advice as the way to provision keys and certificates automatically in what she called an agentic mesh.

medium confidencebest source: vendor, technicalobserved Mar 2026Evidence17:03
flag a problem with BI-FIND-2026-1107
02

Part by part

3

showing 3 of 3

[1]

OAuth model for MCP and the in-code approach

Lin Sun, Solo.io — 00:47–14:02

Agentic identityStandards

Sun maps OAuth onto MCP: the MCP server is the resource server and hands sign-in and permission checks to a separate authorization server, the way many websites lean on Google's login. She then builds that into a FastMCP echo server against Keycloak. A bare connection gets a 401; MCP Inspector runs the OAuth flow with a preset client ID instead of dynamic client registration, and the decoded token shows issuer, audience and client. Her objection is upkeep across many servers and developers.

technical artifactfrom publisher captions

[2]

Offloading auth to an MCP gateway (agentgateway)

Lin Sun, Solo.io — 14:02–17:03

Agentic identityPlatform consolidation

Sun reruns the echo server with its auth code gone and puts agentgateway, an open-source gateway hosted at the Linux Foundation, in front of it. The gateway config names the issuer, the JWKS URL, the audience and the resource metadata, and the Inspector connects through the gateway with the access token it already holds. Keeping other clients off the server's own port is left to a network or access policy, which she calls easy to configure.

technical artifactfrom publisher captions

[3]

JWT role-based tool access, multiplexing, SPIFFE and wrap-up

Lin Sun, Solo.io — 17:03–25:02

Agentic identityNon-human identity

A second gateway config swaps the OAuth flow for plain JWTs and maps a token's role to tools across two backends: the echo server and a time server running over stdio. A user token for J Smith gets the current time; an admin token reaches echo once she raises a rate limit that tripped mid-demo. She closes by recommending SPIFFE for automatic key and certificate provisioning in an agentic mesh, and points to an earlier KubeCon slide on throughput against Envoy AI Gateway.

technical artifactfrom publisher captions

Terms used

OAuth
The web's standard framework for delegated authorization — letting one application act at another on a user's (or machine's) behalf without sharing passwords.
MCP server
The tool-providing side of the Model Context Protocol (MCP): exposes tools, resources and prompts to an MCP client, often running locally with the user's privileges.
JWT
A compact, signed token that carries claims (who, for what, until when) between systems. It is the usual shape of an OAuth access token.
SPIFFE
Secure Production Identity Framework For Everyone: a set of standards, hosted as a graduated project of the Cloud Native Computing Foundation (CNCF), that issues short-lived cryptographic identities to workloads in place of shared secrets.
Docker
A container runtime that runs software in isolated environments that can be started, used and destroyed.
JWKS
JSON Web Key Set: a published list of public keys that lets anyone check signatures made by the matching private keys.
Model Context Protocol
Model Context Protocol: an open standard, originated by Anthropic, for connecting AI assistants to tools and data.
Resource server
In OAuth, the API that holds the protected data and accepts access tokens.

Read next

Was this briefing useful?

Share this briefing

Every finding, forecast and open question on this site has a permanent ID. If we reword one, its ID stays the same, so a citation keeps pointing to the same claim.

Follow us on LinkedInRSS feed

Working on an identity problem this research touches? Talk to Boston Identity