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

Add SecretFilesPreprocessor to add secrets into configs referenced from a dir #470

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

Conversation

Bengreen
Copy link

Add a Preprocessor to load values into the config from files specified within a defined directory. This allows secrets to be separated from config (following 12 factor app and similar).
A typical usage is when running in a Kubernetes pod and the credentials are provided through a mount point. Using this preprocessor we can load the credentials from the files in the secrets directory into the config. The mount point of the secrets needs to be provided to the Preprocessor as a base dir. This is envisioned to be provided via a command line arg or similar run-time specific setting.

@Bengreen
Copy link
Author

Bengreen commented Feb 2, 2025

Any thoughts or feedback on this?

@sksamuel
Copy link
Owner

sksamuel commented Feb 2, 2025

@Bengreen how do mounted secrets work in K8? Is it a secret per file or something ?

@Bengreen
Copy link
Author

Bengreen commented Feb 3, 2025 via email

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