Repository navigation
docs(spec): 129 per-user upstream credentials (server edition) - #1945
Merged
Merged
Conversation
Each user's tool call carries that user's own upstream credential: a
${user:<slot>} reference in a server header filled by the user, RFC 8693
token exchange or Entra OBO from the login, or an injected oauth_connect
token. Built on the Spec 112 per-request header seam; Spec 107's deleted
per-user connection chain stays deleted. Idea 5 of the LiteLLM MCP Gateway
comparison.
Deploying mcpproxy-docs with
|
| Latest commit: |
c4fadaa
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://d50e0f9d.mcpproxy-docs.pages.dev |
| Branch Preview URL: | https://129-per-user-upstream-creden.mcpproxy-docs.pages.dev |
Distinct trusted credential context; redaction boundary for stored values; one-source header construction with discovery_headers; delegation grant bound to one session with effective expiry; https-only, no-redirect token endpoints; Entra OBO needs an app-audience login token; generation and broker-config fences on exchange/refresh; per-user auth failures kept out of shared health; removed_keys.go coordination; namespaced store records; personal edition preserves fields opaquely.
Discovery credentials only for background operations; prompts/get, resources/read and completion refused for users in this phase; https MCP URL with no userinfo or query; slots only in credential headers, transport headers rejected; credential sources mutually exclusive; cache binding covers every contributing slot; pending consent flows fenced at initiation; Entra OBO login scopes and ID-token identity defined; only Bearer access tokens injected; grants need a positive expires_in.
Refuse dispatch of an uninspectable request that carries a trusted user credential; keep Microsoft subjects stable when OBO switches identity to ID-token claims (oid matches Graph id); make the operator when_no_user: discovery exception explicit.
Bind the oauth_connect callback to the initiating user before the code exchange; a mismatched principal consumes the state and stores nothing.
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Contributor
📦 Build ArtifactsWorkflow Run: View Run Available Artifacts
How to DownloadOption 1: GitHub Web UI (easiest)
Option 2: GitHub CLI gh run download 44590595333 --repo smart-mcp-proxy/mcpproxy-go
|
Dumbris
added a commit
that referenced
this pull request
Nov 20, 2026
`roadmap.yaml` had no epics after Spec 117. This PR adds them and regenerates `ROADMAP.md`. - **Shipped:** 118 auto-rescan (#1689), 118 pin visibility boundary (#1684, #1688, #1821), 119 (#1740), 120 (#1781), 122 (#1818) and 123 (#1886, #1887, #1888, #1891). - **In review:** 121 install surfaces (#1711). There is no `spec:` link yet because its folder exists only on the PR branch. - **In progress:** 124 (PR-1 #1918 done; PR-2 CLI and PR-3 Web UI to do) and 125 (spec plus PR-1..3 done; PR-4 Web UI to do). Merged PRs are listed as done child tasks, so `--check-github` doesn't flag a merged PR under an in-progress epic. - **Spec-only PRs:** 127 (#1943), 128 (#1944) and 129 (#1945). Merge this after #1943, #1944 and #1945. Until then, `--check-github` reports their `spec:` links as unresolved; `--check`, the pre-commit hook, passes. Not covered: Spec 126 (#1940, open) and the unsynced tasks.md checkboxes for 123 and 124.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Spec only, no code. Server edition.
Each user's tool call carries that user's own upstream credential, so one central mcpproxy-server no longer turns every user into the same identity at the upstream. This was the Gcore request for an internal LiteLLM.
${user:<slot>}in a server's header values. Each user fills their own slot through the existing encrypted credential store (Web UI,mcpproxy credential, REST).auth_broker.mode: token_exchange(RFC 8693) andentra_obo. The subject token is the user's IdP access token, captured at login and purged with the session. Offline access and refresh tokens stay off, so Spec 107 FR-033's rationale holds.oauth_connectwithinject: trueinjects the stored connect-flow token, with single-flight refresh.Design constraints:
tools/callrequests only, is stripped from everything else, and is dropped on cross-origin redirects.Origin: idea 5 of the LiteLLM MCP Gateway comparison.
Spec:
specs/129-per-user-upstream-credentials/spec.md