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>
15 lines
483 B
Plaintext
15 lines
483 B
Plaintext
# /etc/kernelwatch/agent.conf
|
|
|
|
# Base URL of the kernelwatch server (the agent POSTs to /api/v1/report).
|
|
SERVER_URL=https://kernelwatch.example.internal
|
|
|
|
# The host token is read from the systemd credential when run by the timer.
|
|
# This path is only used for manual runs (sudo kernelwatch-agent).
|
|
TOKEN_FILE=/etc/kernelwatch/agent.token
|
|
|
|
# CA bundle for a server certificate signed by a private CA (optional).
|
|
#CA_FILE=/etc/kernelwatch/ca.pem
|
|
|
|
# curl timeout in seconds.
|
|
#TIMEOUT=30
|