https://github.com/mafredri/gpg-notify
Notify about GPG events (pinentry, smartcard)
https://github.com/mafredri/gpg-notify
gpg pinentry smartcard yubikey
Last synced: 22 days ago
JSON representation
Notify about GPG events (pinentry, smartcard)
- Host: GitHub
- URL: https://github.com/mafredri/gpg-notify
- Owner: mafredri
- License: mit
- Created: 2018-11-08T21:35:53.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-11-14T18:19:56.000Z (over 6 years ago)
- Last Synced: 2025-03-31T21:31:36.492Z (2 months ago)
- Topics: gpg, pinentry, smartcard, yubikey
- Language: Go
- Size: 364 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gpg-notify
This command line tool (future daemon) watches `gpg-agent` logs and notifies you when a smartcard action is required or what process requested pinentry.
## Status
Super early WIP.
## Installing
```console
$ go get -u github.com/mafredri/gpg-notify
```## Running
1. Make sure to Enable log file monitoring
2. Run `gpg-notify`
- Actually `cd $GOPATH/src/github.com/mafredri/gpg-notify && gpg-notify` for now (because images...)
3. Make sure gpg-agent is restarted if it's already running
- `gpgconf --kill gpg-agent`## Enable log file monitoring
Modify `~/.gnupg/gpg-agent.conf`:
```
log-file socket:///Users/myuser/.gnupg/S.gpg-agent.log
debug-pinentry
debug 1024
```## TODO
- Better state handling
- Display more detailed information about the process that invoked pinentry or smartcard
- Daemonize this tool
- Move out notifications into separate project?
- Attribute icons
- Think about security aspects:
- Detection (and notificon) when gpg-agent / scdaemon is restarted
- Only allow gpg-agent / scdaemon to connect and write to socket