Files
kernel-automation/server/server.toml.example
T
patrickandClaude Opus 5.5 07749b01b0 Scaffold kernelwatch: fleet kernel status agent and dashboard
Agent: bash script run hourly by a hardened systemd timer on Debian 12/13
and Ubuntu 24.04. Collects running vs installed kernel (needrestart when
available), pending/security updates via a read-only apt simulation,
reboot-required state and apt list freshness, and POSTs them as JSON.

Server: stdlib-only Python + SQLite (system python3 >= 3.11). Token-bound
ingest API, login-protected dashboard with per-host status
(stale/reboot/update/ok) and history, admin CLI, systemd unit and installer.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-17 10:15:06 -04:00

26 lines
898 B
TOML

# /etc/kernelwatch/server.toml — every key is optional; defaults shown.
# The server speaks plain HTTP; keep it on loopback behind a TLS reverse proxy.
listen_host = "127.0.0.1"
listen_port = 8080
db_path = "/var/lib/kernelwatch/kernelwatch.db"
# A host that hasn't reported in this long shows as "stale".
# Agents report hourly (plus up to 15 min jitter).
stale_after_hours = 3.0
# Package lists older than this mean "no updates" can't be trusted.
apt_stale_after_hours = 48.0
report_retention_days = 30
session_hours = 12
# Session cookie gets the Secure flag. Leave on unless you're testing over
# plain HTTP on something other than localhost.
secure_cookies = true
# Behind a reverse proxy, use X-Forwarded-For / X-Forwarded-Host for login
# rate limiting and origin checks. Only enable if the port isn't reachable
# directly, or clients can spoof their IP.
trust_proxy_headers = false