Persisting credentials across container restarts when using WebUI provider #1035
-
|
Using the WebUI provider for both passwords and MFA, when I restart the container I need to reenter my password. I have How can I persist my authentication across restarts? I'd like to not pass my password in as a command until #768 is implemented. Potential related issues I found: |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
|
Curious what are the most common cases of restarting container? How often does that need arrise?
|
Beta Was this translation helpful? Give feedback.
-
|
Some potential scenarios that cause the container to restart:
Is the WebUI able to persist to the keyring? If so, I can turn the location into a volume mount. The prior issues I linked mentioned the keyring being stored at |
Beta Was this translation helpful? Give feedback.
-
|
I solved this in my container by addding
|
Beta Was this translation helpful? Give feedback.
I solved this in my container by addding
XDG_DATA_HOME=/configto the Dockerfile so that~/.local/share/python_keyringbecomes/config/python_keyringand persists across container re-creations (if you have a persistent volume mapped to/config)... You can add the variable at runtime with something like this:docker run -it --rm --name icloudpd -v $(pwd)/config:/config -v $(pwd)/data:/data -e TZ=America/Los_Angeles -e XDG_DATA_HOME=/config icloudpd/icloudpd:latest icloudpd --cookie-directory /config --directory /data --username [email protected] --watch-with-interval 3600