Skip to content

ridgewarden 0.1.0

Choose a tag to compare

@github-actions github-actions released this 20 Nov 07:41
· 18 commits to main since this release

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/sysinfo from 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 diff and 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 ridgewarden adverts.
  • [sync] telemetry = false skips 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-client crate 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 invite and ridgewarden 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] blocked for 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-key and release-sign for checking and making releases.
  • Downloads: static Linux builds for x86_64 and Raspberry Pi, .deb packages, a Docker image, install.sh, and signed SHA256SUMS.txt.
  • ridgewarden invite also 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/unwant and CoreClient::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= and CoreClient::blob_status: one blob's state for apps waiting on it; GET /v1/peers for the peers' last pull.
  • Preferred sources for a blob: POST /local/v1/blob/want takes peers, 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. With only (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 overall rate_kbps.
  • node.poll events carry trackers (the node sent 4.x link-quality trackers) and stale_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 imports must 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, and imports and exports are 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/blobs lists 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_want or 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 sh

Debian 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.txt

The 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  ridgewarden_0.1.0_arm64.deb.magnet.png
cfc1abd5a4b35fc9da90812e8dca770971dc7358f6757338578a440c0d646d22  ridgewarden_0.1.0_arm64.deb.torrent

Torrents

Every download is also a .torrent with its GitHub download as the web seed: a BitTorrent client gets it from GitHub when nobody is seeding, and from peers when they are. The magnet links carry the same web seed, but need one peer to fetch the file list first.

File Torrent Magnet (QR)
ridgewarden-v0.1.0-aarch64-linux.tar.gz ridgewarden-v0.1.0-aarch64-linux.tar.gz.torrent QR code of the magnet link for ridgewarden-v0.1.0-aarch64-linux.tar.gz
ridgewarden-v0.1.0-x86_64-linux.tar.gz ridgewarden-v0.1.0-x86_64-linux.tar.gz.torrent QR code of the magnet link for ridgewarden-v0.1.0-x86_64-linux.tar.gz
ridgewarden_0.1.0_amd64.deb ridgewarden_0.1.0_amd64.deb.torrent QR code of the magnet link for ridgewarden_0.1.0_amd64.deb
ridgewarden_0.1.0_arm64.deb ridgewarden_0.1.0_arm64.deb.torrent QR code of the magnet link for ridgewarden_0.1.0_arm64.deb
Magnet links
# ridgewarden-v0.1.0-aarch64-linux.tar.gz
magnet:?xt=urn:btih:90dff5fd2cd080bfff6f09851a5d7b39d47d4a73&dn=ridgewarden-v0.1.0-aarch64-linux.tar.gz&xl=3193629&tr=udp%3A%2F%2Ftracker.opentrackr.org%3A1337%2Fannounce&tr=udp%3A%2F%2Fopen.stealth.si%3A80%2Fannounce&tr=udp%3A%2F%2Ftracker.torrent.eu.org%3A451%2Fannounce&ws=https%3A%2F%2Fgithub.com%2FLondopy%2Fridgewarden%2Freleases%2Fdownload%2Fv0.1.0%2Fridgewarden-v0.1.0-aarch64-linux.tar.gz

# ridgewarden-v0.1.0-x86_64-linux.tar.gz
magnet:?xt=urn:btih:8216005f0834c57e221dd0d076762c6402301703&dn=ridgewarden-v0.1.0-x86_64-linux.tar.gz&xl=3440281&tr=udp%3A%2F%2Ftracker.opentrackr.org%3A1337%2Fannounce&tr=udp%3A%2F%2Fopen.stealth.si%3A80%2Fannounce&tr=udp%3A%2F%2Ftracker.torrent.eu.org%3A451%2Fannounce&ws=https%3A%2F%2Fgithub.com%2FLondopy%2Fridgewarden%2Freleases%2Fdownload%2Fv0.1.0%2Fridgewarden-v0.1.0-x86_64-linux.tar.gz

# ridgewarden_0.1.0_amd64.deb
magnet:?xt=urn:btih:1055f822d7eeb830a2be9c684afca7080d699d61&dn=ridgewarden_0.1.0_amd64.deb&xl=2822118&tr=udp%3A%2F%2Ftracker.opentrackr.org%3A1337%2Fannounce&tr=udp%3A%2F%2Fopen.stealth.si%3A80%2Fannounce&tr=udp%3A%2F%2Ftracker.torrent.eu.org%3A451%2Fannounce&ws=https%3A%2F%2Fgithub.com%2FLondopy%2Fridgewarden%2Freleases%2Fdownload%2Fv0.1.0%2Fridgewarden_0.1.0_amd64.deb

# ridgewarden_0.1.0_arm64.deb
magnet:?xt=urn:btih:76be6c60128e73e2f913f5814812de2384bd44d1&dn=ridgewarden_0.1.0_arm64.deb&xl=2638090&tr=udp%3A%2F%2Ftracker.opentrackr.org%3A1337%2Fannounce&tr=udp%3A%2F%2Fopen.stealth.si%3A80%2Fannounce&tr=udp%3A%2F%2Ftracker.torrent.eu.org%3A451%2Fannounce&ws=https%3A%2F%2Fgithub.com%2FLondopy%2Fridgewarden%2Freleases%2Fdownload%2Fv0.1.0%2Fridgewarden_0.1.0_arm64.deb

Full changelog: https://github.com/Londopy/ridgewarden/commits/v0.1.0

README | Changelog | Report a problem