-
-
Notifications
You must be signed in to change notification settings - Fork 34
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
Mac Support #5
Comments
Hey! I've just checked, it seems it isn't possible to make this tool work on OSX 😞 The reason is, If you have time to play around, I encourage you to try to see if you will be able to make this tool work by only using those events (e.g. replace all occurrences of Linux-specific events like this with cross-platform event ( I'll close the issue, but feel free to ask questions, and as I said, if you manage to get something working, create a PR and I'll test it on Linux 😉 |
Thanks - the info is much appreciated!! |
I've run into this problem as well, and looked at a number of solutions. Unfortunately, neither of the native Mac/BSD facilities for filesystem events ( macOS Catalina (10.15) ships with something new called Endpoint Security Framework, and it provides file open events (see example). Hopefully that might provide a way forward here :) |
nice findings! If you have a chance to play around and test whether endpoint security framework can indeed capture the moment when yubikey is waiting for a touch on say gpg operation, I highly encourage you to do it! 😉 I don't have a Mac to confirm, but if you say it works and it doesn't break Linux support, I will merge :) |
I'm testing on Windows and found gpg would Create, Write then Remove a file Also there's |
This one is still actual for me. @maximbaz we can make it work? |
The problem is that nobody knows how to make it work... As said previously, I'll gladly merge if anyone finds a solution and it doesn't break Linux support 😉 |
I found some macOS log events that appear to be associated with various applications that require YubiKey touch: https://github.com/noperator/dotfiles/blob/a7ddfa91eb1ec6443deb0b5133051cb4b927ef63/LaunchAgents/yklogs.sh#L9-L13 When waiting for FIDO2 touch, we'll see this message logged once (where the hex client ID will vary):
When waiting for OpenPGP touch, we'll see this message logged repeatedly:
I'm successfully using this to alert me in macOS Notification Center that I need to touch the YubiKey. |
Whoa, impressive findings! Congrats on making that work! How interested would you be in integrating that into this project? I'm happy to assist but as I don't use macOS I'll rely on the community to confirm that it works. Happy to assist with e.g. making this project compile on mac, which I imagine would require extracting some pieces in separate files and making them conditional (if linux use that file, if mac use that other file - we do that for *bsd already). Will reopen issue, even if you are not interested in contributing this, someone else might be able to build upon your work. Thanks again for sharing this! |
No problem. I've been needing this on macOS for years and finally spent an afternoon digging into it :) I'm mildly interested in integrating the technique into this project and will report back here if I start working on it. |
Created a very simple CLI tool for macOS: https://github.com/noperator/yknotify Works like this:
Gonna use it for a while and make sure the technique is reliable before attempting to integrate here. |
Has anyone been successful in building this on OSX? I receive the following error:
Great project btw!
The text was updated successfully, but these errors were encountered: