Repository navigation
Conversation
|
Hi, thank you for your contribution. What you say make sense to me. @ikerexxe Can you please look at this once as you did some work in pam_u2f area? |
|
But for none gnome configuration, KDE's |
Hmm. Probably the best solution would be for KDE to switch to system-auth. Password-auth should be really reserved just for password or password-like authentication, so you don't only miss fingerprint but smartcards as well. Can you report a bug against Fedora KDE spin and lets see what happens there. |
|
Ok, I'll try to get a hold of KDE devs about this.
I am confused about this then. Why is this line in This one would pass through the password-like authentication so stuff like gnome-keyring will not work because no password is passed. |
|
@LecrisUT can you define what's the exact workflow that you are looking for? I'm specially concerned as to what should happen when enabling |
|
@ikerexxe with regards to
With regards to |
If that is so, then I think that you need to change the |
|
How does it work if the user did not setup FIDO for that account? Will it return error? But from my reading of Edit: Well, I've confirmed that you are not locked-out, and indeed |
Yes, it will return an error and I think the fail fast approach is better for this case. @pbrezina have I addressed your concern? |
|
Btw, I should add the link to Fedora KDE issue on this. As for the CI, anything I should do to make it run? |
|
Hi, I'm sorry for the delay, I was side tracked with other tasks, I will look into this during this or the next week. |
When the user has set both a yubikey and a fingerprint sensor, the former fails quick when no suitable device is present, while the latter awaits the user input and retries. A sensible order is then to try the yubikey first and then the fingerprint
This will ensure that the authenthication will fail fast if no FIDO device is present
0d0407d to
70fe1bc
Compare
|
Hi, in general, I agree with the patch. But I still don't think that pam_fprintd should be used in password-auth as that is definitely not how it should be used in Gnome. I don't know much about KDE, I know there are/were other issues related to pam_u2f. I need to reach and connect KDE and Gnome developers and talk to them about how exactly are they using different PAM stacks and what are the differences between these two. Gnome has three dconf settings that say what auth type is enabled (password, smartcard, fingerprint) and it loads the pam stack based on this information. I need to dig deeper to the original pull request to see why we kept pam_u2f in password-auth. Doesn't it work similar to password? I.e. you press button on the token and it writes stuff to stdin? About requisite, if pam_u2f fails then pam_faillock does not run, so imho it should stay on required. |
|
Unfortunately, I don't have any token so adding changes to pam_u2f is always difficult for me as I don't have any means to test it. |
|
So the main is d2d621d. Feel free to drop any of the other 2. I have tried to get in touch with Fedora KDE packagers, but they wouldn't respond on this. If you could try and contact them, that would be wonderful. About the
As far as I know, no it goes through the specific pam library. The key is that it has to be there for calls like |
|
I just initiated the discussion with Gnome people, I yet need to lookup contact person for KDE. |
|
As a GNOME person, I'll say we don't use system-auth ~at all (except for from polkit), so changes to it won't really affect us. It makes sense to me to try the thing that fails fast first. I do wonder if it will slow things down for people who have yubikeys in their system 24/7 for different use cases than pam-u2f-2fa but 🤷🏽♂️ As the person who originally added pam_u2f.so being in |
|
It's been a while since the debugging session on this. I don't remember what it was that had me make the commit to add My setup is that I have my work pc password saved in a keepass and use it only in case of emergencies. Otherwise I would prefer to use the yubikey or fingerprint authentication for all access. And this PR is mostly to make the interaction between all 3 methods more accessible. It might be that the KDE or Fedora KDE pam stack is misusing the |
|
Thanks for the explanation. So let's leave it in system-auth and password-auth for now, remove commit that adds fprintd do password-auth. I'm not sure about the
If I understand it correctly, requisite will reject other means of authentication if user has u2f enabled, right?
Yes. With current and emerging authentication standards, it is needed to agree on some common handling of non-password authentication. It is no longer just smartcard and fingerprint, but SSSD now also supports OAuth2 and passkey. But that is out of authselect scope. |
|
Closing for inactivity. |
|
Would still love to have at least the concept of this implemented, but I don't have enough expertise to understand the intricacies. But maybe d2d621d is sufficient and it can be cherry-picked in, with some minor adjustment that |
When the user has set both a yubikey and a fingerprint sensor, the former fails quick when no suitable device is present, while the latter awaits the user input and retries.
A sensible order is then to try the yubikey first and then the fingerprint.
Note that it is ambiguous when the user has a setup of
with-pam-u2f-2faandwith-fingerprint, i.e. does the user want:I suspect that the latter was done even without the reordering of
auth required pam_u2f.so cue, but I am not familiar enough to confirm this, or to know how can one configure it for the first scenario