-
Notifications
You must be signed in to change notification settings - Fork 27
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
Support docker secrets #190
Comments
Thanks for your report. I'm not sure what you mean by a native support. AFAIK, docker secrets will be mounted as files to The only way I could think of is the way you described already, providing Happy to discuss other ideas how this could look like. |
Just to clarify, with "native support" I mean I would love for this to be done in OwnCloud. Right now I am using a custom entrypoint script to just convert |
Got it, thanks. Sounds reasonable 👍 |
This is actually an important security-relevant enhancement. It would have prevented https://owncloud.com/security-advisories/disclosure-of-sensitive-credentials-and-configuration-in-containerized-deployments/ |
Having secrets (i.e. passwords) in environment variables isn't best practice anymore. Docker secrets are not only supported in swarm mode, but also in
docker-compose
: https://docs.docker.com/engine/swarm/secrets/Secrets are a way better strategy go manage sensitive environment variables such as
OWNCLOUD_DB_PASSWORD
. Other containers leverage the quasi standard of adding_FILE
environment variables to hold the secret files (e.g.OWNCLOUD_DB_PASSWORD_FILE
).I would love native support for docker secrets (instead of using a custom entrypoint script, that converts my secrets).
The text was updated successfully, but these errors were encountered: