Add a one-line summary to each docs page and tidy the development page
CI / tests (Python 3.10) (pull_request) Successful in 25s
CI / tests (Python 3.11) (pull_request) Successful in 25s
CI / tests (Python 3.12) (pull_request) Successful in 24s
CI / tests (Python 3.13) (pull_request) Successful in 24s
CI / lint (pull_request) Successful in 3s
CI / tests (Python 3.10) (pull_request) Successful in 25s
CI / tests (Python 3.11) (pull_request) Successful in 25s
CI / tests (Python 3.12) (pull_request) Successful in 24s
CI / tests (Python 3.13) (pull_request) Successful in 24s
CI / lint (pull_request) Successful in 3s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e8c996965d
commit
4b5dcae2ad
8 files changed
+23
-1
No files matched your search
@@ -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,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
@@ -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,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,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,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,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,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:
|
||||||
|
|||||||
Reference in new issue
Block a user