Repository navigation
fix(amd): unlock GNOME Keyring at SDDM login - keyring rules for the sddm PAM stack - #5480
Merged
Merged
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 4 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
…sddm PAM stack (#5477) The graphical login never handed the password to GNOME Keyring, so the login collection stayed locked and non-desktop contexts (SSH, agents) stalled indefinitely reading keyring-held secrets (the gh token). The bare enableGnomeKeyring flag is a no-op in this tree - sddm's PAM rule set is a custom delegation set (every phase includes/substacks login) into which the flag injects nothing; verified at eval, the generated pam.d/sddm was byte-identical with the flag on or off. So the module also adds the keyring rules to sddm's own stack explicitly (auth/password/session, mirroring the login service's rules; module path and order referenced from the login service so they track nixpkgs). Generated pam.d/sddm now carries pam_gnome_keyring in all three phases, after the login substack. Scoped to the amd host module list; rides the next switch. Post-switch verification per #5477.
dezren39
force-pushed
the
fix/5477-sddm-gnome-keyring
branch
from
November 4, 2026 14:08
1880e90 to
dfb7757
Compare
This was referenced Nov 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #5477 (durable fix; the issue stays open until the post-switch proof lands).
Change
One inline module added to the amd host's module list in
nixos/hosts/default.nix. It setssecurity.pam.services.sddm.enableGnomeKeyring = true;and adds thegnome_keyringrules to the sddm service's auth, password and session rule sets, mirroring theloginservice's own keyring rules (module path and order are referenced fromconfig.security.pam.services.login.rules, not copied, so they track nixpkgs).Why the rules, not just the flag
The flag alone is a no-op in this tree — verified at eval, not assumed: with only
enableGnomeKeyring = true, the generatedpam.d/sddmis byte-identical to baseline. Reason: sddm's PAM rule set here is a custom delegation set (each phase has a singleloginrule, order 10100, include/substack), which replaces the default rule generation the flag feeds. The flag stays in the change as the statement of intent (and takes effect if the rule set ever reverts to defaults); the explicit rules are what change the generated file today.Generated
pam.d/sddmafter this change (was: delegation lines only):Why here
SDDM itself is enabled in the shared desktop module (
nixos/services/default.nix), but the missing keyring unlock is amd's login-path problem (see #5477 for the measured evidence chain), so the fix is scoped to amd via its host module list — the tree's existing home for amd-only settings — rather than changing the shared module for every desktop host. Eval confirms thenixoshost is untouched (its sddm flag stays false, no keyring rules).Verification
gnome_keyringrules; generatedpam.d/sddmgains the three pam_gnome_keyring lines above, each after the login delegation line; baseline-vs-change text diff goes from byte-identical (flag-only) to exactly those lines (with rules).logincollection Locked=false with no manual unlock, plain-SSHgh auth status~0.5s with full scopes).