Skip to content

feat: show active AWS credential type for Bedrock provider#20659

Open
3sztof wants to merge 2 commits intoanomalyco:devfrom
3sztof:feat/bedrock-credential-indicator
Open

feat: show active AWS credential type for Bedrock provider#20659
3sztof wants to merge 2 commits intoanomalyco:devfrom
3sztof:feat/bedrock-credential-indicator

Conversation

@3sztof
Copy link
Copy Markdown

@3sztof 3sztof commented Apr 2, 2026

Issue for this PR

Closes #20660

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

When Bedrock is connected there's no way to tell which AWS credential is active without leaving the app. Confusing when switching between profiles or projects.
This surfaces the active credential type wherever the provider appears:

  • TUI prompt bar: claude-sonnet-4 Amazon Bedrock · my-profile
  • Model selector category header includes credential type
  • Web settings: second tag next to provider (e.g. "Profile: my-profile")
  • Connect provider dialog: shows credential if already connected
    Credential types detected: named profile, API key (bearer token), IAM access key, web identity, container credentials.
    Also keeps the TUI prompt bar on one line when the credential suffix makes it too long.

How did you verify your code works?

Tested locally with AWS_PROFILE, AWS_BEARER_TOKEN_BEDROCK, and AWS_ACCESS_KEY_ID.

Screenshots / recordings

image image image

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@3sztof 3sztof requested a review from adamdotdevin as a code owner April 2, 2026 11:40
@github-actions github-actions bot added the needs:compliance This means the issue will auto-close after 2 hours. label Apr 2, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 2, 2026

The following comment was made by an LLM, it may be inaccurate:

Based on my search, I found related PRs but no exact duplicates (excluding PR #20659, which is the current PR):

Related PRs:

These are related to Bedrock credential management but appear to address different aspects (SSO refresh and IAM credentials connect flow vs. displaying the active credential type). They may be complementary features rather than duplicates.

No duplicate PRs found

@github-actions github-actions bot removed the needs:compliance This means the issue will auto-close after 2 hours. label Apr 2, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 2, 2026

Thanks for updating your PR! It now meets our contributing guidelines. 👍

@3sztof 3sztof force-pushed the feat/bedrock-credential-indicator branch from b3709ec to 42354a2 Compare April 2, 2026 12:13
@3sztof
Copy link
Copy Markdown
Author

3sztof commented Apr 2, 2026

Force push justification: amending /signing my original commit.

@3sztof 3sztof force-pushed the feat/bedrock-credential-indicator branch from e74a2f8 to c28454d Compare April 8, 2026 11:39
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.

[FEATURE]: Show active AWS credential type for Amazon Bedrock provider in the TUI

1 participant