-
Notifications
You must be signed in to change notification settings - Fork 191
Ahmet/eng 8386 implement oauth 21 authorization and protected resource #2292
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Ahmet/eng 8386 implement oauth 21 authorization and protected resource #2292
Conversation
Implements header forwarding from MCP requests to GraphQL endpoint with
opt-in configuration for additional headers beyond Authorization.
Key changes:
- Authorization header is always forwarded (maintains backward compatibility)
- New `forward_headers` config with `enabled` (default: false) and `allow_list`
- Support for exact header matches and regex patterns (e.g., "X-.*")
- Case-insensitive header matching
- Context-based header storage and filtering
- Comprehensive unit tests for filtering logic
- Updated JSON schema with validation
Configuration example:
```yaml
mcp:
forward_headers:
enabled: true
allow_list:
- "X-Tenant-ID"
- "X-Trace-ID"
- "X-.*"
…e-router-in-the-mcp-server
Implement JWKS-based JWT token validation for MCP server with: MCPAuthorizationConfiguration for config management TokenValidator with HTTP middleware integration JSON schema validation support Reuses router's authentication infrastructure Authorization is opt-in (disabled by default) and supports multiple authorization servers with automatic key rotation.
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Router image scan passed✅ No security vulnerabilities found in image: |
|
This PR was marked stale due to lack of activity. It will be closed in 14 days. |
@coderabbitai summary
Checklist