fix: add Bedrock IAM credentials connect flow and environment variables auth option#14969
Open
tristan-stahnke-GPS wants to merge 31 commits intoanomalyco:devfrom
Open
fix: add Bedrock IAM credentials connect flow and environment variables auth option#14969tristan-stahnke-GPS wants to merge 31 commits intoanomalyco:devfrom
tristan-stahnke-GPS wants to merge 31 commits intoanomalyco:devfrom
Conversation
4796965 to
58c4510
Compare
Author
|
Cleaned up some stuff that wasn't exactly clean / shouldn't be part of this PR, and updating code to match standards. |
…es auth option Clicking "Connect Amazon Bedrock" shows a generic API key form, but Bedrock uses AWS IAM credentials. This PR fixes that with two changes: 1. IAM credentials form — enter Access Key ID, Secret Access Key, and Region. Stored as a new aws auth type in auth.json and injected into the credential chain at request time. 2. Env var auth option — shows users which env vars to set (AWS_PROFILE, AWS_ACCESS_KEY_ID, AWS_BEARER_TOKEN_BEDROCK) so they can use existing AWS credential chain methods instead.
58c4510 to
11531bd
Compare
… OpenAPI spec for Bedrock IAM credentials - Update CLI auth login to offer IAM credentials, bearer token, or env var guidance when connecting Amazon Bedrock - Add test for type:aws auth from auth.json - Regenerate OpenAPI spec with AwsAuth schema and env/aws method types - Update Bedrock docs (providers.mdx + config.mdx) across all 18 locales to document /connect IAM credentials flow and auth precedence
added 2 commits
March 1, 2026 19:37
…-improvements # Conflicts: # packages/web/src/content/docs/bs/config.mdx # packages/web/src/content/docs/ja/config.mdx # packages/web/src/content/docs/ja/providers.mdx # packages/web/src/content/docs/ko/providers.mdx # packages/web/src/content/docs/pt-br/providers.mdx
…m/tristan-stahnke-GPS/opencode into feat/bedrock-connect-improvements
This was referenced Mar 2, 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.
Replace the generic API key form for Amazon Bedrock with an IAM credentials form (access key, secret, region) and an environment variables auth option.
Issue for this PR
Closes #14967
Type of change
What does this PR do?
Clicking "Connect Amazon Bedrock" shows a generic API key form, but Bedrock uses AWS IAM credentials. This PR fixes that with two changes:
IAM credentials form — enter Access Key ID, Secret Access Key, and Region. Stored as a new
awsauth type inauth.jsonand injected into the credential chain at request time.Env var auth option — shows users which env vars to set (
AWS_PROFILE,AWS_ACCESS_KEY_ID,AWS_BEARER_TOKEN_BEDROCK) so they can use existing AWS credential chain methods instead.How did you verify your code works?
Screenshots / recordings
When selecting Environment variables, the application gives guidance on how to set the environment variables so they will be picked up by OpenCode at launch.
Checklist