Skip to content

✨(backend) support _FILE environment variables for secrets #912

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 2 commits into
base: main
Choose a base branch
from

Conversation

soyouzpanda
Copy link

Related to #909

@soyouzpanda soyouzpanda force-pushed the feature/environment-variables-file branch 3 times, most recently from 98a7eaa to d47c362 Compare April 28, 2025 19:12
@soyouzpanda soyouzpanda marked this pull request as ready for review April 28, 2025 19:13
@lunika
Copy link
Member

lunika commented Apr 29, 2025

I suggest to add this in https://github.com/suitenumerique/django-lasuite/

As you are doing nix packages for all projects, you will need it everywhere. Instead copy/pasting it, do it in the django-lasuite package.

Thanks

@soyouzpanda
Copy link
Author

I suggest to add this in https://github.com/suitenumerique/django-lasuite/

As you are doing nix packages for all projects, you will need it everywhere. Instead copy/pasting it, do it in the django-lasuite package.

Thanks

Should I wait that the PR suitenumerique/django-lasuite#15 is merged ? (I think so)

@soyouzpanda soyouzpanda force-pushed the feature/environment-variables-file branch 2 times, most recently from 36de6a8 to 4ee6ab8 Compare May 21, 2025 10:18
Allow configuration variables that handles secrets, like
`DJANGO_SECRET_KEY` to be able to read from a file which is given
through an environment file.

For example, if `DJANGO_SECRET_KEY_FILE` is set to
`/var/lib/docs/django-secret-key`, the value of `DJANGO_SECRET_KEY` will
be the content of `/var/lib/docs/django-secret-key`.
Allow configuration variables that handles secrets to be read from a
file given in an environment variable.
@soyouzpanda soyouzpanda force-pushed the feature/environment-variables-file branch from 4ee6ab8 to ab1de49 Compare May 21, 2025 10:23
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