Skip to content

client: Match items without xdg:schema against Generic schema queries - #641

Merged
bilelmoussaoui merged 3 commits into
mainfrom
bilelmoussaoui-potential-fix
Nov 8, 2026
Merged

bilelmoussaoui merged 3 commits into
mainfrom
bilelmoussaoui-potential-fix

Conversation

@bilelmoussaoui

Copy link
Copy Markdown
Collaborator

Items migrated from old gnome-keyring may lack the xdg:schema attribute.
When a client like gcr's SSH agent searches with xdg:schema set to
org.freedesktop.Secret.Generic (via libsecret's SECRET_SCHEMA_NONE),
treat schema-less items as implicitly generic so they still match.

@github-actions

github-actions Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

📊 Code Coverage Report

Metric Value
Current PR Coverage 83.81%
Main Branch Coverage 83.80%
Coverage Change 📈 +0.01%

Coverage report generated by cargo-tarpaulin

Items migrated from old gnome-keyring may lack the xdg:schema attribute.
When a client like gcr's SSH agent searches with xdg:schema set to
org.freedesktop.Secret.Generic (via libsecret's SECRET_SCHEMA_NONE),
treat schema-less items as implicitly generic so they still match.

Closes: #586
@bilelmoussaoui
bilelmoussaoui force-pushed the bilelmoussaoui-potential-fix branch from 71e5602 to cc37507 Compare November 8, 2026 12:38
gnome-keyring exposes a schema derived from the item type for items
without an xdg:schema attribute. Keep it when migrating so schema based
lookups still match them.
Items lacking xdg:schema match Generic schema searches, but not when
creating an item with replace, so gcr ended up storing duplicates.
@bilelmoussaoui
bilelmoussaoui merged commit 9091388 into main Nov 8, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SSH unlock passphrase not nicely migrated and very hard to find after upgrading from gnome-keyring to oo7

1 participant