Repository navigation
fix: raise the Tier 3 MCP SDK security floor - #842
Merged
Merged
Conversation
Signed-off-by: Christopher Kevin <[email protected]>
Signed-off-by: Christopher Kevin <[email protected]>
Signed-off-by: Christopher Kevin <[email protected]>
Signed-off-by: Christopher Kevin <[email protected]>
…t/christopherk/dependency-security-optional Signed-off-by: Christopher Kevin <[email protected]> # Conflicts: # CHANGELOG.md # pyproject.toml
Signed-off-by: Christopher Kevin <[email protected]>
…t/christopherk/dependency-security-optional Signed-off-by: Christopher Kevin <[email protected]>
… is blank A blank or whitespace-only AWS_BEARER_TOKEN_BEDROCK is treated as absent and the IAM credentials are validated, but Botocore still selects bearer authentication for any set value and sends "Authorization: Bearer <blank>". Pin SigV4 on both Bedrock clients in that case, without touching os.environ, and cover it with a real-client test against a loopback TLS endpoint. Signed-off-by: Christopher Kevin <[email protected]>
A whitespace-only AWS_BEARER_TOKEN_BEDROCK now counts as no token in host inference, the same as in the Tier 3 preflight. The HTTPS-only endpoint check no longer fires for it, and LiteLLM signs with the IAM credentials instead of sending a blank Bearer header. The blank-token check lives in one shared helper used by both paths. Signed-off-by: Christopher Kevin <[email protected]>
…lank LiteLLM's Bedrock Responses route takes its token from the api_key argument or, when that is empty, from AWS_BEARER_TOKEN_BEDROCK. A whitespace-only value therefore still became a Bearer header and the request failed before it was sent. Host inference now blanks the variable for the duration of the call when it holds only whitespace, and puts the exact value back afterwards. Overlapping calls share one blanked window. Real tokens and other Bedrock routes are unchanged. Signed-off-by: Christopher Kevin <[email protected]>
The preflight raised InvalidConfigError, but only the exception class name reached the result detail, so the cause was hidden. Return the failure directly with a constant detail that names the HTTPS requirement and keeps the token and endpoint out of the output. Signed-off-by: Christopher Kevin <[email protected]>
Add a Fixed entry for the preflight and host inference now using IAM credentials when AWS_BEARER_TOKEN_BEDROCK is empty or whitespace-only. Signed-off-by: Christopher Kevin <[email protected]>
…he bearer token Host inference only checked AWS_BEDROCK_RUNTIME_ENDPOINT, so the mantle route (BEDROCK_MANTLE_API_BASE) and the hosted-platform route could still send the bearer token over HTTP. Check all of those overrides with one helper, and only when a real bearer token is set. Signed-off-by: Christopher Kevin <[email protected]>
Signed-off-by: Christopher Kevin <[email protected]>
Signed-off-by: Christopher Kevin <[email protected]>
Signed-off-by: Christopher Kevin <[email protected]>
chrisknvidia
force-pushed
the
feat/christopherk/dependency-security-mcp
branch
from
November 20, 2026 21:13
8db22da to
fef9c2b
Compare
Signed-off-by: Christopher Kevin <[email protected]>
Signed-off-by: Christopher Kevin <[email protected]>
This was referenced Nov 20, 2026
chrisknvidia
marked this pull request as ready for review
November 20, 2026 21:31
chrisknvidia
requested review from
mosheabr,
rmalani-nv and
rng1995
as code owners
November 20, 2026 21:31
Base automatically changed from
feat/christopherk/dependency-security-optional
to
main
November 20, 2026 22:26
Signed-off-by: Christopher Kevin <[email protected]>
This was referenced Nov 23, 2026
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
Upstream release and advisories for server token audience, client redirects, schema references, and session limits.
Verification
uv lock --checkandgit diff --checkNine clean base, Tier 3, and all-extra wheel installs passed on Python 3.12–3.14. The installed-wheel loopback tests exercised SSE and Streamable HTTP with MCP SDK 1.30.0 and the separate SDK 2.3.0 environment. Linux Harbor oracle and no-op trials passed with the expected scores. The Tier 1 dependency check emitted passing JSON, HTML, and SARIF. The independent security review found no issues in the MCP patch.
Release impact
CHANGELOG.md