-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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-agent can't find pinentry #145392
yubikey-agent can't find pinentry #145392
Comments
Pinentry already approved the PR. For anyone interested in testing this, here is the snipped I use in my configuration.nix to override the yubikey-agent version with the commit of the PR:
and yes, it works ;-) Edit 2021-11-13: Changed Rev and sha256 to reflect changes in Yubikey PR |
Thanks for the clear bug report, @gador! I don't think there's much we can do until FiloSottile/yubikey-agent#107 is merged, and its maintainer can take months to approve PRs. |
@philandstuff thanks for looking at the code! I updated my comment and I agree, now we wait. |
Great, the upstream PR has been merged, now we just need to await a new version tag |
`yubikey-agent` is updated to a newer commit. It hasn't received an official release in a while which is why the update is to an "unstable" version. Closes NixOS#145392 Co-authored-by: teutat3s <[email protected]> Co-authored-by: hensoko <[email protected]>
Describe the bug
The new change to yubikey-agent here breaks yubikey-agent on NixOS. The upstream library used to be github.com/gopasspw/gopass and switched to github.com/gopasspw/pinentry. This new repo is a copy of the pinentry code of gopass, but without the commit history. Unfortunately the behavior of finding the pinentry binary changed here from just returning pinentry of the
PATH
variable to actually usinggpgconf
to determine the path.gpgconf
returns the (hard-coded) path to the relative pinentry binary in the gnupg folder. Since there is none (and the choice of pinentry flavor is left up to the gpg-agent so it didn't concern anyone), it now fails.This is a known problem of gpgconf, and something that is probably not easily fixed. For reference, here are the somewhat related issues: #92084, #97861.
Steps To Reproduce
Steps to reproduce the behavior:
services.yubikey-agent.enable
)It returns
PIN entry program "/nix/store/w1vdk0pi7jakzc8ndwgrzc2z9ic1x1wa-gnupg-2.2.27/bin/pinentry" not found!
Expected behavior
Yubikey-agent should start.
Additional context
I submitted an upstream PR with a small fix that allows the upstream library to fall back to the PATH pinentry when the path returned by gpgconf doesn't exist. See here.
If @dominikschulz agrees with the changes, and yubikey-agent uses the new version of the library, it should work again.
Notify maintainers
@philandstuff and @rawkode
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.Maintainer information:
The text was updated successfully, but these errors were encountered: