Skip to content
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

pam-sshagent: only allow managed SSH keys #32178

Closed
wants to merge 1 commit into from
Closed

Conversation

wmertens
Copy link
Contributor

@wmertens wmertens commented Nov 29, 2017

[Breaking change]

Fixes #31611. If people have self-managed SSH keys in ~/.ssh, they will no longer be able to use those to get sudo access.

Update: This needs to be made configurable first, see the comment below. Basically, enable it if openssh non-managed keys are enabled, and allow overriding?

@sometimes-i-send-pull-requests

As I mentioned in #31611, I currently depend on the behavior as-is, so I would like this to be configurable. I also don't think the configuration being as it is now was an unintentional introduction, since it must have taken some work for @edolstra to come up with 3644f91 in the first place, which was necessary for this to work at all. I would be much happier with this patch if:

  • It were an controlled by an option
  • Whether or not OpenSSH obeys non-managed keys were also an option
  • This option controlling pam_ssh_agent_auth defaulted to the value of the OpenSSH option

It's probably best if these both default to the more secure option, but it would be good to be consistent. What do you think?

@matthewbauer matthewbauer deleted the pam-ssh-security branch April 13, 2018 02:41
@wmertens
Copy link
Contributor Author

@matthewbauer ???

@matthewbauer matthewbauer restored the pam-ssh-security branch April 13, 2018 04:21
@matthewbauer matthewbauer reopened this Apr 13, 2018
@matthewbauer
Copy link
Member

matthewbauer commented Apr 13, 2018

Sorry, I thought I was deleting branches on my own fork.

@zimbatm
Copy link
Member

zimbatm commented Oct 21, 2018

Let's get this merged. Any objections?

@zimbatm
Copy link
Member

zimbatm commented Oct 21, 2018

Reading #31611 (comment) I think this should be made configurable actually.

@fpletz
Copy link
Member

fpletz commented Jun 2, 2019

I would say we go with #62317 to make it configurable properly. Thanks!

@fpletz fpletz closed this Jun 2, 2019
@fpletz fpletz deleted the pam-ssh-security branch June 2, 2019 17:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

pam_ssh_agent_auth allowing users to define own ssh pubkey
6 participants