-
-
Notifications
You must be signed in to change notification settings - Fork 15k
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 assertion for SSH-agent auth #276499
Conversation
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.
LGTM.
You may also be interested in #254121. It could be split into two parts, one to add the new option and another to fix the insecure default.
Thanks! I had also noticed the security issue, but hadn't found the GitHub issue & PR. |
…`pam_ssh_agent_auth`
c39668f
to
607679c
Compare
Rebased to address merge conflict |
Description of changes
Assertion in the
pam
NixOS module, ensures thatservices.openssh.authorizedKeysFiles
is a non-empty list whensecurity.pam.enableSSHAgentAuth
.Otherwise, the PAM module fails with an unhelpful error message, and users cannot authenticate (with it)
Split out from #266332
Things done
nixosTests.ssh-agent-auth
(as proposed in Add NixOS test forsecurity.pam.enableSSHAgentAuth
#266332)Add a 👍 reaction to pull requests you find important.