Skip to content

fix(bedrock): exclude connection header from SigV4 signing - #3567

Open
lazerg wants to merge 1 commit into
openai:mainfrom
lazerg:fix/issue-3563-bedrock-connection-header
Open

fix(bedrock): exclude connection header from SigV4 signing#3567
lazerg wants to merge 1 commit into
openai:mainfrom
lazerg:fix/issue-3563-bedrock-connection-header

Conversation

@lazerg

@lazerg lazerg commented Aug 2, 2026

Copy link
Copy Markdown
  • I understand that this repository is auto-generated and my pull request may not be merged

Changes being requested

BedrockAwsAuth.sign passes the hop-by-hop Connection header to the SigV4 signer. Proxies like Bedrock Mantle rewrite or drop that header on the way through, so Bedrock rebuilds a different canonical request and rejects valid AWS credentials with a 401 signature mismatch. This drops connection before signing, the same way botocore leaves hop-by-hop headers out of the signature.

src/openai/lib/ is hand-written and the generator does not touch it, per CONTRIBUTING.md.

Additional context & links

Fixes #3563

@lazerg
lazerg requested a review from a team as a code owner August 2, 2026 15:59
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.

Bedrock SigV4 signing includes Connection header, causing 401 signature mismatch through Mantle

1 participant