Hardware-backed passkey does not require PIN for sudo

(#5114) Bug Open: Fix pending Priority: P2 security

Thread

Comment by Sunlight Hertz
Sunlight Hertz OP1 vote edited 1 reply
Reviewing the pull request, it appears the change will be to require PIN / biometric. To the best of my understanding of the FIDO2 spec, this will force users who do not currently have a PIN to set one on their token before being able to use it with Fluxer. This will result in the disablement of any registered FIDO2 passkeys that do not support user verification. If Fluxer intends to require PINs on tokens, this is correct. My suggestion was to use the preferred option, which requires a PIN if one is set on the token but allows auth to proceed if the user chose to never configure it.
Comment by Sunlight Hertz
With further testing, it appears user verification is not required during Fluxer's passkey registration but is required during login from home screen. This appears to be another bug as it means you can register and require a key but not be able to use it for login. It would currently work for sudo and 2FA login after password. Whatever decision is reached, please ensure required | preferred | discouraged flag is set consistently across all flows.