Skip to content

fix: update optional networking and audit dependencies - #821

Merged
chrisknvidia merged 19 commits into
mainfrom
feat/christopherk/dependency-security-optional
Nov 20, 2026
Merged

chrisknvidia merged 19 commits into
mainfrom
feat/christopherk/dependency-security-optional

Conversation

@chrisknvidia

@chrisknvidia chrisknvidia commented Nov 20, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Raise the optional dependency floors for aiohttp, fsspec, msgpack, OAuthLib, and urllib3 in the extras that install them.
  • Regenerate the lockfile and update packaging assertions and third-party notices.
  • The Critical fix from fix: update LiteLLM and handle Bedrock HTTPS endpoints #820 is merged. This PR now targets main and contains only the five follow-up dependency upgrades.

Verification

  • I am familiar with the Contributing Guidelines
  • Added or updated focused tests
  • Updated documentation for user-visible changes
  • Ran make lint
  • Ran make test
  • Ran make build
  • Did not add credentials, private datasets, or proprietary benchmark content

The lockfile and installed-dependency checks passed. The matching dependency graph also passed 27 fresh wheel installs across Python 3.12–3.14 and a Linux Docker build and CLI dependency audit. All eight focused packaging tests passed on this branch. The installed CLI ran the dependency audit over the updated package pins and emitted passing JSON and SARIF reports.

On 2ca12309 with the current Critical base, the wheel and sdist built, the lock passed, and 12 clean wheel installs passed dependency checks across Python 3.12–3.14 and the LLM, Tier 3, security, and dashboard profiles. The installed CLI produced passing JSON, HTML, and SARIF for a dependency audit. Linux Harbor completed both oracle and no-op trials with the expected scores under Bubblewrap. The base update also passed the focused provider transport tests. An independent security review found no issues with the dependency changes.

The current integration head fe6ce402 has the same Git tree as the previously green 2ca12309 head. The main-branch squash commit has the same tree as the original Critical base. make build also passed on fe6ce402. The full test suite also ran in GitHub Actions (uv run pytest -n auto in Tests on Python 3.12, 3.13 and 3.14) on this head and passed.

Release Impact

  • Updated CHANGELOG.md

chrisknvidia and others added 17 commits November 19, 2026 23:35
…t/christopherk/dependency-security-optional

Signed-off-by: Christopher Kevin <[email protected]>

# Conflicts:
#	CHANGELOG.md
#	pyproject.toml
…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]>

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 1 potential issue.

Devin Review

Comment thread pyproject.toml Resolved
Base automatically changed from feat/christopherk/dependency-security-litellm to main November 20, 2026 21:32
@chrisknvidia
chrisknvidia merged commit d2016c8 into main Nov 20, 2026
25 checks passed
@chrisknvidia
chrisknvidia deleted the feat/christopherk/dependency-security-optional branch November 20, 2026 22:26
@chrisknvidia chrisknvidia mentioned this pull request Nov 23, 2026
10 tasks done
@chrisknvidia chrisknvidia mentioned this pull request Nov 23, 2026
6 of 7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants