Skip to content

Enable DEFAULT_API_KEYS via Docker Environment Variable #138

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

CajuCLC
Copy link

@CajuCLC CajuCLC commented Apr 22, 2025

Issue #, if available:
Issue 137: Pass DEFAULT_API_KEYS via Docker env

Description of changes:

  • Modified api/settings.py to read DEFAULT_API_KEYS from the environment variable.
  • Allows users to set DEFAULT_API_KEYS dynamically through Docker, providing enhanced flexibility for authentication configuration.

Example Docker command to run with custom API key:

docker run -d --name bedrock-gateway \
  -e AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID \
  -e AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY \
  -e AWS_SESSION_TOKEN=$AWS_SESSION_TOKEN \
  -e AWS_REGION=us-east-1 \
  -e DEFAULT_API_KEYS=your_custom_api_key \
  -p 8000:80 \
  bedrock-gateway

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@CajuCLC CajuCLC deployed to AWS_ROLE_TO_ASSUME April 22, 2025 02:39 — with GitHub Actions Active
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.

2 participants