Skip to content

Add support of _FILE environment variables for secrets #909

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
soyouzpanda opened this issue Apr 28, 2025 · 1 comment
Open

Add support of _FILE environment variables for secrets #909

soyouzpanda opened this issue Apr 28, 2025 · 1 comment

Comments

@soyouzpanda
Copy link

Feature Request

Add support of _FILE environment variables for secrets.

As discussed here: NixOS/nixpkgs#401798 (comment), we need to pass the secrets, like DJANGO_SECRET_KEY, COLLABORATION_SERVER_SECRET, etc. in files.
The current solution is to wrap the gunicorn/celery/collaboration server in a script that export environment variables after cat-ing the files.

But we think that the support of secrets in files should be instead supported by docs, through environment variables like DJANGO_SECRET_KEY_FILE, COLLABORATION_SERVER_SECRET_FILE, etc.

@mweinelt
Copy link
Contributor

mweinelt commented Apr 28, 2025

Passing them around as files is more compatible with the systemd credential API and can rely on the filesystem discretionary access control, which is what we would prefer to use in NixOS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

2 participants