I encountered an issue with using WebAuthn as a second factor. Previously, only TOTP was set up for my user account in the pve realm, and even now have never encountered an issue with this second factor. Having recently acquired an SSL certificate for my PVE node, I set up WebAuthn as an alternate factor. I was able to register a WebAuthn token, but I was always hit with the error "Login failed. Please try again" when trying to use the same token; TOTP codes would present no issue.
Checking /var/log/syslog presented the following during the failed WebAuthn sign-in attempts:
Under
I have no problem with leaving the required TFA option set to none, as I am the only user and this is just a homelab setup, but is what is described above the expected behavior?
Checking /var/log/syslog presented the following during the failed WebAuthn sign-in attempts:
Code:
Apr 9 18:20:01 pvenode1 pvedaemon[76126]: <root@pam> successful auth for user 'user@pve'
Apr 9 18:20:09 pvenode1 pvedaemon[76126]: authentication failure; rhost=::ffff:192.168.1.117 user=user@pve msg=realm requires totp authentication
Under
Datacenter > Permissions > Realms
, I had the "Require TFA" option set to "OATH/TOTP". Once I set it to "none", my WebAuthn token started to work. To rule out other factors, I tried an alternate browser (Edge instead of Chrome), as well as the WebAuthn configuration under Datacenter > Options
(using Auto-fill vs configurations). I also tested my security key being used as the token on webauthn.io, but there was no issue there.I have no problem with leaving the required TFA option set to none, as I am the only user and this is just a homelab setup, but is what is described above the expected behavior?