Directions between two places with the incidents, closures and public
cameras along the way, in the app (Tools), for AI agents and on the
public map. Traffic incidents come from keyless agency feeds (US state
DOT work zones, Caltrans, TfL, NDW).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Adds the SHA-256 of the v0.9.85 ZIP, setup.exe and MSI to
backend/data/release_digests.json. They match SHA256SUMS.txt on the
published release.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
build --clean deleted src-tauri/icons and generate-icons.cjs then redrew the
old placeholder crosshair, so installers shipped that instead of the logo
added in e188fc1. The clean step now leaves the icons alone and the
generator only fills in files that are missing.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The leak check from #765 caught two that older builds shipped:
- The embedded Python smoke test wrote .pyc files after staging, and each
records the build checkout path. It now runs with -B.
- Webpack bakes maplibre-gl's import.meta.url into a JS chunk as a file://
URL of the checkout. The export now swaps that root for a neutral one; the
URL never resolves on a user's machine, so nothing changes at runtime.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Two backslash escapes were turned into control characters: "\b" became a
backspace in the build-privacy.cjs path and "\r" a carriage return in the
shell binary path, so the Windows desktop build could not find either file.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The v0.9.84 installer shipped backend/graphify-out, an old venv and Rust
binaries that named the build machine's home folder.
- Stage only git-tracked backend files plus backend/node_modules.
- Build privacy-core, the desktop shell and the browser wasm with
--remap-path-prefix for the home folder and checkout.
- Scan every staged file (binaries, large files, JSON-escaped and UTF-16
paths) and fail the build on a hit.
- Rebuild the checked-in privacy_core_bg.wasm without build paths.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The fail-closed source updater only trusts MESH_UPDATE_SHA256 or a digest
already shipped in the install, so an install could never update to a release
newer than itself. Releases now sign the source ZIP with the desktop updater
key (cargo tauri signer sign), and the updater verifies <asset>.sig against
the public key shipped in the code. A signature that is present but does not
verify, names another file, or comes from another key refuses the update.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
connect_wormhole waits a fixed time for the child's health check. When the
API process launched the child itself (Activate Wormhole on a fresh node),
the runtime state never probed it again, so a child that answered after
that wait stayed "not ready" until the backend restarted.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A node that restarted lost the private half of the MLS key package in its
published bundle, so a welcome built from it could never be joined and the
sender's session stayed stuck with no way to reset it. Restarts also wiped
working sessions in two more ways. Fixes, each covered by a test:
- privacy-core: the saved DM state (v2) now carries every DM alias identity
and its newest unused key packages (at most 16, unexpired), not only
identities that already have a session. v1 state still loads. A new
export call takes the identity list; older library builds fall back to the
old export.
- The key package is saved as soon as it is created for the bundle.
- A session joined as the node's DM identity records that identity, so
loading no longer drops it for lacking a per-contact identity.
- Re-reading mail already read (spent key) or mail from another group fails
that message only; it no longer marks a restored session stale and wipes
the conversation. A restored session that works is no longer suspect.
- A sender whose session is still unanswered checks the peer's bundle (at
most every 5 minutes) and starts over if the key package changed; the
peer rejoins from the welcome that rides along, keeping the new session
only if it reads the message. Welcomes already joined are refused, so an
old one replayed cannot roll a session back.
- /api/wormhole/dm/reset for a contact also drops its MLS session.
Verified with two fresh Docker nodes: mail sent after the receiver
restarted, a reply after the receiver restarted again, and mail after the
sender restarted all arrived readable on the original session.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Mail between two nodes that had just exchanged contact addresses never
arrived readable. Fixes along the whole path, each covered by a test:
- Status: the web UI's own requests get the full wormhole status, so it
stops treating a ready node as not ready.
- Invites: the owner node named in an invite is asked first, with an
onion-sized timeout; an import that could not reach it finishes in the
background and replaces the keyless contact it left behind.
- Aliases: no one-sided mailbox alias is made up on compose; both sides
address mail by node id until an alias is agreed.
- Signing: each mailbox request is signed once, keeping polls under the
sign rate limit.
- MLS: the welcome is sent with the mail until the peer answers, and the
receiver joins as the identity whose key package the sender used, with
that identity's DH key.
- Sender seal: a seal addressed to the node's DM identity opens even when
the browser names the node's transport identity.
- Gate rooms: the chat controller restarted the live stream and the room
long-poll on every status refresh, about 60 requests a second, which
exhausted local ports; it now reacts only to access changes, and the
stream waits a minute between tries when there is no admin session.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Secure Messages' Create Address calls GET /api/wormhole/dm/invite, which
was still on require_local_operator in both the router and main.py. On a
fresh Docker install the browser reaches the backend through the proxy,
so the button failed with "This needs operator access". It now takes the
operator-client token like the other DM routes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Reticulum is on by default and a fresh .env has no MESH_PEER_PUSH_SECRET.
Startup treated that as a missing secret and generated a random one, so
the seed and every peer rejected the node's announce and pushes with 403
and its gate posts and DMs never left the machine.
With fleet join on, an empty secret already means the shared testnet
secret everywhere peer keys are derived (effective_peer_push_secret).
Startup and the env checks now agree: they no longer replace or report
it. Private nodes (MESH_INFONET_FLEET_JOIN=false) still get a generated
secret and strict startup still refuses an empty one.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A fresh-clone Docker test showed that joining Infonet worked after #760,
but everything after it did not:
- Gates and DMs still needed the admin key. Every gate, DM and identity
route the web UI calls now takes the proxy's operator-client token
(require_operator_client, or the new require_operator_client_or_admin
for routes that also take scoped admin tokens). Both copies of routes
defined in main.py and in routers/wormhole.py are switched, and an
unguarded duplicate of GET /api/wormhole/gate/{gate_id}/key is guarded.
Wormhole restart and the review, witness-import and transparency
publish tools stay admin-only.
- The backend only trusted browser origins on port 3000. The proxy sends
the token only after its own same-origin check passed, so the token now
stands for that check and a UI on any port works.
- LAN mode shares the dashboard with other devices, which can send any
Host header, so there the proxy withholds the token and the backend
ignores it: every browser signs in with the admin key, as before.
- A missing default local bootstrap manifest was reported as a bootstrap
error, so every new node showed "bootstrap warning". The file is
optional (peers come from the bundled seed and the signed swarm
manifest); a manifest path the operator configured must still exist.
- The README Docker quick start never created ADMIN_KEY, so the first
`docker compose pull` failed. It now creates one (bash and PowerShell)
and says what the key is for.
Tests that bypassed auth by overriding the old guards also override the
new ones.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Docker frontend runs the standalone server with HOSTNAME=0.0.0.0, so
request.nextUrl.origin is http://0.0.0.0:3000 while the browser is on
http://localhost:3000. isAllowedBrowserRequest compared the browser's
Origin with that, so every POST (gate commands, admin unlock, join) failed
with "Cross-origin privileged request denied".
The own origin now comes from the Host header the browser connected to
(a cross-site page cannot set it), falling back to nextUrl.origin if the
header is missing or malformed. The operator-client host check uses the
same value, so behind a 0.0.0.0 bind it no longer treats every request
as coming from an IP address.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Joining Infonet from the UI failed with "operator authentication required"
unless the user had first unlocked admin with the admin key. That is the
first thing a new user does, so it hit everyone.
The frontend proxy now presents an HMAC of the admin key in
X-SB-Operator-Client, only when the page was reached by a name people use
for their own node (localhost, an IP, a LAN or single-label name, a
Tailscale name, or a configured host), and strips any copy of that header
a browser sends. The backend's new require_operator_client accepts that
token from an allowed origin, and otherwise falls back to the admin-key
check. Only /api/wormhole/join uses it; admin controls still need the key,
and a caller reaching the backend directly still gets 403.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Send a gate post's stored payload as it is, minus the gate name, instead
of rebuilding it from a field list. The rebuild dropped empty and
signed-context fields, so every receiver rejected the post as an
event_id mismatch. The ledger id check now ignores gate_ref, which only
names the gate on the Reticulum wire.
- Count gate publishes from the send result (no peer lookup).
- Announce again shortly after the hub tunnel opens a new upstream
connection, at most every 30 s. The tunnel hid reconnects from the
online check, so after a hub restart nothing could reach a node until
its next 15 minute announce.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Anonymous mode forced every DM onto the Tor relay because direct
Reticulum could show the sender's IP. With maximum privacy on,
Reticulum runs inside Tor, so it is the hidden route: use it, and never
fall back to the relay; wait while Reticulum inside Tor is unavailable.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every ledger append was also broadcast over Reticulum as a plain ledger
event. For a private gate post that sent the raw entry, gate name
included, before the release worker decided anything, and marked the id
as seen so the real gate publish was then dropped as a duplicate while
the outbox reported the post delivered. Keep gate posts out of the
ledger broadcast so they leave only through publish_gate_event.
Also count send outcomes (sent, no path, link failed, transfer failed)
and gate/DM handling outcomes, with no identifiers, in the operator-only
Reticulum status, and log a gate post that could not be stored.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A node that did not hold a requested invite key searched up to 16 more
nodes, and each of those searched again, so one lookup grew into a
network-wide flood that only the 120 s deadlines stopped. Mark fleet
lookups with a header (older nodes are recognised by the fleet user
agent) and answer them from local data only. The node's own user still
searches the fleet.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every DM key lookup and several sync loops load the peer store, and on a
node that has collected thousands of swarm peers each parse takes a large
share of a second. On a one-CPU node concurrent parses tied up every
request worker, so unrelated endpoints hung. Records are frozen, so keep
the parsed records per path and reparse only when the file's mtime, size
or inode changes (saves replace the file atomically).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The backend image now includes Reticulum, which has its own license with
two use restrictions. Ship its full license text as a third-party notice
and point to it from the README and Dockerfile.
List Tor and Reticulum in the developer prerequisites with what each
protects, rank the three ways of sending from most to least private, and
update the gate transport doc to match maximum privacy and the Tor-down
choice.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Gate posts in the private ledger have a ledger event id, which a receiver
can only check with the previous ledger hash. The Reticulum publish left it
out, so every receiver would have rejected those posts as an event-id
mismatch.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With Reticulum on, DMs and gate posts used to wait until both Tor and
Reticulum were ready. Now:
- Normal mode needs Tor only. DMs keep going through the Tor relay, gate
posts publish over Tor first, and Reticulum joins in when it is up.
- Maximum privacy (off by default, labelled slow) sends DMs and gate posts
only over Reticulum inside Tor and waits while either is down. It never
falls back to the relay, and this node's own gate posts are not served
over the Tor peer push or pull, so no peer can tell which node wrote
them.
- When Tor is down, queued DMs and gate posts ask right away whether to
send over a direct Reticulum link, saying what that gives up (the hub
sees your IP address; watchers see you use Shadowbroker; content stays
end-to-end encrypted and the recipient still cannot see your IP).
"Send over Reticulum" covers everything already waiting. "Don't ask me
again" asks "Are you sure?" first, then makes the direct link the
automatic backup. The direct link opens only after that consent and
closes as soon as Tor is back.
- Settings has the maximum-privacy switch and a way to be asked again.
- A hub node also offers its hub port on its onion address.
- Only the primary backend runs Reticulum, and Tor-tier checks read its
status in-process, so one node does not announce two identities.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Reticulum bridge could not reach anyone: the library was not installed,
nodes never announced themselves, peers had to be typed in by hash, and
sends built a destination without the peer's identity, which Reticulum
cannot deliver.
- Install Reticulum and turn it on by default. Each node writes its own
Reticulum config and links to the fleet hub through a local port that is
carried over Tor to the hub's onion service, so the hub never sees a
node's address. A node set up as a hub listens and forwards instead.
Local-network discovery stays off unless asked for.
- Announce our destination when a link comes up, after each session
rotation and on a jittered timer; collect peers from announces on this
network, and ask the first few peers who else they know.
- Send over Reticulum links on sender threads. Links carry payloads of any
size and do not reveal who opened them.
- Diffuse to a few random peers, and pass on messages not seen before with
a hop limit, so a message reaches the whole network without one node
sending it to everyone. Cover traffic goes one hop only.
- Keep relayed DMs for a day (capped), let nodes fetch DMs that arrived
while they were away, and do not hand the same DM over twice.
- "ready" in the status now means Reticulum can carry traffic: linked and
with peers known.
- Keep the backend's own shutdown handling: Reticulum would otherwise
replace the process's signal handlers.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Gate pull used this node's own post count as its position in the peer's
list. Two nodes can hold the same number of different posts, so the pull
decided there was nothing new and never fetched posts relayed through a
seed. The cursor now tracks the position in each peer's list and steps
back a little each time so late posts that sort earlier are still seen.
DM replication put the destination's URL in X-Peer-Url and keyed the HMAC
from it. Receivers check that header against their own peer list, so a
node that does not list itself (any seed) refused every relayed DM. The
push now identifies the sending node, like the other peer loops.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A node with no history reaches the network through its configured seeds,
but those seeds sorted behind peers whose last success was weeks old, so
each pass spent its contact budget on dead peers first. Configured seeds
(including the fleet default when none is set) now rank with operator
peers, and successes older than a week no longer vouch for a peer. The
self-announced "seed" role earns nothing, since any node can claim it.
Prekey lookups across push peers leave the seeds out unless nothing else
is known, so lookups do not all land on the same few seeds.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A node that received a gate post from a peer dropped its ledger link
(prev_hash) when storing it, so it could not pass the post on: the next
node had no way to check the ledger event id and rejected it. Posts only
reached nodes that talked to the author directly. The link is now kept
when it was verified and sent on with the post, so posts travel through
seeds and other relays. An unchecked link is never stored.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Gate posts are committed to the private Infonet ledger, whose event id
hashes the previous ledger hash with the signed content. Gate peer push and
pull sent that id without the ledger link, and receivers checked it against
a different formula, so every current gate post was rejected as an event_id
mismatch. Senders now attach prev_hash for events in their local ledger, and
receivers accept the provided id when it matches the ledger hash; any other
id is still rejected. Wire copies also drop local-only payload fields.
Operator-added peers now sort ahead of peers whose only priority is a
success from weeks ago, so the per-pass contact cap reaches them.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The gate peer-push router dropped transport_lock from the event payload,
and the immediate push built its body without envelope_hash, gate_envelope,
transport_lock and reply_to. All of these are covered by the gate event
signature, so receivers rejected pushed posts as invalid and posts only
crossed through the slower pull path. Both paths now keep every signed field.
The connect-contact endpoint called a blocking function that makes HTTP
calls back into the same server directly on the event loop; it now runs in
a worker thread.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- The routed /api/mesh/dm/prekey-bundle and /api/mesh/dm/pubkey
handlers dropped lookup_peer_url, so every invite lookup ignored the
relay the sender named and fell back to a fleet-wide search that
could run for many minutes. Pass it through.
- Give an onion relay hint a circuit-sized connect timeout; 5 s was
shorter than building a circuit to an onion service.
- PeerStore.save() now merges with what other writers saved since its
load, so concurrent loops and endpoints no longer drop each other's
changes (an operator-added peer was being lost to a swarm refresh).
- Merge a swarm manifest with one load and one save instead of one per
peer.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>