Watch over GPG keys uploaded to a keyserver and inform about their expiry using a MonDash dashboard
Find a file
Knut Ahlers 16e97aa1d5
Add support for http URLs for keys
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2022-03-12 03:02:09 +01:00
.gitignore Initial version 2020-10-17 17:43:28 +02:00
.repo-runner.yaml CI: Do not draft release 2021-10-18 02:24:15 +02:00
go.mod Fix: Self-Signature detection is broken, do the detection ourselves 2021-10-18 02:23:27 +02:00
go.sum Fix: Self-Signature detection is broken, do the detection ourselves 2021-10-18 02:23:27 +02:00
gpg.go Add support for http URLs for keys 2022-03-12 03:02:09 +01:00
History.md prepare release v0.1.2 2021-10-18 02:45:14 +02:00
LICENSE Initial version 2020-10-17 17:43:28 +02:00
main.go Add support for http URLs for keys 2022-03-12 03:02:09 +01:00
Makefile Add auto-publishing 2020-10-17 22:30:41 +02:00
README.md Initial version 2020-10-17 17:43:28 +02:00

Go Report Card

Luzifer / mondash-checkgpg

mondash-checkgpg is intended to watch over GPG keys uploaded to a keyserver and inform about their expiry using a MonDash dashboard.

Usage

# ./mondash-checkgpg --help
Usage of ./mondash-checkgpg:
  -c, --crit-at duration                    Switch state to critical if key expires within X (default 168h0m0s)
  -k, --key strings                         List of keys to check
      --key-server string                   Lookup path to retrieve the key from (default "http://keyserver.ubuntu.com/pks/lookup")
      --log-level string                    Log level (debug, info, warn, error, fatal) (default "info")
      --mondash-board string                ID of the Mondash board to send to
      --mondash-metric string               ID of the metric to submit to (default "checkgpg")
      --mondash-metric-expiry duration      Time in seconds when to remove the metric if there is no update (default 168h0m0s)
      --mondash-metric-freshness duration   Time in seconds when to switch to stale state of there is no update (default 168h0m0s)
      --mondash-token string                Token with write access to the board
      --version                             Prints current version and exits
  -w, --warn-at duration                    Switch state to warning if key expires within X (default 336h0m0s)

# ./mondash-checkgpg --mondash-board <boardid> --mondash-token <token> --key 0x43A4CD1C19DAE8558D40088E0066F03ED215AD7D