Split the README into an overview and docs/ pages #21

Merged
patrick merged 5 commits from docs/split-readme into main 2026-10-30 16:13:34 +00:00
8 changed files with 23 additions and 1 deletions
Showing only changes of commit 4b5dcae2ad - Show all commits

No files matched your search

+2
View File
@@ -2,6 +2,8 @@
[← kernelwatch](../README.md) [← kernelwatch](../README.md)
Installing the agent on hosts, one at a time or across the whole fleet.
## Adding a host ## Adding a host
On the server: On the server:
+2
View File
@@ -2,6 +2,8 @@
[← kernelwatch](../README.md) [← kernelwatch](../README.md)
ntfy notifications for stale hosts, pending reboots and updates, plus heartbeat monitoring so you find out if kernelwatch itself stops.
## Stale-host, reboot and update alerts (ntfy) ## Stale-host, reboot and update alerts (ntfy)
The server can notify an [ntfy](https://ntfy.sh/) topic when a host stops The server can notify an [ntfy](https://ntfy.sh/) topic when a host stops
+9 -1
View File
@@ -2,6 +2,8 @@
[← kernelwatch](../README.md) [← kernelwatch](../README.md)
Running the tests and a local server.
```sh ```sh
make test # unit + integration tests (stdlib unittest) make test # unit + integration tests (stdlib unittest)
make lint # shellcheck, if available make lint # shellcheck, if available
@@ -15,11 +17,15 @@ The tests run a real server on an ephemeral port. They also run the real agent
script against stubbed `dpkg-query`/`apt-get`/`needrestart`/`uname` and a fake script against stubbed `dpkg-query`/`apt-get`/`needrestart`/`uname` and a fake
filesystem root (`KERNELWATCH_ROOT`), including one end-to-end agent → server filesystem root (`KERNELWATCH_ROOT`), including one end-to-end agent → server
report. report.
Both installers (`agent/install.sh`, `server/install.sh`) run for real in the tests Both installers (`agent/install.sh`, `server/install.sh`) run for real in the tests
against a fake root: `KERNELWATCH_ROOT` prefixes every path they write and skips against a fake root: `KERNELWATCH_ROOT` prefixes every path they write and skips
their root check, and `systemctl`, `apt-get`, `useradd` and the like are stubs that their root check, and `systemctl`, `apt-get`, `useradd` and the like are stubs that
log their arguments. Don't set it on a real host. log their arguments. Don't set it on a real host.
`tests/test_docs.py` checks that every relative link and `#anchor` in the README
and `docs/` resolves, so move or rename a heading and it tells you what broke.
Run a local server against a scratch database: Run a local server against a scratch database:
```sh ```sh
@@ -32,5 +38,7 @@ export KERNELWATCH_CONFIG=/tmp/kw.toml
## Ideas for later ## Ideas for later
- Additional notification channels - Additional notification channels
- A JSON endpoint for scripting - An HTTP endpoint for `kernelwatch status`, behind a hashed API token and your
proxy's IP allow-list, if something has to poll remotely (the CLI already
covers scripting on the dashboard host)
- Grouping or tagging hosts (prod/staging, location) - Grouping or tagging hosts (prod/staging, location)
+2
View File
@@ -2,6 +2,8 @@
[← kernelwatch](../README.md) [← kernelwatch](../README.md)
How each host's status is decided, and how the agent collects the facts behind it.
Each host gets one status. When several apply, the worst one wins: Each host gets one status. When several apply, the worst one wins:
| Status | Meaning | | Status | Meaning |
+2
View File
@@ -2,6 +2,8 @@
[← kernelwatch](../README.md) [← kernelwatch](../README.md)
Day-to-day tasks: querying the fleet from a script, and backing up the database.
## Scripting: `kernelwatch status` ## Scripting: `kernelwatch status`
`kernelwatch status` prints the fleet the way the dashboard shows it, from the `kernelwatch status` prints the fleet the way the dashboard shows it, from the
+2
View File
@@ -2,6 +2,8 @@
[← kernelwatch](../README.md) [← kernelwatch](../README.md)
How to put TLS, and optionally extra access control, in front of the server.
## TLS reverse proxy ## TLS reverse proxy
The server speaks plain HTTP on `127.0.0.1:8080`. Put a TLS proxy in front of it. The server speaks plain HTTP on `127.0.0.1:8080`. Put a TLS proxy in front of it.
+2
View File
@@ -2,6 +2,8 @@
[← kernelwatch](../README.md) [← kernelwatch](../README.md)
How kernelwatch is locked down, and what it deliberately can't do.
- **Host identity comes from the token, not the payload.** A host can only - **Host identity comes from the token, not the payload.** A host can only
report as itself. Tokens are 256-bit random values; only their SHA-256 is stored. report as itself. Tokens are 256-bit random values; only their SHA-256 is stored.
- **Report rate limit.** A report arriving less than `report_min_interval_seconds` - **Report rate limit.** A report arriving less than `report_min_interval_seconds`
+2
View File
@@ -2,6 +2,8 @@
[← kernelwatch](../README.md) [← kernelwatch](../README.md)
Installing and upgrading the dashboard server, and the admin commands.
## Install and upgrade ## Install and upgrade
On the dashboard host: On the dashboard host: