It's a cmd-like Docker image that uses the really nice sslcheck tool to actually check the validity of TLS certificates.
Therefore the argument for sslcheck
's -file
argument has to be mounted inside the container to the exact location of /etc/hf-tlsmon/tlshosts_to_check
.
If the TLS certificate is less or equal valid for CERT_ALERT_THRESHOLD
remaining days, an alert will be posted into a Slack channel using the cool library slack-incoming-webhooks. The Slack incoming webhook URL must be provided as environment variable SLACK_INCOMING_WEBHOOK_URL
.
Usage example:
docker run \
-it \
-e SLACK_INCOMING_WEBHOOK_URL="<your-secret-incoming-webhook-URL>" \
-e CERT_ALERT_THRESHOLD="<num-of-remaining-days-to-trigger-altert>" \
-e STATSD_ADDRESS="<your-statsd-host>:<your-statsd-port>" \
--rm \
-v <your-sslcheck-hosts-file>:/etc/hf-tlsmon/tlshosts_to_check \
quay.io/hellofresh/hf-tlsmon:<GitHub-releases-version>
The StatsD address provided via STATSD_ADDRESS
is optional. Without it, hf-tlsmon
will still work but not publish it's aliveness metric.