Feature Request: Allow passing sensitive options via file in the docker container, to allow the use of docker secrets #1276
kennethso168
started this conversation in
Ideas
Replies: 1 comment
-
|
This would be very welcome. Following this discussion. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
What is the problem you are trying to solve with this feature?
The docs currently mentions that
However, docker docs specifically advises against storing sensitive information in environment variables, and suggests using docker secrets instead
More discussion on the security implications using environment variables vs secrets
When a docker secret is used, the value is mounted as a plaintext file at
/run/secrets/<name of secret>inside the container. There should be a mechanism for the application to read the contents of the file instead of using an environment file for that configuration value.What is the solution you are proposing?
Many containers support an alternate environment variable (e.g.
MYVAR_FILE,FILE__MYVAR, etc.), whose value should be a file path with the file containing the actual value ofMYVAR:It would be great if HomeBox's docker image also supports this
What alternatives have you considered?
Currently I implemented this by overriding the image entrypoint in my docker compose, as detailed here
Additional context
No response
Contributions
Beta Was this translation helpful? Give feedback.
All reactions