Repository navigation
GUI: debugging over USB and Wi-Fi, the Transferd Wormhole, and a hardened mailbox - #2
Merged
Merged
Conversation
Debugging (earlier work): a hybrid debug protocol over the overlay's services, with the device side under a policy and the client side choosing the route. A second route joins the session and a log stream survives the USB route being cut. Debug screen and debugging settings added; overlay test updates for the relay path. Wormhole (new): a Transferd-native wormhole built into the GUI. A short code (nameplate plus three PGP words), SPAKE2 key exchange, AES-GCM sealed phases with the side and phase bound in, and a WebSocket mailbox (server and client) for rendezvous. A file, folder or text moves over the overlay with parallel streams, progress-paced flow control and a SHA-256 check before the file is placed. Folders are unpacked under safe-name, link, entry-count and ratio checks. The Transfer section gains a Wormhole screen (send with a code, receive with accept or decline, stop and cancel); the mailbox is set in Settings and the screen is disabled until one is. Tests: wormhole unit, screen (two real windows) and end-to-end tests (route cut, mailbox cut, relay). The relay case beyond about 1 MiB is an expected failure, recorded in gui/docs/WORMHOLE.md under Known limits. Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
The mailbox server is built to be left running and used by computers it does not know: - TLS on the network, with a self-made certificate that other computers pin by its fingerprint. Plain ws:// is accepted only for this computer, and the pin is checked before anything is sent. - Every refusal carries a machine-readable code. Refusals that can be retried say when (retry_after). - Per-address rate limits on allocate, claim and add, and caps on nameplates, connections and connections per address. A connection that has not bound within 30 s is closed. The client retries with jittered backoff, honours retry_after, resends a message that was refused for rate, and walks an ordered list of mailboxes. Once a meeting has started it stays on the same mailbox. Settings can host a mailbox on this computer. The Wormhole screen shows where wormholes meet, the hosting state, and a share line with the pinned fingerprint. Tests cover the limits, TLS and pins, the address rules, the hosted mailbox, and the screen's mailbox card and settings. Full suite: 371 passed, 1 xfailed (the known relay stall above about 1 MiB). Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds the Transferd desktop app (
gui/) features that were built on this branch:a1308db): a hybrid debugging protocol, a Debug screen, and settings for what listed computers may do with this device. Specified ingui/docs/DEBUG_PROTOCOL.md.a1308db): send a file, a folder or a text with a short code. It uses SPAKE2, sealed mailbox messages, and transfer over the overlay with parallel streams and route failover. Specified ingui/docs/WORMHOLE.md.24dd0c5):ws://is accepted only for this computer.retry_after, and walks an ordered mailbox list. After a meeting has started it stays on one mailbox.Verification
TRANSFERD_RELAYDset: 371 passed, 1 xfailed. The xfail is a strict, known relay stall above about 1 MiB, documented ingui/docs/WORMHOLE.mdunder "Known limits".pyflakesis clean acrosstransferd_gui,testsandrun.py.Not verified
wss://certificate, and a real man-in-the-middle. The pin check is tested with a non-matching fingerprint.Known limits
🤖 Generated with Claude Code