You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Multiple keyrings get alias "default"; Secret portal hits a locked keyring and prompts on every app start #662
Environment
Fedora 45 (upgraded from 44, gnome-keyring → oo7), oo7-daemon/oo7-portal/pam_oo7
0.7.0~beta^1.e91b98a-1.fc45. Code path is unchanged in 0.7.0 and main.
What happens
After the upgrade, every Flatpak/Snap app using the Secret portal triggers an "unlock keyring
Default" prompt at startup. The login password does not unlock it.
LLM analysis of the logs
~/.local/share/keyrings/ contained, besides login.keyring (migrated to v1/), a file default.keyring already in the v1 file format, not created by the user (most likely
written by some app using the oo7 file backend before the upgrade; its key is unknown).
At startup the daemon assigns the default alias to BOTH collections:
INFO oo7_daemon::service: Unlocked keyring 'login' from ".../keyrings/v1/login.keyring"
ERROR oo7::file::locked_keyring: Keyring cannot be decrypted. Invalid secret.
WARN oo7_daemon::service: Failed to unlock keyring 'default' with provided secret: Incorrect secret. Keeping it locked.
INFO oo7_daemon::service: Discovered 2 keyring(s), 0 pending migration(s)
INFO oo7_daemon::service: Setting up collection 'login' (alias: default).
INFO oo7_daemon::service: Setting up collection 'default' (alias: default).
ReadAlias("default") then returns /org/freedesktop/secrets/collection/default (locked).
(Oddly, ReadAlias("login") also returned .../collection/default.)
oo7-portal therefore requests an unlock of the locked collection instead of using login, where the migrated org.freedesktop.portal.Secret items for these app IDs
already exist:
INFO oo7_daemon::service: Client :1.112 (oo7-portal[5666]) connected, session: ...
INFO oo7_daemon::service: Unlock requested for 1 objects.
xdg-desktop-portal: Backend call failed: Could not retrieve secret DBus error: Prompt was dismissed
Workaround
Moving default.keyring out of ~/.local/share/keyrings and logging in again gives Setting up collection 'login' (alias: default). and the prompts stop; the apps
get their existing secrets from login.
Activity
server: Deduplicate collection aliases during initialization
server: Deduplicate collection aliases during initialization