HUB
Sign inSign up
healthchecks logo

dgcosenza/healthchecks

By dgcosenza

•Updated about 3 hours ago

Hardened rootless Healthchecks.io cron monitor on Debian 13 (trixie-slim), 0 fixable CVEs.

Image
0

781

dgcosenza/healthchecks repository overview

⁠Healthchecks — Hardened Debian 13 (trixie-slim) Cron & Job Monitoring

Daily CI OpenSSF Scorecard Workflow Gitleaks Secret Scan Public Content Check OpenSSF Scorecard OpenSSF Best Practices

Trivy + Grype: 0 Fixable CVEs Signed: Cosign OIDC SLSA Build L3 SBOM: SPDX + CycloneDX Base OS Architectures Healthcheck: CI Verified Renovate Enabled Dependabot Enabled Daily Rebuilds

Latest Release Release Date Last Commit Docker Pulls Docker Image Size Registries: Docker Hub + GHCR Packaging License: MIT Upstream License GitHub Issues FNX Labs Catalog

A hardened, rootless multi-arch Healthchecks (healthchecks.io) self-hosted cron and background-job monitoring server built from official healthchecks/healthchecks source on Debian 13 (trixie-slim) + Python 3.13 — maintained by Daniel G. Cosenza from FNX Labs.

⁠Overview

dgcosenza/healthchecks is a drop-in, CVE-remediated replacement for the official healthchecks/healthchecks image. It compiles all native wheels (psycopg[c], mysqlclient, pycurl, apprise, minio, gunicorn) in an isolated builder stage with patched Python dependencies, runs strictly as non-root hc (UID/GID 1000:1000) under tini PID 1, supports Docker secret files (SECRET_KEY_FILE, DB_PASSWORD_FILE), and probes the live database-backed /health endpoint via fetchstatus.py.

⁠Current Versions

ComponentResolved Version
Healthchecks5.0.3
Python3.13 (Debian 13)
Base OSDebian 13.8 (trixie-slim)
Architectureslinux/amd64, linux/arm64
Uncompressed size (per arch)amd64: 104.3 MB, arm64: 322.7 MB
Last verified build (UTC)2026-11-28
Published multi-arch digestdgcosenza/healthchecks@sha256:ecb4bdf64253353bfbe1e6e16be1cab69595179850d925ec8eaba6b02062c423
GHCR mirrorghcr.io/dgcosenza/healthchecks@sha256:ecb4bdf64253353bfbe1e6e16be1cab69595179850d925ec8eaba6b02062c423
Supply chainCosign OIDC signed + SPDX & CycloneDX SBOM attestations + SLSA Build L3 provenance
Security gate (Trivy + Grype on SBOM)0 fixable findings of any severity (24 upstream-unfixed)

⁠Supported Tags

TagPolicyDescription
latestMovingLatest verified multi-arch build passing all CVE, Dive, and smoke gates.
<version> (e.g. 5.0.3)MovingLatest verified build for that Healthchecks release.
<version>-<YYYYMMDD>ImmutableDate-stamped daily security rebuild.
sha-<short>ImmutableGit commit tag from this repository.

⁠Supported Architectures

ArchitectureStatusVerification
linux/amd64Published & natively testedLive migrations, Gunicorn + alert/report workers, /health probe, Dive >= 95%, Trivy + Grype 0 fixable CVEs, Cosign OIDC, SLSA L3.
linux/arm64Published & natively testedLive migrations, Gunicorn + alert/report workers, /health probe, Dive >= 95%, Trivy + Grype 0 fixable CVEs, Cosign OIDC, SLSA L3.

⁠Quick Start

Volume ownership note: docker-compose.example.yml defaults to a named Docker volume so non-root runtime permissions (1000:1000) are initialized automatically; if switching to a host bind mount, pre-create the directory owned by 1000:1000 (mkdir -p ./data && chown 1000:1000 ./data) before docker compose up -d.

mkdir -p ./data ./secrets && chown 1000:1000 ./data
openssl rand -hex 32 > ./secrets/hc_secret_key.txt
chmod 600 ./secrets/hc_secret_key.txt

docker run -d --name healthchecks --restart unless-stopped \
  --cap-drop ALL --security-opt no-new-privileges:true \
  -p 127.0.0.1:8000:8000 \
  -v "$(pwd)/data:/data" \
  -v "$(pwd)/secrets/hc_secret_key.txt:/run/secrets/hc_secret_key:ro" \
  -e DB=sqlite -e DB_NAME=/data/hc.sqlite \
  -e SECRET_KEY_FILE=/run/secrets/hc_secret_key \
  -e ALLOWED_HOSTS="127.0.0.1,localhost" -e SITE_ROOT="http://127.0.0.1:8000" \
  dgcosenza/healthchecks:latest

