Skip to content

fix: validate the selected Bedrock bearer endpoint - #845

Merged
chrisknvidia merged 6 commits into
mainfrom
feat/christopherk/bedrock-bearer-route
Nov 22, 2026
Merged

chrisknvidia merged 6 commits into
mainfrom
feat/christopherk/bedrock-bearer-route

Conversation

@chrisknvidia

@chrisknvidia chrisknvidia commented Nov 20, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Check HTTPS for the endpoint selected by LiteLLM when Bedrock uses a bearer token.
  • Apply model alias precedence and account for both native Responses and the Responses-to-Chat Completions bridge. Preserve Mantle URL normalization and Claude Platform endpoint precedence.
  • Keep blank bearer tokens on the existing IAM SigV4 path.

This follows up on #820 and addresses the endpoint-selection review on #844.

Verification

  • The real LiteLLM SDK reaches the configured HTTPS destination when another route has an unused HTTP override.
  • The loopback rejection cases exercise active HTTP overrides, model aliases, and routing between Chat Completions and Responses. Rejected endpoints receive zero connections.
  • Provider configuration and Harbor preflight regression suites exercise the existing SigV4 and credential behavior.

Bedrock compatibility verification

On e75333a1, 512 local provider configuration, transport, and Harbor preflight tests passed. The real LiteLLM 1.110.2 loopback suite exercised HTTPS, SigV4, both Responses bridge directions, and model aliases. Rejected HTTP endpoints received zero connections. New regression cases exercise the global Claude Platform URL over HTTP and HTTPS, a global cross-route fallback, and a direct Mantle provider alias. Independent mutation testing confirmed that removing the associated guards causes these cases to fail. Credentialed AWS validation requires a test account. Independent security review found no remaining issue in the direct Bedrock flows exercised.

The Mantle alias regression also sends a real HTTPS request with the configured AWS region and a malformed fallback region. Independent security review confirmed that the explicit region reaches each preliminary resolver and the existing endpoint checks still reject HTTP before a connection.

On 30768e36, repository lint and package builds passed. A fresh locked installation imported the built wheel, passed pip check, and passed all 75 provider transport tests with LiteLLM 1.110.2.

@chrisknvidia
chrisknvidia marked this pull request as ready for review November 20, 2026 22:57

@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: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

@rng1995 rng1995 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I verified the original endpoint hardening and found one route-resolution mismatch with the pinned SDK.

Comment thread src/skillevaluator/inference/client.py Resolved
@chrisknvidia
chrisknvidia merged commit 4c16b0f into main Nov 22, 2026
24 checks passed
@chrisknvidia
chrisknvidia deleted the feat/christopherk/bedrock-bearer-route branch November 22, 2026 18:57
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