Show HN: yknotify – Notify when YubiKey needs touch on macOS
github.com
github.com
So this tool gives you the reminder to say "hey; you're doing a thing that's stalled waiting for your tap".
It reminds me of the way my car pops up on the display to say "hey, make sure to check the back seat" when I turn it off.
So you need to approve the usage of that secret by touching the yubikey.
It happens sometimes that I forget that's what it's waiting for. I'm no longer on Mac though. I have KDE. I don't always see the key flashing either because sometimes it's buried under the mess on my desk (I know...)
It's a bit annoying that yubikeys don't just trigger a hid event or something, as far as i understand the only way to tell is by looking for some obscure log entries.
You can't use a screwdriver handle as a hammer then complain it doesn't work to your expectations.
(It's true that if an attacker slipped in a request right before I was expecting to tap my YubiKey, I would tap it a second time to get my operation to succeed under the assumption that it didn't detect my touch the first time. But I would become suspicious if that kept happening.)
But yeah like someone said below, many actions like github pull would need it. I just want something that makes it easier to see it's waiting for me.
Thank you so much for making this
I guess the alternative is something like Passkeys synchronized via iCloud Keychain. Hopefully Apple is encrypting the Passkey key material within the Secure Enclave using each other Secure Enclave's public key. Otherwise it kind of defeats the whole purpose of having a Secure Enclave. (If I remove a YubiKey from a computer, I have some assurance that computer can't authenticate with YK-controlled accounts.)
iCloud Keychain has always been e2e encrypted. If you lost and recovered your Apple password, you'd lose all your stored passwords.
𝄢 yknotify
{"ts":"2025-02-12T20:09:03Z","type":"FIDO2"}
{"ts":"2025-02-12T20:09:14Z","type":"OpenPGP"}/s
Joking aside, as others have said. I've never been shocked to learn something was waiting for my touch because it's always a thing I've initiated and am usually saying "cmon cmon" while waiting for the key to become ready _for_ me to touch it.
If you want to write a program that notifies my yubikey that a human is waiting for it to light up so they can touch it, then we'll be talking :)