⁠Compose Example

See docker-compose.example.yml⁠.

⁠Configuration

Supports all official Healthchecks environment variables⁠ (DB, DB_HOST, DB_NAME, DB_USER, DB_PASSWORD, SECRET_KEY, ALLOWED_HOSTS, SITE_ROOT, EMAIL_*, SMTPD_PORT, GUNICORN_PORT, GUNICORN_WORKERS, APPRISE_ENABLED) plus Docker secret file helpers:

VariableDefaultDescription
SECRET_KEY_FILE(empty)Path to secret file exported as SECRET_KEY.
DB_PASSWORD_FILE(empty)Path to secret file exported as DB_PASSWORD.
GUNICORN_PORT8000HTTP listening port.
GUNICORN_WORKERS4Number of Gunicorn worker processes.
TZEtc/UTCContainer timezone.

Ports: 8000/tcp (optional SMTPD_PORT when enabled). Volumes: /data (SQLite database when using DB=sqlite, owned by 1000:1000). User: hc (UID/GID 1000:1000). PID 1: tini.

⁠Healthcheck

HEALTHCHECK --interval=30s --timeout=5s --start-period=25s --retries=3 \
  CMD ["/opt/healthchecks/fetchstatus.py"]

Probes http://127.0.0.1:${GUNICORN_PORT}/health (which bypasses ALLOWED_HOSTS and executes a live database check). Verified on amd64 and arm64; do not disable in Compose.

⁠Upgrade / Migration from healthchecks/healthchecks

  1. Back up your PostgreSQL/MySQL database or /data/hc.sqlite (ensure /data is owned by 1000:1000).
  2. Switch the image to dgcosenza/healthchecks@sha256:<digest>; run.sh executes ./manage.py migrate --noinput automatically on startup.

⁠Supply-Chain Verification

cosign verify \
  --certificate-identity-regexp="^https://github\.com/dgcosenza/healthchecks-docker/\.github/workflows/daily\.yml@refs/heads/main$" \
  --certificate-oidc-issuer="https://token.actions.githubusercontent.com" \
  ghcr.io/dgcosenza/healthchecks:latest

gh attestation verify oci://ghcr.io/dgcosenza/healthchecks:latest --owner dgcosenza

⁠Security

  • 0 fixable vulnerabilities of any severity: Hard-gated by Trivy (UNKNOWN–CRITICAL, --ignore-unfixed, exit 1) and Grype on Syft SPDX SBOM (--only-fixed --fail-on negligible) across both OS packages and Python wheels on amd64 and arm64.
  • Rootless runtime & zero build tools: Runs as UID/GID 1000:1000 with cap_drop: [ALL] and no-new-privileges:true; build-essential and -dev headers remain exclusively in Stage 1.
  • Report issues via SECURITY.md⁠.

⁠Build Locally

docker buildx build --platform linux/amd64 --load -t dgcosenza/healthchecks:local .
./tests/smoke.sh dgcosenza/healthchecks:local

⁠Update Policy

.github/workflows/daily.yml⁠ runs daily at 05:45 UTC with --no-cache: resolves latest healthchecks/healthchecks release and debian:13.8-slim digest; rebuilds patched wheels on Debian Security-maintained Python 3.13; runs live smoke + Dive + Trivy + Grype gates on amd64 and arm64; publishes identical Cosign-signed SLSA L3 digests to Docker Hub and GHCR (plus optional secondary OCI mirrors); syncs docs & Hub overview; and manages a single ci-failure issue.

⁠Design Decisions

  • Multi-stage wheel compilation with explicit transitive security floors: Eliminates stale Python transitive CVEs (urllib3, msgpack, oauthlib, setuptools) and keeps compilers out of the runtime image.
  • Process group cleanup under tini: Cleanly shuts down gunicorn, sendalerts, sendreports, and optional smtpd on SIGTERM.

⁠License

⁠Credits

Maintained by Daniel G. Cosenza from FNX Labs. Upstream: healthchecks/healthchecks⁠.

Tag summary

Content type

Image

Digest

sha256:ecb4bdf64…

Size

99.4 MB

Last updated

about 3 hours ago

docker pull dgcosenza/healthchecks