Repository navigation
feat(policy): isolate overlapping credential-bound accounts - #3
Draft
stevenlee-oai wants to merge 6 commits into
Draft
stevenlee-oai wants to merge 6 commits into
stevenlee-oai wants to merge 6 commits into
Conversation
Signed-off-by: stevenlee-oai <213687449+stevenlee-oai@users.noreply.github.com>
Signed-off-by: stevenlee-oai <213687449+stevenlee-oai@users.noreply.github.com>
Signed-off-by: stevenlee-oai <213687449+stevenlee-oai@users.noreply.github.com>
Signed-off-by: stevenlee-oai <213687449+stevenlee-oai@users.noreply.github.com>
Signed-off-by: stevenlee-oai <213687449+stevenlee-oai@users.noreply.github.com>
Signed-off-by: stevenlee-oai <213687449+stevenlee-oai@users.noreply.github.com>
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
Allow independently managed accounts to share one inspected MCP or REST endpoint while retaining different request policies. A caller selects an account through its issued placeholder; the supervisor resolves that credential only when the account's own endpoint rule admitted the request. This is a reference PR in the personal fork; upstream review is tracked by the issue below.
Related Issue
Closes ai-openshell#5988
Changes
enforce-credential-bound. It preserves ordinaryenforcebehavior and makes older policy validators reject unsupported account-bound policies.Testing
The earlier v0.1.9 prototype passed the real Gateway policy-handler test and the inspected MCP sender test using that Gateway's serialized snapshots. The controlled recipient saw:
searchsearchsendsendThe current-main code is a revised implementation. Its exact-head runtime proof is pending: the configured package registry withholds the existing locked
serde_with 3.25.0dependency required by the Cedar workspace. The conformance casecredential_gating::account_bound_mcp_tool_policies_are_isolatedexercises real Provider installation, Sandbox creation, distinct tool policies and withdrawal; it has not yet run on this branch. Protobuf descriptor generation and source formatting checks pass.Fork CI remains pending. Its upstream reviewer-roster check and pinned CI-container jobs fail in the personal fork, and macOS jobs were refused by the account billing limit. The conformance E2E lane was skipped; no exact-head runtime pass is claimed.
Checklist