SecretService KWallet backwards compatibility
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
Research direction
Start by comparing the keyring.backends.kwallet.DBusKeyring and keyring.backends.SecretService.Keyring entry points, reproducing the two keyring set/get commands from the report. Done means entries created through either KWallet or SecretService can be retrieved through both interfaces, including the differing service and server names.
Written by the indexing model from the issue text.
Description
Describe the bug
KWallet has support for SecretService now, however, KWallet created entries appear to store the service as 'server' in SecretService, while SecretService created entries do not show up at all in the KWallet interface.
For example, this is a KWallet created entry, in GNOME Passwords:
and, here's a Secret Service created entry:
To Reproduce
Steps to reproduce the behavior:
-
Create an entry using KWallet
PYTHON_KEYRING_BACKEND=keyring.backends.kwallet.DBusKeyring keyring set example_service example_user -
Requesting the entry using SecretService doesn't return anything
PYTHON_KEYRING_BACKEND=keyring.backends.SecretService.Keyring keyring get example_service example_user
The opposite also doesn't work.
Expected behavior
I expected get_password to work for both backends when both backends are supplied by KWallet.
Environment
- OS: Debian Forky
$ pip list | grep keyring
bash: pip: command not found
$ apt list --installed python3-keyring python3-secretstorage
python3-keyring/testing,testing,unstable,unstable,now 25.6.0-3 all [installed,automatic]
python3-secretstorage/testing,testing,unstable,unstable,now 3.4.0-1 all [installed,automatic]
$ keyring --list-backends
keyring.backends.SecretService.Keyring (priority: 5)
keyring.backends.kwallet.DBusKeyring (priority: 5.1)
keyring.backends.kwallet.DBusKeyringKWallet4 (priority: 4.1)
keyring.backends.fail.Keyring (priority: 0)
keyring.backends.libsecret.Keyring (priority: 4.8)
keyring.backends.chainer.ChainerBackend (priority: 10)
Additional context
The ChainerBackend does still work so this isn't an urgent issue, but I still thought it was worth raising to make it known. I believe a possible solution is to query both 'service' and 'server' for SecretService. KWallet will also only show entries with 'server', not 'service'.
- Dominant language
- Python
- Stars
- 1.5k
- Forks
- 208
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from jaraco/keyring
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
macOS: denied keychain prompt on delete raises PasswordDeleteError instead of KeyringLockedPossibly taken @r3wretrhy claimed this 46 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
-
Difficulty 3/5 1-2 days Newbie friendliness 50/100
-
Difficulty 5/5 Over a week Newbie friendliness 30/100
-
Remove B018 suppressions after adopting skeleton's B018 ignorePossibly taken @Madin-H23 claimed this 26 days ago. Open
Difficulty 3/5 1-2 days Newbie friendliness 78/100
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 86/100
benchflow-ai/skillsbench#1090 ·
-
Missing unit tests for human-readable date/time formatters in utils/datetime.pyPossibly taken @prabhleen2317 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
apache/iceberg-python#4387 ·
Maintainers usually reply within 1 day
-
[BUG] Hermes MCP adapter drops cwd, extra passthrough keys and the SSE transport when writing config.yamlPossibly taken @Parth-Vasave claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
microsoft/apm#3749 · 1 comment ·
Maintainers usually reply within 1 day
-
backend bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
NVIDIA/numba-cuda-mlir#467 · 1 comment ·
Maintainers usually reply within 3 days