Add backend-scoped vMCP authorization - #6487
Open
Sanskarzz wants to merge 1 commit into
Open
Conversation
Sanskarzz
force-pushed
the
ceder-auth-vmcp
branch
from
September 2, 2026 10:28
1179373 to
98169e2
Compare
Sanskarzz
force-pushed
the
ceder-auth-vmcp
branch
from
September 2, 2026 12:55
98169e2 to
13fa0c6
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #6487 +/- ##
==========================================
- Coverage 78.18% 78.17% -0.01%
==========================================
Files 769 770 +1
Lines 74995 75013 +18
==========================================
+ Hits 58633 58643 +10
- Misses 16357 16365 +8
Partials 5 5 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Sanskarzz
marked this pull request as ready for review
September 2, 2026 13:16
Sanskarzz
requested review from
ChrisJBurns,
JAORMX,
amirejaz,
jerm-dro,
jhrozek,
rdimitrov and
tgrunnagle
as code owners
September 2, 2026 13:16
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.
Summary
VirtualMCPServer currently exposes each tool as a Cedar
Toolentity whose only resource parent is the vMCP itself. As a result, administrators cannot grant access to every tool from one discovered backend without enumerating tools or relying on conflict-resolution name prefixes.BackendIDinto Cedar authorization.Toolentity a child of both the vMCPMCPentity and a materializedBackendentity.Fixes #5483
Type of change
Test plan
task test)task test-e2e)task lint-fix)Verified the changed packages with the repository's race-test flags:
The focused tests pass, including matching-backend allow, different-backend deny despite a misleading tool name, empty-backend deny, list/call parity, and configured Backend hierarchy preservation. Focused
golangci-lintv2.12.2 reports zero issues for./pkg/authz/authorizers/...and./pkg/vmcp/core/....task buildandtask license-checkalso pass.The full
task lint-fixcurrently reaches six unrelated pre-existing SA1019 warnings in operator files not changed by this PR. A fulltask testrun was stopped after 15 minutes; the changed packages were then verified independently as listed above.Changes
pkg/vmcp/core/admission.gopkg/authz/authorizers/resource_metadata.gopkg/authz/authorizers/cedar/pkg/vmcp/core/admission_test.godocs/authz.md,docs/arch/10-virtual-mcp-architecture.mdDoes this introduce a user-facing change?
Yes. Cedar policies for a VirtualMCPServer can authorize all tools originating from one backend with
resource in Backend::"<backend-id>", without listing individual tools or depending on advertised tool names.Implementation plan
Approved implementation plan
vmcp.Tool.BackendID, which is attached by the aggregation layer, as the trusted backend identity.Backend::<BackendID>as a resource parent and materialize that parent in the request entity map so Cedar'sinoperator can traverse it.MCP::<vMCP-name>parent to preserve current policies.entities_jsonalready defines the Backend, retain the configured entity so its attributes and parent hierarchy are not overwritten by the request placeholder.Special notes for reviewers
MCPparent remains.entities_jsondefines the same Backend, that configured entity wins over the request placeholder, enabling policies through Backend attributes or transitive groups.