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

Feature Request - allow specifying API_KEYS via docker secret #41

Open
mcgodfrey opened this issue Jun 25, 2024 · 1 comment
Open

Feature Request - allow specifying API_KEYS via docker secret #41

mcgodfrey opened this issue Jun 25, 2024 · 1 comment

Comments

@mcgodfrey
Copy link

It is currently possible to specify the postgresql password as a docker secret using POSTGRESQL_PASSWORD_FILE environment variable.

It would be nice to be able to also specify API_KEYS in a similar way.
ie. to add an environment variable called API_KEYS_FILE which would open the specified file and set API_KEYS to the contents.

I think this should just be a simple addition to the docker-entrypoint.sh script, similar to how POSTGRES_PASSWORD_FILE is handled.
eg.

if [ ! -z $API_KEYS_FILE ]
then
    API_KEYS=$(cat "$API_KEYS_FILE")
    export API_KEYS
fi

Thanks!

@rishabhpoddar
Copy link
Member

It is currently possible to specify the postgresql password as a docker secret using POSTGRESQL_PASSWORD_FILE environment variable.

I don't think we support this. But, we can add this to our docker entrypoint when we have time. Alternatively, you could make a PR for it :)

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

No branches or pull requests

2 participants