Repository navigation
docs(security): document the remote channel's end-to-end encryption - #862
Merged
Merged
Conversation
…n the README SECURITY said nothing about the phone<->desktop channel even though the code encrypts it, so a reader could reasonably conclude the relay sees plaintext. State what actually happens: the endpoints authenticate with a Noise handshake (XXpsk0 while pairing, IK afterwards) and encrypt every application record -- commands and replies, file chunks, session events, presence and catalog records, the disconnect notice -- so the relay carries ciphertext and cannot forge an accepted message; it still sees subjects and traffic metadata. Name the one raw path (the pairing request/reply envelope) and the limits that remain (compromised endpoint, stolen unlocked device, leaked unused invitation). The wiki page carried the opposite kind of error: it claimed the desktop's availability announcement is unencrypted before a channel exists. No such publish path exists -- presence is sealed, and the heartbeat drops the payload when there is no key rather than sending it in the clear. Replace that with the verified caveat. README: drop the model count (it drifts and says little), lead Model Flexibility with BYOK plus the hosted provider, and mention in Multi-Interface that the desktop backend runs headless on a server and that the phone channel is encrypted.
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.
What
SECURITY.md(and the Chinese pair) described the Remote transport — TLS, JWTs,which platforms see the traffic — but said nothing about the encryption between
the two paired endpoints, while
docs/wiki/*/Remote.mdanddocs/internals/desktop/CONNECTION.mdboth claim it. A reader of the securitypolicy could reasonably conclude the relay sees plaintext. It does not.
SECURITY: state the remote channel encryption
New bullet, sourced from
desktop/src-tauri/src/remote/secure.rs,packages/remote-crypto/src/lib.rsanddocs/internals/desktop/REMOTE_E2EE.md:XXpsk0while pairing,IKon reconnect — and encrypt every application record (commands and replies,file chunks, session events, presence and catalog records, the disconnect
notice) with ChaCha20-Poly1305 under keys from that handshake;
but still sees NATS subjects, traffic metadata and message timing/size;
inside it is encrypted, the envelope and refusal reasons (
invitation_expired)are not;
or a leaked unused invitation are out of scope.
Wiki: replace a caveat that the code does not support
The same sentence in
docs/wiki/{en,zh}/Remote.mdclaimed the desktop's"availability announcement before a channel is established is not encrypted".
That path does not exist: presence is published through
secure::publish, andwhen no channel key exists the heartbeat drops the payload (
Ok(false),publisher.rs) instead of sending it in the clear — everyClient::publishcallsite outside the pairing reply is sealed. The unverified caveat is replaced with
the verified one (the pairing envelope).
README
3,800+ modelsfrom the tagline, the section nav and the feature table —the number drifts with every catalog refresh and says nothing a reader needs;
providers, plus any OpenAI- or Anthropic-compatible endpoint via
models.json)alongside signing in to the FutureOS provider for provisioned keys and a
model list;
a server (
futureos-headless, no window or WebView, usable over SSH) andthat the phone↔desktop channel is end-to-end encrypted.
Verification
python scripts/docs/check-docs.py --strict-pending→ exit 0 (205 docs,0 pending bilingual pairs, links and script paths OK)
python scripts/tests/test-check-docs.py→Ran 27 tests … OKthe encryption list comes from
REMOTE_E2EE.md's boundary statement plus thepublish/sealcall sites, not from the wiki prose