Repository navigation
Releases
ridgewarden 0.2.0
ridgewarden is the core agent for AREDN mesh apps: it polls the node, keeps a signed log every site agrees on, and keeps working when the mesh splits. See the README.
What's new in 0.2.0
Added
ridgewarden top: the agent live in a terminal or an SSH session, with an overview and a page each for peers, the log (each station's chains, forks, gaps and refused events), the node and the nodes it crawls, blobs with fetch progress, and recent events.- A
tuifeature inridgewarden-clientwith the piecestopis built from (event loop, tabs, state pills, tables, loading and error states, loading off the screen's thread), so apps can have terminal views that look and behave the same. GET /local/v1/metrics: the numbersridgewarden statusshows, in Prometheus' text format, for a scraper on the same machine. Off unless[metrics] enabled = true; loopback only, with the app token.- Polls of the site's own node are kept parsed (
node_polls,node_links) for 8 days, which "what changed",statusandtopread. Raw replies kept from before are parsed once on upgrade. aredn::ApiandNodeObs::apiinridgewarden-client: which sysinfo layout a reply was read as.- The simulator's 3.x nodes answer the way AREDN 3.25.8.0 does: JSON at
/cgi-bin/sysinfo.json(api_version 1.14, OLSR link qualities, LQM trackers, services by address) and an HTML page at/a/sysinfo. Its 4.x nodes redirect/cgi-bin/sysinfo.jsonto/a/sysinfo. ui::ICON: pages made withui::Pagecarry the suite's tab icon inline, so browsers no longer ask each app for a/favicon.icoit doesn't have.
Changed
- Sysinfo replies are read by their
api_version: 1.x link qualities as OLSR's 0-1 fractions, 2.x link data from LQM trackers only, and both where the version is missing or unknown (the agent logs that once). - Raw sysinfo replies are kept 2 days instead of 8.
mono_timecarries on across restarts, and past what a CLI command wrote meanwhile or what sync brought back after a restore from an old copy, instead of starting again from 0 each time the agent starts.- Node polls, crawls and sync follow a redirect only to the same host and port, and at most twice.
- CLI messages and the dashboard call the signed list of stations the trust list.
- Charts widen their left margin to fit long axis labels such as
-94.0 dBm, up to a third of the chart. - A sysinfo reply over 8 MB is refused, a service with a name, link, protocol or host over 256 bytes is left out, and one reply gives at most 4096 services and 8192 hosts.
- A service or host list too big for one event (256 KB as JSON) is kept for this site's own pages and not shared, instead of failing every poll; the agent logs it once.
- A poll that goes wrong after the node answered, such as a reply that isn't sysinfo, is logged as a failed poll with the reason, for the node and for crawled nodes, instead of leaving no trace.
ridgewarden toprefuses to run as root where the agent doesn't, since files root opens in the data dir could lock the agent out.- Terminal views keep only the newest unread load, and stop drawing as soon as any thread panics.
Fixed
- 3.x nodes are polled at
/cgi-bin/sysinfo.json. 3.25 answers/a/sysinfowith its web page, so every poll of a 3.x node failed. The core tries/a/sysinfofirst and remembers which path each node answered on. - Services on 3.x nodes are listed under the advertising node's name, from the hosts list, instead of its address.
- A neighbor blocked on the node (LQM
user_blocks) no longer comes back as a link fromlink_info. ridgewarden updateworks in a new folder in /var/tmp that only root can open, instead of in the data dir, whose owner (the agent's user) could swap a release between root checking and installing it. It never uses $TMPDIR, whichsuandsudo VAR=valuepass on from whoever asked, and refuses a parent folder other users could change. The folder of 0.1.0's updates in the data dir is removed.ridgewarden updateunpacks without the archive's owners and modes, installs only a plain file (never through a link), and stages the new binary as a new file, never writing through whatever was at that name; it syncs the binary to disk before the rename and the folder after it, and a failed folder sync after a good rename is a warning, not a failure. Anything left from a failed install is removed. GitHub's answer, the checksum list, the signature and the archive are refused past the size a real release has, whether curl fetches them or the mesh has them, and a release's tag must be a plain version.ridgewarden updatetries releases from the mesh and GitHub together, newest first by a proper version order, and takes the first that checks out; two names for one version, such as1.2.3and1.2.03, used to break the sort. Ctrl-C at its prompt removes its work folder.ridgewarden updatereads the archive's checksum fromsha256sumon stdin, so a path with a backslash in it can't garble it.- The dashboard's "stations writing" counts stations; it counted each station's telemetry log as another one.
- Peers from the config or an invite are named by their callsign on the dashboard, in
status, intopand in the metrics, from their signed identity, which the core checks after its first good pull from each. They showed?before. - The README runs the commands that open the agent's data as its user (
sudo -u ridgewarden) andupdatewithsudo, and says that the.deb's own scripts don't check the release signature.
Downloads
| File | For | Size | Notes |
|---|---|---|---|
ridgewarden_0.2.0_amd64.deb |
x86_64 | 2.9 MB | Debian / Raspberry Pi OS package |
ridgewarden_0.2.0_arm64.deb |
Raspberry Pi (arm64) | 2.7 MB | Debian / Raspberry Pi OS package |
ridgewarden-v0.2.0-aarch64-linux.tar.gz |
Raspberry Pi (aarch64) | 3.3 MB | Static binary, systemd unit, README and license |
ridgewarden-v0.2.0-x86_64-linux.tar.gz |
x86_64 | 3.6 MB | Static binary, systemd unit, README and license |
install-all.sh |
Linux | 2.8 KB | The core plus the apps you name (or the ten main ones), each checked with the core |
install.sh |
Linux | 3.2 KB | Script install: picks the build, checks checksum and signature |
SHA256SUMS.txt |
all | 1.4 KB | Checksums of every file |
SHA256SUMS.txt.sig |
all | 86 B | Release signature over the checksums |
Once installed, ridgewarden update finds newer releases on GitHub or on the mesh, checks the signature and checksum, and installs only when you say yes.
Install
One line, on a 64-bit Raspberry Pi OS or x86_64 Linux box on an AREDN node's LAN:
curl -fsSL https://github.com/Londopy/ridgewarden/releases/latest/download/install.sh | sudo RIDGEWARDEN_CALLSIGN=YOURCALL shDebian package: sudo apt install ./ridgewarden_0.2.0_arm64.deb (or _amd64), then sudo ridgewarden --config /etc/ridgewarden/ridgewarden.toml init --callsign YOURCALL --data-dir /var/lib/ridgewarden && sudo chown -R ridgewarden:ridgewarden /var/lib/ridgewarden && sudo systemctl enable --now ridgewarden.
Docker: docker run --network host -v /srv/ridgewarden:/data -v /etc/ridgewarden:/config ghcr.io/londopy/ridgewarden:0.2.0 (with data_dir = "/data" in the config).
Verify a download
sha256sum -c SHA256SUMS.txt --ignore-missing
ridgewarden verify-release SHA256SUMS.txtThe second command, run with a ridgewarden you already have installed, checks the release signature against the key that install trusts.
Checksums
5754357c2b6b91e0c813e7c5c2f80b663cddd0565e887183c886c699944bd377 install-all.sh
2d7bcb0ee001961426b083f25a43a82cfdc83f34babbd1fd79168ce46271ca5c install.sh
5a9631896fd3eeee5fa188f3bd071c87c9d00914cc7a97e50a453b16f39df43c ridgewarden-v0.2.0-aarch64-linux.tar.gz
430c7e58e9c3c2a7d6f3faf8bf21ffdd9b3d5367e6650758c1e1fce95d925ff4 ridgewarden-v0.2.0-aarch64-linux.tar.gz.magnet.png
0281f8f2228dbdea1565c6d17db6c249815ef58d76ec3a384d73463abf52e8e8 ridgewarden-v0.2.0-aarch64-linux.tar.gz.torrent
9bab636026c3f42c309321e76820f0472188b1ccf3e5e741bf319f81249db32a ridgewarden-v0.2.0-x86_64-linux.tar.gz
0269dda7501cfacf8cf8640a2bea70eadb1728b2ef34f3f6f77209a43e688049 ridgewarden-v0.2.0-x86_64-linux.tar.gz.magnet.png
3dd52f6826671b925f2e01ff121636ea36298d3c3741cf621fa88fd44e76d213 ridgewarden-v0.2.0-x86_64-linux.tar.gz.torrent
47d7373d9081063796b30e48593660aaae4c0674bc4a358432aca770fe1d0f35 ridgewarden_0.2.0_amd64.deb
4a79a178aafc83f9a6a2c2b46778d92098f7f8995926ce58bae937bb171ddb26 ridgewarden_0.2.0_amd64.deb.magnet.png
4f6095afc093562358316bf5ab48d12d9b22f7c0d6c2d0a588779fc6c9acdc66 ridgewarden_0.2.0_amd64.deb.torrent
a2f70a2d1050e62dbdaf663f84448296c24a08665f84663e551d3178763e9d4e ridgewarden_0.2.0_arm64.deb
f1774cf2c2ef6eddaef249d64dd3a6ba264ece83ff68511958efe4a11b5cf1f4 ridgewarden_0.2.0_arm64.deb.magnet.png
b5d1dfe9f9fb0a355fdb9228b228963f31cb855fc6a5e387f1c71ff9caf6011a ridgewarden_0.2.0_arm64.deb.torrent
Torrents
Each package and archive (.deb, .tar.gz) is also a .torrent with its GitHub download as the web seed: a BitTorrent client gets it from GitHub when nobody is seeding, and f...
ridgewarden 0.1.0
ridgewarden is the core agent for AREDN mesh apps: it polls the node, keeps a signed log every site agrees on, and keeps working when the mesh splits. See the README.
What's new in 0.1.0
Added
- Node poller: reads
/a/sysinfofrom the AREDN node on the LAN (read-only, 60 s minimum interval), parses 3.x and 4.x response shapes (ignoring 4.x neighbors that are listed but disconnected), and keeps raw snapshots in SQLite. - "What changed" report comparing the node's view now with 24 hours ago (
ridgewarden diffand the dashboard's Changes page). - Signed append-only event log: Ed25519 signatures over BLAKE3 ids, per-author hash chains, Lamport clocks, fork detection and key revocation.
- Pull-only gossip sync between agents with fork and digest repair, so every agent ends up with the same events; peers from config or discovered from verified
ridgewardenadverts. [sync] telemetry = falseskips other stations' polls and probes, for a data-mule car.- Trusted keys (
[trust]): apps believe only this station and pinned club keys. - Local API for apps: an event feed,
whoami, and a token-protected, loopback-only append. - Optional crawl of other backbone nodes for their links.
ridgewarden-clientcrate for building apps on the core, with shared alerts (ntfy, Discord, webhooks, acknowledge links, quiet hours, maintenance windows, silences) and server-drawn SVG charts.ridgewarden-sim, a fake AREDN mesh for testing without touching real nodes.- Telemetry log per station with signed checkpoints, so polls and probes are pruned everywhere after 30 days (
[retention]) while every site still agrees on what it holds. ridgewarden inviteandridgewarden join: one signed line to bring a site into a club.- Club trust list as a signed, versioned event (
ridgewarden trust add/remove/list), and[trust] blockedfor stations a site refuses to store. - Blob store: files shared over the mesh in verified 1 MiB chunks, resumable, rate-limited and limited to a time window (
ridgewarden blob,[blobs]), fetched in priority order, and open to apps through the local API (/local/v1/blob/add,want,export). ridgewarden update: signed releases from GitHub or from the mesh, installed only after confirmation;verify-release,release-keyandrelease-signfor checking and making releases.- Downloads: static Linux builds for x86_64 and Raspberry Pi,
.debpackages, a Docker image,install.sh, and signedSHA256SUMS.txt. ridgewarden invitealso prints the invite as a QR code (its own ISO/IEC 18004 encoder, levels M and L), and the dashboard has an invite page with the code as SVG, shown only on the machine itself.ridgewarden status: whether the agent is running, when the node last answered, how each peer's last pull went, and disk use per class.- Disk use per class (main log, telemetry, blobs, database file, exports and imports) on the dashboard, with the main log's yearly growth and where telemetry levels off at the configured retention.
ridgewarden blob unwant,POST /local/v1/blob/unwantandCoreClient::blob_unwant: stop fetching or keeping a blob and delete its chunks, keeping any chunk another wanted or held blob shares.GET /v1/blobs?root=andCoreClient::blob_status: one blob's state for apps waiting on it;GET /v1/peersfor the peers' last pull.- Preferred sources for a blob:
POST /local/v1/blob/wanttakespeers, an ordered list of core addresses asked for its chunks first (CoreClient::blob_want_from,ridgewarden blob want --from). Others are asked only for chunks those don't have, or after one fails; a failed peer sits out the rest of the fetch round. Withonly(blob_want_only_from,--only) no other peer is asked at all. [blobs.peer_rate_kbps]: a lower rate for chunks fetched from a given peer, for slow links, under the overallrate_kbps.node.pollevents carrytrackers(the node sent 4.x link-quality trackers) andstale_skipped(trackers left out because their neighbor went quiet).install-all.sh: the core and any of the twelve apps in one go, each app's release checked with the core's release key before its installer runs.- 20 seeded random partition drills in the tests (several sites, flaky links, cloned keys, telemetry pruning), checking that every site ends identical with nothing lost.
Changed
- Files apps hand over in
importsmust be plain files (links are refused), exports are written as new files that never follow a link, and the station key is set back to owner-only on every start, so an app in the agent's group can't reach the key that way. - The app token (
local.token) is readable by the agent's group, andimportsandexportsare group-writable, so each app runs as its own user in that group: it can sign events through the core but can't read the station key. - Peer addresses are kept in one spelling (lower-case host, no default port), so a per-peer rate or preferred peer matches however it was written.
- A blob fetch round stops after about a minute even when slow links are capped, and a chunk's transfer time counts toward its pause, so capped links get close to their cap.
GET /v1/blobslists complete and wanted blobs first, so manifests nobody wanted can't push them out of its 1000 entries.- Links in the shared page style have readable colors in light and dark mode, and focused controls show an outline.
Fixed
- Blob chunk fetches no longer follow redirects, so a peer can't point this core at another address.
- A blob fetched from a trusted station (by
auto_wantor wanted by hand) is fetched by that station's manifest, even when someone else's manifest for the same file arrived first; manifests with an impossible size or index length are ignored. - A chunk found damaged during an export sends the blob back to fetching instead of leaving it marked complete.
Downloads
| File | For | Size | Notes |
|---|---|---|---|
ridgewarden_0.1.0_amd64.deb |
x86_64 | 2.7 MB | Debian / Raspberry Pi OS package |
ridgewarden_0.1.0_arm64.deb |
Raspberry Pi (arm64) | 2.5 MB | Debian / Raspberry Pi OS package |
ridgewarden-v0.1.0-aarch64-linux.tar.gz |
Raspberry Pi (aarch64) | 3.0 MB | Static binary, systemd unit, README and license |
ridgewarden-v0.1.0-x86_64-linux.tar.gz |
x86_64 | 3.3 MB | Static binary, systemd unit, README and license |
install-all.sh |
Linux | 2.8 KB | The core plus the apps you name (or the ten main ones), each checked with the core |
install.sh |
Linux | 3.2 KB | Script install: picks the build, checks checksum and signature |
SHA256SUMS.txt |
all | 1.4 KB | Checksums of every file |
SHA256SUMS.txt.sig |
all | 86 B | Release signature over the checksums |
Once installed, ridgewarden update finds newer releases on GitHub or on the mesh, checks the signature and checksum, and installs only when you say yes.
Install
One line, on a 64-bit Raspberry Pi OS or x86_64 Linux box on an AREDN node's LAN:
curl -fsSL https://github.com/Londopy/ridgewarden/releases/latest/download/install.sh | sudo RIDGEWARDEN_CALLSIGN=YOURCALL shDebian package: sudo apt install ./ridgewarden_0.1.0_arm64.deb (or _amd64), then sudo ridgewarden --config /etc/ridgewarden/ridgewarden.toml init --callsign YOURCALL --data-dir /var/lib/ridgewarden && sudo chown -R ridgewarden:ridgewarden /var/lib/ridgewarden && sudo systemctl enable --now ridgewarden.
Docker: docker run --network host -v /srv/ridgewarden:/data -v /etc/ridgewarden:/config ghcr.io/londopy/ridgewarden:0.1.0 (with data_dir = "/data" in the config).
Verify a download
sha256sum -c SHA256SUMS.txt --ignore-missing
ridgewarden verify-release SHA256SUMS.txtThe second command, run with a ridgewarden you already have installed, checks the release signature against the key that install trusts.
Checksums
5754357c2b6b91e0c813e7c5c2f80b663cddd0565e887183c886c699944bd377 install-all.sh
2d7bcb0ee001961426b083f25a43a82cfdc83f34babbd1fd79168ce46271ca5c install.sh
1c6e1e3afd2925829f8a533e24fcfb7763627729179bda4d1b69ad5b9f4d06ab ridgewarden-v0.1.0-aarch64-linux.tar.gz
82924c5a28644b5f803fc6f05733f4315b7d66570b22da2f18d84318d2935be3 ridgewarden-v0.1.0-aarch64-linux.tar.gz.magnet.png
248bdf1bb3679bf020be60b000d915a1c9ed1292e2defd0e21ed42264fa170c2 ridgewarden-v0.1.0-aarch64-linux.tar.gz.torrent
61214443f0707f93789d38d6cbf028875bb89a5715ced767775e51a5e3203bd4 ridgewarden-v0.1.0-x86_64-linux.tar.gz
a322b36f0b177dcd8769723ce5c048e748bb77a096c319e99a3fd3e46ec13763 ridgewarden-v0.1.0-x86_64-linux.tar.gz.magnet.png
b8fd7514bc3e1c60d3dfa8a5de0040dad0191ab91b9b0b1dd6d2a1b608531723 ridgewarden-v0.1.0-x86_64-linux.tar.gz.torrent
3326b8d01c9b8197a2dff6acfc3f9e958c7bc73fd6d5ac1760a09b64148a4e06 ridgewarden_0.1.0_amd64.deb
ac56b338648fc507f570c15b523da2357acffb2d5f3eb2aea9e151a5a6142dbd ridgewarden_0.1.0_amd64.deb.magnet.png
de226c464b75a3069b8fa000a8f35d4f56d593d0749e4e14238a75d774f3bf8d ridgewarden_0.1.0_amd64.deb.torrent
8c3fbff108819c0ce28b8e9851b6b43eb5c426025b5977e209ee02c216891862 ridgewarden_0.1.0_arm64.deb
21db16b65572c2e9d421ebaa2a5f4bb4f09f744baf4a93c22c24b4931c4938ad ridgeward...