Providing URL credentials only once using the host OS keyring. #15
thutt
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
A new feature that will be present soon is the use of the Python
'keyring' module to store URL credentials in an OS keyring. This
makes it so URL credentials only need to be entered once.
This is enabled on all supported OSes, but there was a snag with Linux
initially. Here are the steps to diagnose and get the keyring
working, if it doesn't work out-of-the-box.
Additionally, if you don't want to use the keyring, you can provide
'--no-keyring' as an argument to vrt.
o MacOS
Worked out of the box.
o Windows cmd.exe
Worked out of the box.
o WSL2
Gnome-Keyring is not installed by default.
On Ubuntu:
Once installed, the system worked.
o Linux
If gnome-keyring is installed and running, it should work. I
If it does not, use these instructions to help understand what might
be wrong:
Summary: Diagnosing and Fixing Keyring Issues on Linux
Initial Problem:
App prompted to create new keychain on every run Credentials
weren't persisting between sessions.
Installation:
pip install keyring
Diagnosis Steps:
Check which keyring backend is active:
python3 -c "import keyring; print(keyring.get_keyring())"
Result: ChainerBackend (tries multiple backends)
Check available backends:
python3 -c "import keyring.backend; print('\n'.join(str(k) for k in keyring.backend.get_all_keyring()))"
Result: Had libsecret and SecretService available
Solution:
Kill stale daemon
killall gnome-keyring-daemon
Start fresh
eval $(gnome-keyring-daemon --start --components=secrets)
Verify working
python3 -c "import keyring; keyring.set_password('test','user','pass'); print('OK')"
bash
killall -q gnome-keyring-daemon 2>/dev/null
eval $(gnome-keyring-daemon --start --components=secrets 2>/dev/null)
Beta Was this translation helpful? Give feedback.
All reactions