-
Notifications
You must be signed in to change notification settings - Fork 198
Reinstating the ssh_google_auth-variable.
#260
Conversation
This was removed in bea269a. Just because I use pam, and challenge response authentication, does not mean I wish to install `libpam-google-authenticator`.
You're right here, so I think we should remove the three google-specific tasks (https://github.com/dev-sec/ansible-ssh-hardening/blob/master/tasks/2fa.yml#L2-L20) instead of re-introducing the specific google variable. What do you think? |
|
I could get behind that. But then, why not just remove the whole |
We probably need to rethink this whole 2FA-setup. Do you have experience with this and can provide some hints or code? |
Personally I use I would be willing to write this up in ansible for Ubuntu (Debian will probably work with the same setup), but I have little to no experience with the other systems you support. However, for me, 2fa on ssh is an edge-case not really worthy of automation. Password-protected ssh-keys and whitelisting IPs is a lot more practical than these tokens. I only use 2fa where I absolutely cannot force ssh-keys. |
|
Made any decisions yet? :) |
|
No decision yet, but you're right, we should remove 2fa:
Do you want to update this PR to delete the code? |
|
I'm thinking this might belong in a separate PR :) I'll create a new one asap. |
|
Would making this feature opt-in an alternative to complete removal? |
|
I want to say no (not that it is my decission :)). In my opinion, 2fa belongs in a PAM-role, or a separate role. |
|
Great point. Is there a good pam role available that does the job? |
|
Not that I know of, no. But I guess 2fa could be moved to https://github.com/dev-sec/ansible-os-hardening as an opt-in feature. 2fa could belong in an os-hardening role. As mentioned earlier:
|
As discussed in #260, 2fa does not really belong in a role for configuring ssh. Signed-off-by: Dennis Eriksen <d@ennis.no>
This was removed in bea269a. Just because I use pam, and challenge response authentication, does not mean I wish to install
libpam-google-authenticator.