Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🪨 fix: add AWS STS session token support to Bedrock client #4655

Merged
merged 1 commit into from
Nov 7, 2024

Conversation

adamrb
Copy link
Contributor

@adamrb adamrb commented Nov 7, 2024

Summary

Add support for AWS Security Token Service (STS) temporary credentials in Bedrock client configuration. This enables the use of temporary security credentials through session tokens alongside standard AWS access keys.

Fixes #4391 & #4484

Change Type

Please delete any irrelevant options.

  • Bug fix (non-breaking change which fixes an issue)

Testing

Tested with local environment variables set and the following config in docker-compose.override.yml before running 'docker compose up'

services:
  api:
    image: librechat
    build:
      context: .
      target: node
    environment:
      - BEDROCK_AWS_DEFAULT_REGION=us-west-2 # A default region must be provided
      - BEDROCK_AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}
      - BEDROCK_AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}
      - BEDROCK_AWS_SESSION_TOKEN=${AWS_SESSION_TOKEN}

Test Configuration:

Checklist

Please delete any irrelevant options.

  • My code adheres to this project's style guidelines
  • I have performed a self-review of my own code

@adamrb adamrb changed the title feat(bedrock): add AWS STS session token support fix: add AWS STS session token support to Bedrock client Nov 7, 2024
@danny-avila danny-avila changed the title fix: add AWS STS session token support to Bedrock client 🪨 fix: add AWS STS session token support to Bedrock client Nov 7, 2024
@danny-avila
Copy link
Owner

Thanks!

@danny-avila danny-avila merged commit c27b26c into danny-avila:main Nov 7, 2024
1 check passed
owengo pushed a commit to openwengo/LibreChat that referenced this pull request Nov 26, 2024
BertKiv pushed a commit to BertKiv/LibreChat that referenced this pull request Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants