From 16a109abc31fb40090752098a247844d3b3a18d8 Mon Sep 17 00:00:00 2001 From: Maxim Baz Date: Sun, 14 Jan 2024 11:41:13 +0100 Subject: [PATCH] Document switch to `gpgme` --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 7897498..009e579 100644 --- a/README.md +++ b/README.md @@ -31,11 +31,15 @@ $ systemctl --user enable --now yubikey-touch-detector.socket Alternatively you can download the latest release from the [GitHub releases](https://github.com/maximbaz/yubikey-touch-detector/releases) page. All releases are signed with [my PGP key](https://keybase.io/maximbaz). Finally you can install the app with `go`: + - For Go <1.17 + ``` $ go get -u github.com/maximbaz/yubikey-touch-detector ``` + - For [Go >1.17](https://go.dev/doc/go-get-install-deprecation): + ``` $ go install github.com/maximbaz/yubikey-touch-detector@latest ``` @@ -121,6 +125,11 @@ In order to not run the `gpg --card-status` indefinitely (which leads to YubiKey > If the path to your `pubring.kbx` file differs, define `$GNUPGHOME` environment variable, globally or in `$XDG_CONFIG_HOME/yubikey-touch-detector/service.conf`. +Since v1.11.0 we started using `gpgme` to perform some operations above: + +- we are now using Assuan protocol to query card status, instead of spawning `gpg --card-status` processes. +- we are now querying path to `pubring.kbx` from `gpgme`. + ### Detecting ssh operations The requests performed on a local host will be captured by the `gpg` detector. However, in order to detect the use of forwarded `ssh-agent` on a remote host, an additional detector was introduced.