Skip to content
Discussion options

You must be logged in to vote

The flag you are missing is probably ENABLE_SENSITIVE_HEADER_PASSTHROUGH. Authorization is classified as a sensitive header, so ENABLE_HEADER_PASSTHROUGH=true on its own does not cover it. Both have to be set. From mcpgateway/config.py:

enable_sensitive_header_passthrough: bool = Field(
    default=False,
    description="Enable passthrough of sensitive headers (Authorization, X-API-Key, etc.) when explicitly whitelisted. "
    "Requires enable_header_passthrough=true. Default: false for security. "
    "When enabled, whitelisted sensitive headers bypass router-level filtering.",
)

So in your compose environment you want both:

ENABLE_HEADER_PASSTHROUGH=true
ENABLE_SENSITIVE_HEADER_PASSTHR…

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by elvus
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants