Repository navigation
External check of RFC 8693 token exchange on 1.1.1: results and two questions #7513
|
Hi all, I'm an independent engineer working on a small open-source tool, Stranger Test, that checks whether an MCP gateway keeps users' identities separate when it calls an upstream on their behalf. I ran it against ContextForge 1.1.1 on my own machine and wanted to share the results and ask two questions. What it does It calls the gateway as user A, then user B, then A again, and a recording upstream inspects the token that arrives each time. Six checks: the right user is preserved, the acting agent is present, the audience is correct, the scope is narrow, each user gets their own token, and nothing bleeds from B into A's next call. Setup
Results
I also saw that the exchanged token is cached per user, and that one email is bound to one provider unless provider linking is enabled. To be clear: I found no vulnerability. The tool's ability to catch problems is shown on deliberately broken test deputies in the repo, not on ContextForge. Known limits
Two questions
Links
Corrections are very welcome if I have misconfigured anything. Thanks, |
Replies: 2 comments
|
Yes, 1.1.1 supports
|
|
Thanks, that’s exactly what I needed. I have switched the driver to POST / PUT /auth/sso/admin/providers and dropped the direct database insert (released in 0.1.0). One note for anyone else: those endpoints need SSO_ENABLED=true. I read tests/live_gateway/mcp/. Since the delegation fixture authenticates through /auth/email/login, the path my probe adds is a user arriving with an RS256 token from a registered external provider, including two providers that issue the same username. Per CONTRIBUTING, I will open an issue proposing a live test for that path. One more data point: on 1.0.6 the same rig reproduces the resource-read behaviour fixed under #7236, and on 1.1.1 it fails closed, so the fix holds from outside. Runs are in integration/RESULTS.md. |
Yes, 1.1.1 supports
POST /auth/sso/admin/providerswith an admin bearer; the provider API replaces the direct database insert. Reuse yourupsert_provider()fields, but sendclient_secret: "unused"instead ofclient_secret_encrypted. Includeissuer,jwks_uri,trusted_for_api_auth: true, andapi_audience: "mcpgateway-api". For repeat runs, usePUT /auth/sso/admin/providers/{id}, withidset tolocal-as,provx, orprovy. The update also requiresapi_audiencewhenever you settrusted_for_api_auth: true.tests/live_gateway/mcp/already tests upstreamact.suband credential isolation with cold, warm, and expired caches. Its delegation fixture authenticates through/auth/email/login, so your ext…