Skip to content

Conversation

@asoorm
Copy link
Contributor

@asoorm asoorm commented Oct 22, 2025

@coderabbitai summary

Checklist

  • I have discussed my proposed changes in an issue and have received approval to proceed.
  • I have followed the coding standards of the project.
  • Tests or benchmarks have been added or updated.
  • Documentation has been updated on https://github.com/wundergraph/cosmo-docs.
  • I have read the Contributors Guide.

asoorm and others added 8 commits October 20, 2025 14:37
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-.*"
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.
@coderabbitai
Copy link

coderabbitai bot commented Oct 22, 2025

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions
Copy link

github-actions bot commented Oct 22, 2025

Router image scan passed

✅ No security vulnerabilities found in image:

ghcr.io/wundergraph/cosmo/router:sha-edd09744e52b22dd8b9ed9fd8bbd8bca60fb5139

@github-actions
Copy link

github-actions bot commented Nov 6, 2025

This PR was marked stale due to lack of activity. It will be closed in 14 days.

@github-actions github-actions bot added the Stale label Nov 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants