Closed Ma27 closed 6 months ago
Thanks! We do already have something similar in place for scdaemon (part of gpg) and I would prefer if this addition was done in the same way and place, without introducing new project dependencies. See https://github.com/Yubico/yubikey-manager/blob/main/ykman/pcsc/__init__.py#L98 for details.
@dainnilsson fair point! Updated accordingly! :)
Thanks! It's in the right location now, but I still think we should be able to do this without adding the psutil dependency.
Fair. Will look into it soonish and report back :)
Right, we depend on procps being installed here, so it's effectively just pkill -HUP
. Updated the PR @dainnilsson .
Thanks. The code looks fine, but you still have some unused imports that need to be removed.
Edit: I will fix up this myself so that we can get it merged, as we'll be doing a new release quite soon. Please leave it as is!
yubikey-agent
is an SSH agent written in Go that uses the PIV module of a YubiKey for SSH[1].Since it takes a persistent transaction on the YubiKey, using e.g.
ykman
will fail when it's active. I think it's tedious to always send a SIGHUP to it whenever I want to useykman
, so I added this small patch that does that for me. Inspired by whatage-plugin-yubikey
is also doing[2].Not sure about Windows support, but I left it out because
yubikey-agent
doesn't do any Windows AFAIK and SIGHUP isn't supported there.[1] https://github.com/FiloSottile/yubikey-agent [2] https://github.com/str4d/age-plugin-yubikey/commit/1913838f8ed4b30c756c3c20ea5fdf1680ea97ca