-
Notifications
You must be signed in to change notification settings - Fork 58
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
Unable to use credentials in files using USER_FILE and PASS_FILE #28
Comments
I added those vars for use with Docker secrets (#11), but they should still work with the user/pass files manually mounted inside the container, so I'm not sure why that would be failing. This is what I used to test when I added them if you want to try using the secrets method instead. It should just be a matter of setting the host paths at the end:
|
Ok cool, I'll play around with that, and let you know. |
Still no love.
container logs
files exist, and if i cat them they are correct
container env
docker inspect
Thanks! |
Also noticed this, if i run the line from
|
I don't suppose there's anything special about the underlying piapass and piauser files? I feel like I'm overthinking this and missing something obvious here. |
Yeah very weird. I'm pretty sure i just used
|
I removed the check for the user_file and pass_file in the
|
I don't suppose replacing the check with |
|
Interesting that its happening on other files as well, but very bizarre. I wonder if it would still fail after installing coreutils ( |
Does I can try in another docker host I guess. |
I tried on another host (albeit both hosts are Ubuntu 18.04) and got the same result. |
I'll spin up an Ubuntu 18.04 VM later and see if I can reproduce it, but I haven't had any luck doing so yet (on Debian Buster). |
Everything seems to be working normally for me in a freshly created Ubuntu 18.04 VM:
|
So weird! I don't get it. |
Kinda clutching at straws, but I don't suppose |
Totally forgot about this issue sorry. |
In my docker-compose.yml, I tried:
- USER_FILE=/path/on/dockerhost/piauser.txt
- PASS_FILE=/path/on/dockerhost/piapass.txt
But the container would get a "file does not exist" error, so then I tried putting the files in the pia volume. Now the container is able to read the files, but fails with
PIA password not set. Unable to retrieve new auth token.
Before the addition of USER_FILE and USER_PASS I was able to reference the file in my docker-compose using USER/PASS environment variables:
- USER=/path/on/dockerhost/piauser.txt
- PASS=/path/on/dockerhost/piapass.txt
The text was updated successfully, but these errors were encountered: