Repository navigation
Conversation
Make the scope policy and response modes available to standalone and operator deployments. Keep HTTP challenges as the default, share validation with the transport, and reject unsupported execution paths before startup. Signed-off-by: Sanskarzz <sanskar.gur@gmail.com>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #7446 +/- ##
==========================================
+ Coverage 82.80% 82.82% +0.01%
==========================================
Files 949 950 +1
Lines 98157 98207 +50
==========================================
+ Hits 81277 81336 +59
+ Misses 16875 16866 -9
Partials 5 5 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This branch has not been deployed
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
Clients needing different OAuth step-up responses can share one vMCP gateway URL, but the scope policy and response modes added in #7170 and #7190 were available only to Go embedders. Expose the final opt-in configuration through standalone YAML/CLI and the Kubernetes operator.
incomingAuth.scopeAuthorizationwith per-tool scope requirements, explicit scope implications, andhttp,tool-result, orautoresponse selection.auto, only explicitly configured exact client name/version pairs receive tool-result challenges; every other client falls back to HTTP 403.Fixes #6743
This is PR 3 of 3: #7170 added core scope authorization; #7190 added transport responses and discovery metadata; this PR makes those capabilities configurable in deployments.
Type of change
Test plan
task lint-fix(zero issues)task docs: CLI, Swagger, SDK, and chart generation passed with no additional generated changesTests cover flattened YAML/JSON configuration, independent copies, invalid resource/mode/profile/policy settings, unsupported execution paths and CLI flags, operator conversion and terminal status, schema admission, and existing mixed-client HTTP scope behavior.
API Compatibility
v1beta1API.The new scope configuration is optional and has no CRD default. Existing objects retain their behavior. New constraints apply only when the new field is present.
Changes
Does this introduce a user-facing change?
Yes. Standalone and operator deployments can opt into incoming-token scope authorization for direct tools. Without the field, authorization is unchanged. HTTP 403 is the default;
tool-resultforces an error tool result, andautosupports both client response types on one gateway URL.Implementation plan
Approved implementation plan
Special notes for reviewers
incomingAuth.oidc.resource. Operator deployments use the resource resolved fromoidcConfigRef; examples set its publicresourceUrlexplicitly. Audience is not a resource fallback.spec.incomingAuth.scopeAuthorization; the overwrittenspec.config.incomingAuth.scopeAuthorizationlocation is rejected.