Commit Graph
54 Commits
Author SHA1 Message Date
patrickandClaude Opus 5.5 818a2e7a1c README: add CloudPanel setup section
Run kernelwatch outside the site user's htdocs, create the site as a
Reverse Proxy to a free local port (8080 may be taken by Varnish's
backend), and check the generated vhost forwards Host and
X-Forwarded-For and doesn't serve /static from the empty docroot.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-17 10:33:46 -04:00
patrickandClaude Opus 5.5 16d647cf9c Support Ubuntu 22.04 (agent and server on Python 3.10)
The server only needed Python 3.11 for tomllib. Fall back to a small
parser for the flat key = value subset the config uses, checked against
tomllib on the shipped example. Relax the installer's version check to
3.10 and list Ubuntu 22.04 as supported for agents and server.

Add status tests using uname -v / package versions captured from real
22.04.5 and 24.04.4 HWE hosts, confirming the Ubuntu build mapping.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-17 10:23:00 -04:00
patrickandClaude Opus 5.5 48f2d155af Run the agent unprivileged; detect in-place kernel upgrades
The agent ran as (capability-less) root only so needrestart could read
Ubuntu's root-only /boot images. Switch the unit to DynamicUser=yes and
make needrestart optional.

To cover the case needrestart was catching (running kernel's package
upgraded in place, same uname -r), the agent now reports the installed
package version of the running kernel and the server compares it with
the build in uname -v: "Debian 6.12.57-1" vs 6.12.57-1 on Debian,
"#85-Ubuntu" / "#33~24.04.1-Ubuntu" vs the upload part of 6.8.0-85.85 /
6.14.0-33.33~24.04.1 on Ubuntu. Unrecognised builds fall back to
needrestart and the newest-installed comparison.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-17 10:19:41 -04:00
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