pallotron / yubiswitch

OSX status bar application to enable/disable Yubikey Nano
Other
871 stars 65 forks source link

yubikey is not disabled automatically #120

Open ThomasWaldmann opened 1 year ago

ThomasWaldmann commented 1 year ago

Somehow since the recent updates, yubiswitch stopped working for me and I already posted random crap to chat channels etc. by accidentally touching the yubikey nano sitting in the usb-c port of my macbook air.

I checked the USB IDs and they are correct.

Menu:

[X] Automatically switch off yubikey

Preferences:

product 0x0407
vendor 0x1050
switch off after 5 seconds

macOS 12.6.1 Apple Macbook Air M1 yubiswitch 0.15

davidrothera commented 1 year ago

@ThomasWaldmann can you list what version you are running? If you are running v0.16 (latest version) and still seeing issues can you go through the uninstall instructions and try installing fresh?

ThomasWaldmann commented 1 year ago

Oh, 0.16 already? Things going fast recently! :-)

OK, I'll uninstall / reinstall. Thanks!

ThomasWaldmann commented 1 year ago

OK, I did the manual deinstallation and installed 0.16 afterwards, but it still does not work:

So it seems like "disabling" the yk does not work at all.

ThomasWaldmann commented 1 year ago

BTW, the manual deinstall steps miss a -rf to remove the app directory.

ThomasWaldmann commented 1 year ago

Ah, I found the root cause:

When installing yubiswitch, it tells you it needs accessibility permissions and opens the preferences pane related to that.

In my case, yubiswitch was already in the list and also it was already checked. I unchecked it and checked it again (just to make sure).

But that was not enough, it did not work after the installation.

So I tried selecting the yubiswitch.app entry, clicking on - there to remove it and then on + to add it again (and made sure it is checked also).

Now it works!

davidrothera commented 1 year ago

@ThomasWaldmann thanks for that, I'll add it as another troubleshooting side. I'm guessing that these are caused by the fact we've had to change the certificates that things are signed with.

I'll also see if there is a way to spot this and remediate ourselves.

ThomasWaldmann commented 1 year ago

Somehow the issue came back and the yubikey sometimes yubisneezes at random places if I accidentally touch it.

Is there maybe something out of sync with what the app thinks its state is and what its actual state is? Or that sometimes disabling does not work?

BTW, since recently I use 2 yubikeys (of different type), so I sometimes unplug the primary one (that is known to yubiswitch), plug in and use the secondary one, then plug in the primary one again.