-
Notifications
You must be signed in to change notification settings - Fork 5
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
User cannot read password file #8
Comments
Immediately hit this exact problem. Guessing the fix is to make a derivative image where the permissions are fixed? |
Hi @ryanlovett / @gngdb, I am facing the same issue. Were you able to resolve this issue? If you did, any guidance is appreciated. |
Yeah, I ended up forking at https://github.com/ryanlovett/keymaster. |
Thanks for the message. I will use your fork. You should probably send a pull request.
|
If you want to roll with a PR @ryanlovett, I'd be happy to add you as a maintainer on github.com/cloudpipe/keymaster as well as give you access to the Docker Hub image. |
Our reasoning on using a particular non-root user was before we had real Linux namespaces (as will be in coming releases of Docker). I'm comfortable with your changes @ryanlovett. |
Thanks for reviewing the changes. Before anything gets pushed to cloudpipe, I think I need to check with @jhamrick to make sure my changes don't mess things up for her. I think this comment will ping her? |
Looks fine to me! I don't think it will cause any problems on my end. |
The instructions below should work, but let me know if there is a a git clone https://github.com/ryanlovett/keymaster Ryan |
Ryan, Thanks for the message. I was able to get it to work. Thanks a lot for your help. |
With the caveat that I'm very new to docker...
Inside the container, /certificates is owned by the uid of the user who created$(pwd)/certificates on the host. When the container runs with the "ca" parameter, uid=1000 (hagrid) expects to be able to have access to /certificates/password. Since the file's owner on the host is not uid 1000, "$ {KEYMASTER} ca" fails:
host$ $ docker -v
Docker version 1.6.0, build 4749651
host$ ${KEYMASTER} ca
cat: /certificates/password: Permission denied
host$ docker run -it --rm -v $(pwd)/certificates/:/certificates/ cloudpipe/keymaster /bin/bash
hagrid@string:
$ ls -l /certificates/password$ id-rw------- 1 2354 2354 175 May 7 00:08 password
hagrid@string:
uid=1000(hagrid) gid=1000(hagrid) groups=1000(hagrid)
The text was updated successfully, but these errors were encountered: