-
Notifications
You must be signed in to change notification settings - Fork 201
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
chown fails with Docker Secrets, can't start container #89
Comments
Hi @astopy thanks for your report! Yeah this permission change was introduced to fix #67 since some users were experiencing problems when mounting external directories.
We would like to hear some feedback here on what community thinks about this. |
That could be a problem for Docker Swarm users because there's no way to expose secrets as environment variables (I believe that's a deliberate design choice on the part of the Docker team). A workaround I've used in some other apps is to have the entrypoint script check for a file (e.g
My preference would be for the second option. I wouldn't expect a container to change permissions and ownership on config files that I mount into it. |
Thanks for your feedback it is really appreciated!
Yeah it's to avoid anyone to get the secrets inspecting the running process environment inside the container (or just doing docker inspect). |
Yes, actually, now that you mention it I think that'd be the best option. That'd be consistent with what some of the official images do (e.g. MySQL). |
Yes! We will try to push this up on the backlog for the v2 sounds like an accepted approach in the container community. |
Do we have to option to use _FILE variables with docker secrets yet? I pulled version 2.2.0 but I can't find anything in docs yet regarding using docker secrets in swarm mode. Thanks |
Hi @radyz, Unfortunately there is no option to manage _FILE variables with docker secrets at this moment. However this issue it's on the backlog and will be tackled soon. |
Thanks for your quick update. I'll be looking forward for it when it's released then :) |
Can I open an Issue in this repository to track that? I don't see anything in https://community.passbolt.com/c/backlog either. |
@dlen @lucasteinke I couldn't find anything in the backlog either, so I added this: https://community.passbolt.com/t/as-a-swarm-k8s-administrator-i-want-to-configure-passbolt-with-path-to-db-password-file-to-use-my-orchestration-tools-built-in-secrets-store/5222/1 |
passbolt_docker/bin/docker-entrypoint.sh
Line 170 in f212767
The above line fails when starting Passbolt with config files stored in Docker Secrets:
The text was updated successfully, but these errors were encountered: