Keyring "Authentication Required" prompt at every login after gnome-keyring 51 rejects the pre-created passwordless keyring
System details: HP Z2 Mini (AMD), Omarchy 4.0.5-1, gnome-keyring 1:51.1-1, gcr-4 4.4.1-1, libsecret 0.21.8.2-1 — all from today's omarchy update
What's wrong
After the gnome-keyring 50.0 → 51.1 bump, every login shows GCR's "Authentication Required — An application wants access to the keyring 'Default', but it is locked" dialog. Nothing can auto-unlock it: SDDM runs with autologin and pam_gnome_keyring is intentionally absent from /etc/pam.d/sddm (the passwordless-keyring design), so the prompt appears at every boot/session start.
Journal at login:
gnome-keyring-daemon[...]: keyring was in an invalid or unrecognized format: /home/<user>/.local/share/keyrings/Default_keyring.keyring
sddm-helper[...]: gkr-pam: couldn't unlock the login keyring.
Root cause
install/user/default-keyring.sh (also invoked by omarchy-upgrade-to-quattro) hand-writes a plaintext INI stub as the default keyring:
[keyring]
display-name=Default keyring
ctime=...
mtime=0
lock-on-idle=false
lock-after=false
gnome-keyring 51.x refuses this file ("invalid or unrecognized format"), so after login there is no usable default keyring. The first app to talk to org.freedesktop.secrets (1Password / Chromium's Safe Storage lookup in my case) makes gcr create a brand-new password-protected "Default" keyring — which then prompts at every subsequent login under autologin. The documented passwordless behavior is broken for any install that picks up gnome-keyring 51.
Collateral damage: secrets written by 50.x into the old-format file became unreadable (my Proton VPN tokens needed re-auth), and the stranded file stays on disk holding those secrets in plaintext, since 51.x won't parse it.
Expected
The pre-created passwordless keyring stays valid → apps get a silently unlocked default keyring → no prompt, as before the update.
Steps to recreate
- Be on a stack with gnome-keyring 51.x (update an existing install).
- Autologin with any app that reads the secret service at startup (Chromium, 1Password, anything using libsecret).
- "Authentication Required" dialog appears; confirming it creates a new "Default" keyring with a user-chosen password that is then requested at every login.
Workaround applied
Blanked the new Default keyring's password via seahorse, which restores silent unlock — no worse than the original stub's plaintext-at-rest posture.
Debug log: https://logs.omarchy.org/ZwO86G
Correction after deeper investigation: the seed script is not the root cause.
My write-up above blames install/user/default-keyring.sh's hand-written INI stub. Omarchy's own VM reproduction in #5105 (omarchybot's comment) shows the seed file is valid and loads fine — please don't chase the seed script on my account.
The actual root cause is the upstream gnome-keyring plaintext writer bug (gnome-keyring#103, fix MR !111, still unmerged): any secret containing a newline is written unescaped, after which g_key_file_get_string() cannot parse the file and the daemon silently drops the whole collection at the next start. Under SDDM autologin nothing can unlock or repair it, so the create-new-keyring prompt appears at every boot.
What actually happened on my machine (gnome-keyring 1:51.1-1): after the 50 → 51.1 update created a password-protected Default keyring, I blanked its password (the documented autologin workaround). It then worked flawlessly in-session, but the first reboot dropped it — the stored Proton VPN SSO token was a 17-line pretty-printed JSON blob, exactly the trigger documented in #5105. Repair (escape/fold the multi-line secret= values back into the single secret= line, validate with GLib's KeyFile parser, restart the daemon) restored all items and silent unlock, with browser Safe Storage intact. Full recipe in my comment on #5105.
So this issue shares its root cause with #5105 — same fix track: MR !111 / omarchy-pkgs#248 for prevention, plus a repair step for already-corrupt files. Happy for this to be closed as a duplicate if the team prefers tracking everything in #5105.
FYI regarding the root cause: the "keyring was in an invalid or unrecognized format" rejection in gnome-keyring is actually triggered by proton-vpn-cli / python-proton-keyring-linux, not the initial passwordless stub created by Omarchy.
I encountered the exact same issue and tracked down the parser failure. When Proton VPN stores its SSO / API credentials, it serializes a JSON payload containing PEM certificates (-----BEGIN PUBLIC KEY-----, -----BEGIN CERTIFICATE-----) with literal raw newlines rather than escaping them as \n.
Because Omarchy's unencrypted Default_keyring.keyring is an INI-format file (key=value), these unescaped newlines split the secret= field across 17 physical lines. When gnome-keyring-daemon reads the file on next boot, its INI parser fails on the stray lines, drops Default_keyring, and falls back to an encrypted login.keyring that triggers the unlock modal.
Upstream issue filed with full details: https://github.com/ProtonVPN/proton-vpn-cli/issues/33
Workaround without losing other secrets:
Instead of deleting the entire keyring or recreating it with a password, you can escape the literal newlines inside the Proton credential in ~/.local/share/keyrings/Default_keyring.keyring:
- Find item
[13](or whichever item corresponds toPassword for 'proton-sso-account-...' on 'Proton'). - Replace the physical newline breaks inside its
secret=string with escaped\nso the entry collapses back to a single line. - Remove any empty fallback keyrings (
rm ~/.local/share/keyrings/login.keyring ~/.local/share/keyrings/user.keystore). - Restart the daemon:
systemctl --user restart gnome-keyring-daemon.service.
Once the secret= field is on a single line, gnome-keyring 51.1 parses and unmasks Default_keyring.keyring cleanly with zero errors, restoring silent login unlock.
Assisted by Gemini 3.8 Flash (Reasoning: Medium)
I reproduced this on a disposable Omarchy VM running gnome-keyring 1:51.1-1, libsecret 0.21.8.2-1 and gcr-4 4.4.1-1, the same versions as in this report. It is the bug tracked in #5105, as @jparlay's correction above says. The keyring seed is not the cause.
The seed loads on 51.1. I wiped ~/.local/share/keyrings, ran install/user/default-keyring.sh from quattro, and restarted gnome-keyring-daemon. A one-line secret stored with secret-tool was still there after a second restart, and the journal showed no format error.
A multi-line secret breaks it. I stored a four-line JSON value next to it. The file then held secret={ followed by raw continuation lines. After one restart the daemon logged keyring was in an invalid or unrecognized format: …/Default_keyring.keyring, and the one-line secret could no longer be found. gnome-keyring's plaintext backend writes secrets with g_key_file_set_value(), which leaves newlines unescaped, and reads them back with g_key_file_get_string() (pkcs11/secret-store/gkm-secret-textual.c at tag 51.1). Proton VPN's SSO token is the trigger @grold and @jparlay found, but any multi-line secret does the same.
So nothing in this repository needs to change for this issue. The fix belongs in the gnome-keyring package: GNOME/gnome-keyring!111 upstream, and omacom/omarchy-pkgs#248 here. #248 is still open and builds 1:50.0-1.1. That version is lower than the 1:51.1-1 already installed on machines like this one, so a normal upgrade will not install it until it is rebuilt on 51.1. Recovering keyrings that are already corrupt is a separate decision, discussed in #5105.
I tried to close this as a duplicate of #5105, but the duplicate check refused. That check shows the second opinion only the two original issue bodies, and this one still blames the seed. Afterwards Codex Medium and muse-spark-1.3 (via pi, high) each reviewed the reproduction above along with both comments here. Both agreed it is the #5105 bug and found nothing to change in this repository. Their independence is not guaranteed. Codex noted one thing this does not explain: how the update first produced a password-protected Default keyring on this machine. This now waits on the maintainer to close it as a duplicate of #5105, or to keep it open.