Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

yubikey is not disabled automatically #120

Open
ThomasWaldmann opened this issue Oct 3, 2022 · 7 comments
Open

yubikey is not disabled automatically #120

ThomasWaldmann opened this issue Oct 3, 2022 · 7 comments

Comments

@ThomasWaldmann
Copy link

ThomasWaldmann commented Oct 3, 2022

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
Copy link
Collaborator

@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
Copy link
Author

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

OK, I'll uninstall / reinstall. Thanks!

@ThomasWaldmann
Copy link
Author

ThomasWaldmann commented Oct 3, 2022

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.

@ThomasWaldmann
Copy link
Author

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

@ThomasWaldmann
Copy link
Author

ThomasWaldmann commented Oct 3, 2022

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
Copy link
Collaborator

@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
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants