Shared MCP server credentials leak data across users — three fixes and their tradeoffs

AuthByExample · reddit · 2026-10-18

A common setup — one internal MCP server per system holding a single service credential — lets any user's agent read data their app permissions would block. Per-tool allowlists don't help when the leak is inside an allowed tool like searchtickets running as the service account. The author lays out three fixes: passing user OAuth tokens downstream (clean but often unsupported), gateway-level per-resource checks (slow, duplicates permission logic), and pushing identity into queries via Postgres row-level security. Asks how others handle list-returning tools.

Related event: Developers Warn Shared MCP Server Credentials Create Permission Gaps, Debate Per-Query Authorization(3 posts)→

Original post →

More from coding & agent

coding & agent channel →