Title: laptop(amd): SDDM login never unlocks GNOME Keyring - enable pam_gnome_keyring so the keyring-held gh token survives reboots · Issue #5477 · developing-today/code · GitHub
Open Graph Title: laptop(amd): SDDM login never unlocks GNOME Keyring - enable pam_gnome_keyring so the keyring-held gh token survives reboots · Issue #5477 · developing-today/code
X Title: laptop(amd): SDDM login never unlocks GNOME Keyring - enable pam_gnome_keyring so the keyring-held gh token survives reboots · Issue #5477 · developing-today/code
Description: Problem On the amd laptop, the GNOME Keyring is never unlocked by the graphical login, so any program that keeps secrets in the keyring (gh does, for its OAuth token) hangs indefinitely when it runs outside the desktop session — SSH and ...
Open Graph Description: Problem On the amd laptop, the GNOME Keyring is never unlocked by the graphical login, so any program that keeps secrets in the keyring (gh does, for its OAuth token) hangs indefinitely when it run...
X Description: Problem On the amd laptop, the GNOME Keyring is never unlocked by the graphical login, so any program that keeps secrets in the keyring (gh does, for its OAuth token) hangs indefinitely when it run...
Opengraph URL: https://github.com/developing-today/code/issues/5477
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"laptop(amd): SDDM login never unlocks GNOME Keyring - enable pam_gnome_keyring so the keyring-held gh token survives reboots","articleBody":"## Problem\nOn the amd laptop, the GNOME Keyring is never unlocked by the graphical login, so any program that keeps secrets in the keyring (gh does, for its OAuth token) hangs indefinitely when it runs outside the desktop session — SSH and agent contexts included. Observed live on 2026-11-04: after gh migrated its token into the keyring, gh auth status from SSH stalled for minutes and orphaned gh auth git-credential get processes piled up.\n\n## Root cause (measured, not inferred)\n- The display manager is SDDM. /etc/pam.d/sddm contains no pam_gnome_keyring lines (only /etc/pam.d/login has them), so the login password is never handed to the keyring.\n- gnome-keyring-daemon is started by the desktop session (gnome-keyring-daemon --start --foreground --components=secrets), not by PAM with --login.\n- After a full desktop login, both keyring collections still reported Locked=true over the Secret Service API. Property reads answer in about 5 ms; any operation that touches a locked collection routes to the SystemPrompter on the graphical display, which a non-desktop caller can never answer — that is the hang.\n- Two collections exist and both are labeled Login: the collection named login (the historical PAM keyring) and the collection named Login (target of the default alias until 2026-11-04, file default in ~/.local/share/keyrings dated 2024-10-13).\n\n## Imperative fix already live (2026-11-04)\n- Restarted the daemon as gnome-keyring-daemon --unlock with the account password piped from 1Password (value never printed or logged): the login collection unlocked headlessly, proving both the password and the mechanism.\n- Deleted the two stale, invalid gh entries the bad migration left in the login collection.\n- Repointed the default collection alias to the login collection (persists in ~/.local/share/keyrings/default, which now reads login).\n- Stored the current gh token (scopes: admin:org, codespace, gist, repo, workflow) in the keyring; ~/.config/gh/hosts.yml now holds no token.\n- Verified from fresh plain SSH execs: gh auth status reports the dezren39 account as (keyring) in about 0.5 s, gh api user returns dezren39, the scope header matches, and a git push --dry-run to this repo succeeds.\n\n## What this issue owns: the durable fix\nThe unlocked daemon above is a one-off imperative process. After the next reboot the daemon returns locked and non-desktop keyring reads stall again until someone re-runs the manual unlock (account password into gnome-keyring-daemon --unlock while replacing the session daemon — a ten-second operation, proven). Make unlock declarative in the amd host configuration:\n\n security.pam.services.sddm.enableGnomeKeyring = true;\n\nWith PAM unlock, the sddm login hands the password to the keyring at authentication time, the login collection stays unlocked for the whole session, and every context that reaches the user bus (SSH, agents, user services) can read the gh token without stalling.\n\nOut of scope here: the duplicate Login collection (locked, holds 10 application items, left untouched) — merging it into the login collection is a separate tidy.\n","author":{"url":"https://github.com/apps/developing-today","@type":"Person","name":"developing-today"},"datePublished":"2026-11-04T13:45:04Z","url":"https://github.com/developing-today/code/issues/5477"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:effcae17-16d9-bf4c-b40d-83cb5f944fa6 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A90A:4C535:30750F:413C34:6B061902 |
| html-safe-nonce | 604800361c8437f9430fc0d6cbc6c355756d98be4df616b6fee072ba1a23aef0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOTBBOjRDNTM1OjMwNzUwRjo0MTNDMzQ6NkIwNjE5MDIiLCJ2aXNpdG9yX2lkIjoiNDIxMjI1MTM2MDE2MDUyMDQ1MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 76ec1d0c7975ed7f9f7afebf2e69c7779c24a035999ac0ad00852284fe2c506c |
| hovercard-subject-tag | issue:6203979801 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/developing-today/code/5477/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b18872d52a3e893e928a5ed923a682f437591da7d3fde1acd2e2826f868700d4/developing-today/code/issues/5477 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b18872d52a3e893e928a5ed923a682f437591da7d3fde1acd2e2826f868700d4/developing-today/code/issues/5477 |
| og:image:alt | Problem On the amd laptop, the GNOME Keyring is never unlocked by the graphical login, so any program that keeps secrets in the keyring (gh does, for its OAuth token) hangs indefinitely when it run... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | developing-today[bot] |
| hostname | github.com |
| expected-hostname | github.com |
| None | 97d4714e567728e1f85f88b0cf68c89f0f8a3dc41e8869af7aeb8195ad990374 |
| turbo-cache-control | no-preview |
| go-import | github.com/developing-today/code git https://github.com/developing-today/code.git |
| octolytics-dimension-user_id | 26439447 |
| octolytics-dimension-user_login | developing-today |
| octolytics-dimension-repository_id | 627308783 |
| octolytics-dimension-repository_nwo | developing-today/code |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 627308783 |
| octolytics-dimension-repository_network_root_nwo | developing-today/code |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 866f202ebf7ac5aff8f633417d9fd8a53818a977 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width