feat(bedrock): support Bedrock API key authentication#11798
Merged
Conversation
Add bearer token authentication for Bedrock API keys as an alternative to IAM credentials, enabling users to authenticate without exposing AWS access keys. Closes #6645
Contributor
Documentation ReviewNo additional documentation updates are needed for this PR. The PR already includes well-written documentation for the new Bedrock API key authentication feature:
The documentation changes are appropriately scoped and match the level of detail in the existing Bedrock docs. |
|
Preview deployment for your docs. Learn more about Mintlify Previews.
|
Patrick-Erichsen
approved these changes
Mar 25, 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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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
Bedrock.ts)apiKeyis set, uses bearer token auth via the AWS SDK'stokenprovider; otherwise falls back to existing IAM credential flow_getClient()method used by_streamChat,_embed, andrerank(the OpenAI adapter already supported this)Closes #6645
Test plan
apiKeyfield and verify chat/completions work with bearer token authSummary by cubic
Adds Bedrock API key authentication as an alternative to IAM. Enables bearer token auth for chat, embed, and rerank, and unifies client creation.
apiKeyinBedrock.tsusing AWS SDKtokenbearer auth; IAM flow unchanged._getClient()used by_streamChat,_embed, andrerank.Written for commit 443ced2. Summary will update on new commits.