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

feat: Add ability to load secrets from files #276

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

bryopsida
Copy link

Overview

Adds the ability to load secret values from files. These environment variables follow the existing environment variable names except with a _FILE suffix.

  • COUCHDB_ERLANG_COOKIE_FILE
  • COUCHDB_SECRET_FILE
  • COUCHDB_USER_FILE
  • COUCHDB_PASSWORD_FILE

These environment variables are expected to be paths of projected secret values into the container.

These environment variables are only used if the existing environment variables are not provided IE if a user specifies COUCHDB_SECRET then COUCHDB_SECRET_FILE will be ignored.

The existing logic of hydrating the docker.ini file has been extracted to functions and re-used with the values loaded from the secret files.

Testing recommendations

TODO

GitHub issue number

Fixes #256

Related Pull Requests

Checklist

  • Code is written and works correctly;
  • Changes are covered by tests;
  • Documentation reflects the changes;

@bryopsida bryopsida changed the title feat(dev/Dockerfile): Add ability to load secrets from files feat: Add ability to load secrets from files Feb 2, 2025
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.

Add option to pass secrets as files
1 participant