Has anyone set up MFA for SSH using Cisco Duo? I've been playing around with it in a test environment and it works fine if Ontap can contact Duo, but when Duo is down (all things fail eventually) it seems like a good way to get locked out of SSH until Duo comes back up. I have ontap communicating with Duo and have verified that users have to enroll to gain ssh access. That works woohoo. I then set up a user in Duo and set it to bypass so that the user doesn't have to do mfa. That all works great when Duo exists. But if I set up a little firewall rule to block Duo, things fall apart. Since every user is by default required to use Duo if it is enabled, and if Ontap can't talk to Duo then all your users are locked out.
I then found Duo Group which looked like an option to get around this issue. So I set up a duo_exclude group on the cluster, added a user to the excluded users list. I then tested. When Ontap can talk to Duo, that user still has the Duo check which doesn't seem like that is how it should work. When Duo is blocked via firewall that user still has the Duo check, again not how I interpret how that should work. It seems like the Duo Group Exclude either doesn't work, or I'm using it wrong (probable here as the documentation seems a little lacking).
I know it seems stupid to have a user bypass Duo, but I also assume that Duo will go down right when I need to do something critical. It could even be part of an attack. If I was inside someone's network with credentials to do bad things, I'd be tempted to try to block Duo after giving myself access to their stuff to limit their access to stop me.
Anyway, any help or advice would be much appreciated.