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
What's happening
Finding2Lin 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.
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.
flag a problem with BI-FIND-2026-1107
Part by part
3showing 3 of 3
[1]OAuth model for MCP and the in-code approach
Lin Sun, Solo.io — 00:47–14:02
Agentic identityStandards
OAuth model for MCP and the in-code approach
Lin Sun, Solo.io — 00:47–14:02
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
Offloading auth to an MCP gateway (agentgateway)
Lin Sun, Solo.io — 14:02–17:03
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
JWT role-based tool access, multiplexing, SPIFFE and wrap-up
Lin Sun, Solo.io — 17:03–25:02
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