Supervisor/supervisor

Feature request: read environment variables from a file

javilm opened this issue · 1 comments

I know this has been requested before in #771 and closed, but I'll request it again:

Please implement the ability to read the environment variables for a process from a file.

Use case

I have a number of Flask applications running under Supervisor. These applications have secrets that can't be commited to GitHub, such as database passwords, session secrets, etc. Because of this, the applications read these secrets from environment variables during initialization.

Currently, adding a new secret requires editing the supervisord.conf file. My users can't do that by themselves because they don't have admin access on this application server.

Alternatives

There are ways to work around this limitation in supervisor, such as:

  1. Add code to the application so it reads the secrets from a file on startup
  2. Set up a secrets management tool such as Hashicorp Vault

Both of these add complexity (a lot in the case of Vault) that could be avoided by implementing this functionality in supervisor.

Moved to #771 (comment)

Please do not intentionally open duplicates of existing issues.

Duplicate of #771