Repository navigation
Conversation
…local server, relay CLI and relay pairing links
# Conflicts: # apps/server/src/cli/pair.ts # apps/server/src/feedback/FeedbackReport.ts
This branch has not been deployed
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.
Lets a paired phone reach this computer through a relay, with no VPN and no open port. The computer keeps one outgoing connection to the relay; each phone session is end-to-end encrypted between the phone and the computer, so the relay only forwards ciphertext.
This is the computer side. The phone side (a relay route in the app) follows in a separate PR.
packages/relay-session:Noise_XK_25519_ChaChaPoly_BLAKE2s(@noble/curves,@noble/hashes,@noble/ciphers), one Noise message per WebSocket message, and a stream multiplexer that carries HTTP requests and WebSockets with per-stream flow control. No Node-only APIs, so the phone app can use it too.libraos-next relay connect <url> --token <token>stores the relay token and a static host key in the state directory. The server keeps a control socket open (reconnecting with backoff), opens a session per phone, and passes each stream to itself on loopback.docs/user/remote-access.md.Testing
check-changedpasses: format, lint, knip, typecheck and tests. Tests cover the Noise handshake against a published test vector, a wrong host key, a tampered frame, unpaired devices and used or expired pairing codes, HTTP and WebSocket streams through an in-process relay, and flow control.