pallotron / yubiswitch

OSX status bar application to enable/disable Yubikey Nano

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

yubikey is not disabled automatically

ThomasWaldmann opened this issue · comments

commented

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

@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?

commented

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

OK, I'll uninstall / reinstall. Thanks!

commented

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

  • if I press the hotkey, it says enabled via notification (and yes, it inserts random crap)
  • if i wait until the notification says it is disabled, touch the yk afterwards, it still inserts random crap.
  • if i disable by quickly pressing the hotkey twice, it still inserts random crap

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

commented

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

commented

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!

@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.

commented

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.