Skip to content

Document what request-level authorization covers - #7352

Merged
rdimitrov merged 2 commits into
mainfrom
rdimitrov/authz-scope-docs
Nov 27, 2026
Merged

rdimitrov merged 2 commits into
mainfrom
rdimitrov/authz-scope-docs

Conversation

@rdimitrov

Copy link
Copy Markdown
Member

Summary

  • Why: docs/authz.md explains in detail how policies decide, but never says what they cannot see. Authorization decides on the request (claims, operation, resource ID, arguments). It does not inspect tools/call results or the backend's side effects. When an MCP server reaches its backend with one shared credential, a policy pinned to one object can still permit a call that returns related objects of other users, or makes the backend write outside the pinned object. Operators who rely on argument-pinned policies for multi-user isolation need to know this.
  • What: adds a "What authorization decides on" subsection under "How it works". It states the request-only scope, gives a concrete shared-credential example, and points to per-user backend credentials (token exchange, upstream token swap) as the control for data-level isolation.

Type of change

  • Bug fix
  • New feature
  • Refactoring (no behavior change)
  • Dependency update
  • Documentation
  • Other (describe):

Test plan

  • Manual testing (describe below)

Ran codespell docs/authz.md, and checked that the #list-operations and middleware.md#understanding-auth-upstream-swap-and-token-exchange-middleware anchors resolve to existing headings.

Special notes for reviewers

The user-facing docs site gets a matching change in stacklok/docs-website.

🤖 Generated with Claude Code

Authorization decides on the request and never sees what the backend
resolves or writes while serving a permitted call. Under a shared
backend credential, a policy pinned to one object can still permit a
call that returns or touches other users' objects. State that limit
and point to per-user backend credentials as the control for
data-level isolation.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions github-actions Bot added the size/XS Extra small PR: < 100 lines changed label Nov 27, 2026
@codecov

codecov Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 82.58%. Comparing base (df5aed7) to head (f0a1dc1).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7352      +/-   ##
==========================================
+ Coverage   82.56%   82.58%   +0.02%     
==========================================
  Files         941      942       +1     
  Lines       96689    96806     +117     
==========================================
+ Hits        79829    79952     +123     
+ Misses      16855    16849       -6     
  Partials        5        5              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

aponcedeleonch
aponcedeleonch previously approved these changes Nov 27, 2026
A mutating webhook rewrites the request before authorization runs,
and vMCP composite tools reshape outputs, so describe what
authorization itself evaluates and filters rather than what reaches
the client.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions github-actions Bot added size/XS Extra small PR: < 100 lines changed and removed size/XS Extra small PR: < 100 lines changed labels Nov 27, 2026
@rdimitrov
rdimitrov merged commit d549595 into main Nov 27, 2026
28 checks passed
@rdimitrov
rdimitrov deleted the rdimitrov/authz-scope-docs branch November 27, 2026 10:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/XS Extra small PR: < 100 lines changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants