θΏ™ζ˜―indexlocζδΎ›ηš„ζœεŠ‘οΌŒδΈθ¦θΎ“ε…₯任何密码
Skip to content

Conversation

@dannysteenman
Copy link
Contributor

@dannysteenman dannysteenman commented Nov 14, 2024

Pull Request Type

  • ✨ feat
  • πŸ› fix
  • ♻️ refactor
  • πŸ’„ style
  • πŸ”¨ chore
  • πŸ“ docs

Relevant Issues

resolves #2588

What is in this change?

This feature includes the ability to authenticate with bedrock on aws using your iam role instead of using long term iam credentials. It should be backwards compatible with people who have setup:

AWS_BEDROCK_LLM_ACCESS_KEY_ID=
AWS_BEDROCK_LLM_ACCESS_KEY=

Additional Information

In the UI it looks like this now, default:

SCR-20241114-jaaq

when you enable the iam role:

SCR-20241114-jacj

Please verify it and let me know if you have some feedback, so I can improve it, then I can also update the docs once you're happy with the result.

Developer Validations

  • I ran yarn lint from the root of the repo & committed changes
  • Relevant documentation has been updated
  • [ x ] I have tested my code functionality
  • [ x] Docker build succeeds locally

@dannysteenman dannysteenman changed the title Master feat: support for iam roles for bedrock client Nov 14, 2024
@timothycarambat timothycarambat self-assigned this Nov 15, 2024
@timothycarambat timothycarambat removed their assignment Jan 25, 2025
@avioligo
Copy link

I can approve it works well purely based on IAM Role.
Thanks for the contribution!

work with new credentials
rework entire auth flow to support new types
@timothycarambat
Copy link
Member

Okay made some modifications to enable all three modes to be set and selected from the UI as well as simplified handling for credentials so that iam_role will pass in an empty credential object that then the AWS SDK will take over and find any implied credentials like the previous work did.

@timothycarambat timothycarambat merged commit 5500fa2 into Mintplex-Labs:master May 6, 2025
cabwds pushed a commit to cabwds/anything-llm that referenced this pull request Jul 3, 2025
* feat: implement iam role auth for bedrock

* fix: make client refreshes properly when switching between iam_user and iam_role

* checkout agent flow

* fix aiprovider for bedrock in agent use

---------

Co-authored-by: timothycarambat <rambat1010@gmail.com>
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.

[FEAT]: AWS SDK Credential Provider Chain Not Following Standard Order in Bedrock Integration

3 participants