You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
What is the expected behavior when computer has multiple YubiKeys? #64
What is the expected behavior when the challenge is presented? Should I be able to touch either key, or do I need to touch a specific key? How is that device determined?
You have to have only one key plugged in to be certain.
git-credential-keepassxc relies on yubico-manager [1], and it simply
grabs the first YubiKey it finds [2]. In terms of their order, this list
comes from libusb_get_device_list() [3], which I think ultimately relies
on the kernel. It _might_ be in the same order of lsusb output.
I am aware that when using FIDO2/WebAuthn/U2F, all connected YubiKeys
flash and you can tap on any of them. Not sure if this can be
implemented for HMAC-SHA1 as I don't know if this request can be
cancelled or not. (Even using ykchalresp you can't cancel a request.
YubiKey keeps flashing after you kill the ykchalresp process. Of course
it's possible that the only missing piece of the puzzle is signal
handling in ykchalresp though.)
I'm not sure how your monitor played a role in this. Are you using the
built-in USB hub in your monitor, or this is actually a multi-seat
situation? If latter, maybe you can play around with udev to make
different YubiKeys available to different seats?
[1] https://github.com/wisespace-io/yubico-manager
[2] https://github.com/wisespace-io/yubico-manager/blob/287814ab5365e9bf1911058c88768f78b990517f/src/lib.rs#L55-L68
[3] https://libusb.sourceforge.io/api-1.0/group__libusb__dev.html#gac0fe4b65914c5ed036e6cbec61cb0b97
Thanks, @Frederick888 . I appreciate the detailed response and the links. It does look like there is no ordering guarantee promised by libusb_get_device_list, and the appropriate place to allow some deterministic behavior would be in the yubico-manager package.
I notice that git-credential-keepassxc is storing a serial number in the config file. When there are multiple yubikeys with the same secret, is the serial # used for anything?
Thanks! This package is solving a real problem for me so I appreciate that you have written it.
Activity
Frederick888 commentedon Jan 17, 2023
dcopso commentedon Jan 17, 2023
Thanks, @Frederick888 . I appreciate the detailed response and the links. It does look like there is no ordering guarantee promised by libusb_get_device_list, and the appropriate place to allow some deterministic behavior would be in the yubico-manager package.
I notice that git-credential-keepassxc is storing a serial number in the config file. When there are multiple yubikeys with the same secret, is the serial # used for anything?
Thanks! This package is solving a real problem for me so I appreciate that you have written it.
Frederick888 commentedon Jan 18, 2023