Repository navigation
remote: an encrypted team may use any http:// address again, on every command - #2133
Merged
Merged
Conversation
… command An age-v1 team seals message bodies before they leave the machine, so the plaintext-address rule has nothing to protect for it. 1.9.3 applied the rule to every team, which stopped the sync engine of every encrypted team connected to an internet http:// address. - connect --e2ee and the sync engine accept any http:// address for an age-v1 team again; a malformed endpoint is still refused for every team. - set-endpoint decides by the team's own binding, before any request. - pull --e2ee: a team being pulled has no binding yet, so the flag says it is encrypted. The address rule is lifted for it, and the pull stops right after the team snapshot, before any message is fetched, when the server declares the team unencrypted. Without --e2ee the rule applies before any request. - install --update starts again the engine of an age-v1 team whose last fatal is that refusal, so nobody has to type anything to resume. - Plaintext teams keep the rule, including the Tailscale addresses.
… status that keeps writing cannot drop the team
…regression fails on an early-closing reader whether SIGPIPE kills it or EPIPE is returned
fujibee
added a commit
that referenced
this pull request
Nov 30, 2026
Release 1.9.4: encrypted teams on http:// endpoints sync again, and pull --e2ee (#2133).
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 was wrong
1.9.3 (#2111) applied the plaintext-address rule to every team, encrypted or not. Every age-v1 team connected to an internet
http://address stopped syncing on upgrade. Its engine refused the binding on the first cycle and stayed down.The rule should only bind plaintext teams. An age-v1 team seals message bodies before they leave the machine, and the bodies are what the rule protects. Before #2111,
connect --e2eeand the sync engine exempted age-v1 for that reason (#1019).Change
The rule now depends on what this machine knows about the team before any request:
connect --e2ee(scripts/remote.sh): anyhttp://address is accepted again.connectedBinding,scripts/internal/remote-sync.mjs): an age-v1 binding is exempt again. A plaintext binding keeps the rule every cycle.set-endpoint: decided by the team's own binding, read locally. An age-v1 team may move to anyhttp://address; a plaintext team keeps the rule.pull --e2ee(new flag, the same oneconnecthas): a team being pulled has no binding yet, so the flag says it is encrypted.--e2ee, the address rule is lifted. The pull stops right after the team snapshot, before any message is fetched, if the server declares the team anything other than age-v1.--e2ee, an internethttp://address is refused before any request, as before. The refusal now names--e2ee.install --update: an age-v1 team whose engine is not running is started again after the update, when its last fatal is exactly 1.9.3's refusal ("connected team endpoint is refused"). A user who was syncing does not have to type anything. An engine stopped for any other reason is left as it is.Only the plaintext-address refusal is lifted for an age-v1 team. A malformed endpoint, userinfo, control characters, a zone id, a bad port or a non-http scheme are refused for every team.
Plaintext teams keep the rule unchanged, including the Tailscale addresses from #2112.
The refusal text again offers an encrypted team as a way to use an internet
http://address.Docs:
docs/remote-setup.mdcoverspull --e2eefor machine B.SKILL.md/skill-base.mdlist the flag.connect's copy-paste pull line for the other machine says to add--e2eefor an encrypted team.Interface: one new flag,
pull --e2ee. No new environment variable.validate-endpoint.mjs --sealedis an internal argument that onlyremote.shpasses.Process spawns:
connect,pull,set-endpointand the engine cycle: unchanged (one validator node call where there was one).install --update: before the update, onepython3and oneremote.sh statusper connected team whose engine is not running. That is once per update, never per cycle.No new automatic stop. The change removes a stop, and the installer starts only engines that 1.9.3 stopped with that exact refusal.
Tests
tests/fixtures/endpoint-verdicts.jsonl: 37 deny rows gain"sealed": "allow". Every one is anhttp://address refused only for being an internet or decoded-form address. The other deny rows (malformed, userinfo, zone, port, scheme) stay deny for age-v1.tests/test_endpoint_table_node.bats: the table runs throughconnectedBindingas plain and as age-v1. Each row is checked againstverdictandsealed(defaulting toverdict).tests/test_endpoint_scheme.bats: the refusal names--e2eeagain.tests/test_remote.bats:connect --e2eetohttp://0.0.0.0:1passes the check and fails at the network (fix(remote): connect --e2ee actually bypasses the plaintext-address check #1019 test restored).--e2ee(fix(remote): connect --e2ee actually bypasses the plaintext-address check #1019 test restored).set-endpoint: an age-v1 team may move tohttp://0.0.0.0:<port>; a plaintext team is still refused.sync start, withoutset-endpoint.pullwithout--e2eeis refused before the first request, and the refusal names--e2ee.pull --e2eebrings in an encrypted team fromhttp://0.0.0.0:<port>, with an age-v1 binding.pull --e2eeon a team the server declares plaintext stops after the snapshot, before any message.tests/test_install.bats:install --updatestarts the engine of an age-v1 team stopped with 1.9.3's refusal.install --updateleaves stopped an engine stopped for another reason.On main, every test above for the restored behavior fails, while the two controls pass: the plaintext refusals, and "another reason stays stopped".
Passing locally (macOS):
node --test tests/remote_sync_engine.test.mjs: 161 pass.github/scripts/check-*.sh: all passReal machine (macOS, seat-sandbox, 0 real-machine differences on every step)
Setup:
http://0.0.0.0:18787as the internet-style address: it reaches the server, and the plaintext rule refuses it.61a561cc.Results:
--e2eeto that address, one message sent. Afterinstall --updateto this branch, the engine runs on a new pid, and the message sent after the upgrade syncs.statusshowslast fatal: connected team endpoint is refused: ..., as users see. Afterinstall --updateto this branch, it printsresuming the sync engine for 'teamB', the engine runs, and the message sent after the upgrade syncs.pullfrom the same address without--e2eeis refused with the reason, naming--e2ee.pull --e2eeplusunlockbrings both teams in.--e2ee.