-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nixos/pam: add pam_rssh support #336609
nixos/pam: add pam_rssh support #336609
Conversation
FYI, |
Thanks! I think I’ll update the package to the release candidate and amend the module accordingly. |
5474a6f
to
3e8cc46
Compare
I updated all dependencies of the The package source can be reverted back to the upstream repository after it has been merged. |
Result of 1 package blacklisted:
2 packages built:
|
I think we should handle the |
b9f5e2e
to
868cb7a
Compare
Now that #339035 has been merged, I believe that this PR is ready. I added a warning if both |
Is there anything I should improve, so that this can be merged? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there anything I should improve, so that this can be merged?
Something that could be improved is adopting RFC0042 freeform options. For example, see #276106 for how security.pam.u2f
was converted. It's not a blocker for merging since we can always rename the options later, but it will reduce confusion for users if the options start out with the right names. (For example, instead of security.pam.rssh.authorizedKeysFile
, we would have security.pam.rssh.settings.auth_key_file
.)
868cb7a
to
950ec57
Compare
I adapted the module accordingly and removed the Thank you for catching the typos. |
In my opinion, this might need a NixOS test. I'm going to try my hand at writing one later. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested on my config, and it works as expected. Added just some nitpicks.
Thank you for doing this!
950ec57
to
972976d
Compare
I took care of the |
Description of changes
This adds support for
pam_rssh
. This PAM module works in a manner similar topam_ssh_agent_auth
, but supports a broader range of SSH key types, including keys backed by security keys (FIDO2), and is implemented in a memory‐safe language (Rust).pam_rssh
unfortunately cannot be used as a drop‐in replacement forpam_ssh_agent_auth
as it does not support pattern expansion in path names.This module depends on
pam_rssh
Version ≥ 1.2.0-rc2 (#339035).This solves #195942.
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.