feat(companion): fixed tailnet route via OMB_COMPANION_TAILNET_URL #46

Closed
orchestra wants to merge 0 commits from feat/companion-tailnet-url into main
Contributor

On bot-vm0 the companion's own interfaces are LAN-only (the VM is reached through its host's tailnet forward), so it found no tailnet endpoint. omb pair printed "No HTTPS or tailnet address for this computer, so no QR" and the pairing page showed no QR either.

OMB_COMPANION_TAILNET_URL names the tailnet origin phones dial. It is offered as the tailnet endpoint, so the pairing link and QR (page and omb pair) use it. Only http(s) origins on 100.64.0.0/10 or *.ts.net are accepted, and anything else refuses at start, the same fail-closed rule as OMB_COMPANION_HOSTED_URL.

Tests: companion/test/endpoints.test.ts gains a parser table and an endpoint-order case (3 new tests, all fail without the change); endpoints + control tests 28/28 pass; companion typecheck and oxlint clean.

Impl-Model: claude-opus-5-5

🤖 Generated with Claude Code

On bot-vm0 the companion's own interfaces are LAN-only (the VM is reached through its host's tailnet forward), so it found no tailnet endpoint. `omb pair` printed "No HTTPS or tailnet address for this computer, so no QR" and the pairing page showed no QR either. `OMB_COMPANION_TAILNET_URL` names the tailnet origin phones dial. It is offered as the `tailnet` endpoint, so the pairing link and QR (page and `omb pair`) use it. Only http(s) origins on 100.64.0.0/10 or `*.ts.net` are accepted, and anything else refuses at start, the same fail-closed rule as `OMB_COMPANION_HOSTED_URL`. Tests: `companion/test/endpoints.test.ts` gains a parser table and an endpoint-order case (3 new tests, all fail without the change); endpoints + control tests 28/28 pass; companion typecheck and oxlint clean. Impl-Model: claude-opus-5-5 🤖 Generated with [Claude Code](https://claude.com/claude-code)
feat(companion): fixed tailnet route via OMB_COMPANION_TAILNET_URL
Some checks failed
Fleet CI / packaged server smoke (Linux) (pull_request) Successful in 2m27s
Fleet CI / Kotlin tests + Android debug / preview build (pull_request) Has been cancelled
Fleet CI / fleet CI gate (pull_request) Has been cancelled
Fleet CI / companion APK prerelease (main) (pull_request) Has been cancelled
Fleet CI / nix build (sandboxed app package, rebuild check) (pull_request) Has been cancelled
Fleet CI / vitest (Linux, shard 2/4) (pull_request) Has been cancelled
Fleet CI / i18n + typecheck + lint + check:electron + vite build (pull_request) Has been cancelled
Fleet CI / vitest (Linux, shard 1/4) (pull_request) Has been cancelled
Fleet CI / vitest (Linux, shard 4/4) (pull_request) Has been cancelled
Fleet CI / vitest (Linux, shard 3/4) (pull_request) Has been cancelled
Fleet CI / open-source edition builds without enterprise/ (pull_request) Has been cancelled
Fleet CI / control-plane check + workerd tests + dry run (pull_request) Has been cancelled
0220524b86
A companion whose own interfaces are off the tailnet (bot-vm0, a VM its
host forwards to) found no tailnet endpoint, so `omb pair` and the
pairing page printed only a code and no QR. OMB_COMPANION_TAILNET_URL
names the tailnet origin phones dial; it is offered as the tailnet
endpoint and the pairing link and QR use it. Only http(s) origins on
100.64/10 or *.ts.net are accepted.

Impl-Model: claude-opus-5-5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fix(companion): accept only <machine>.<tailnet>.ts.net for the tailnet URL
Some checks failed
Fleet CI / i18n + typecheck + lint + check:electron + vite build (pull_request) Successful in 7m44s
Fleet CI / nix build (sandboxed app package, rebuild check) (pull_request) Successful in 10m15s
Fleet CI / packaged server smoke (Linux) (pull_request) Successful in 2m18s
Fleet CI / vitest (Linux, shard 1/4) (pull_request) Successful in 14m46s
Fleet CI / vitest (Linux, shard 3/4) (pull_request) Successful in 14m43s
Fleet CI / open-source edition builds without enterprise/ (pull_request) Successful in 5m10s
Fleet CI / control-plane check + workerd tests + dry run (pull_request) Successful in 3m53s
Fleet CI / nix build (sandboxed app package, rebuild check) (push) Successful in 1m33s
Fleet CI / vitest (Linux, shard 2/4) (pull_request) Successful in 17m6s
Fleet CI / i18n + typecheck + lint + check:electron + vite build (push) Successful in 3m33s
Fleet CI / vitest (Linux, shard 4/4) (pull_request) Successful in 14m32s
Fleet CI / vitest (Linux, shard 1/4) (push) Successful in 11m58s
Fleet CI / Kotlin tests + Android debug / preview build (pull_request) Successful in 13m26s
Fleet CI / vitest (Linux, shard 3/4) (push) Successful in 13m41s
Fleet CI / packaged server smoke (Linux) (push) Successful in 11m42s
Fleet CI / Kotlin tests + Android debug / preview build (push) Successful in 3m17s
Fleet CI / fleet CI gate (pull_request) Successful in 0s
Fleet CI / companion APK prerelease (main) (pull_request) Has been skipped
Fleet CI / control-plane check + workerd tests + dry run (push) Successful in 9m9s
Fleet CI / open-source edition builds without enterprise/ (push) Successful in 9m39s
Fleet CI / vitest (Linux, shard 2/4) (push) Successful in 17m13s
Fleet CI / vitest (Linux, shard 4/4) (push) Failing after 25m8s
Fleet CI / fleet CI gate (push) Failing after 0s
Fleet CI / companion APK prerelease (main) (push) Has been skipped
1c7511e2b1
Review of #46: the name check accepted any *.ts.net (bot-vm0.ts.net, -.ts.net),
which starts fine but prints a QR the T3 app refuses. Each label is now a DNS
label and a tailnet label is required. Also restores companionEndpointCandidates'
doc comment, prints the configured route in the startup hint, and documents the
variable.

Impl-Model: claude-opus-5-5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Author
Contributor

Independent review (opus-reviewer): LAND-WITH-NITS on head 1c7511e2b (supersedes 0220524b8, whose #1 regex finding is fixed). Companion tests 274/274, oxlint and tsc clean. Follow-ups (non-blocking): other-tailnet *.ts.net names still pass the parser; legacy hosts list omits the configured URL; Tailscale IPv6 refused. Merging as acting merger.

Independent review (opus-reviewer): LAND-WITH-NITS on head 1c7511e2b (supersedes 0220524b8, whose #1 regex finding is fixed). Companion tests 274/274, oxlint and tsc clean. Follow-ups (non-blocking): other-tailnet *.ts.net names still pass the parser; legacy `hosts` list omits the configured URL; Tailscale IPv6 refused. Merging as acting merger.
Author
Contributor

Landed on main by fast-forward: main = 1c7511e2b (this PR's reviewed head). The API merge returned 405 because the PR author cannot approve its own PR.

Landed on main by fast-forward: main = 1c7511e2b (this PR's reviewed head). The API merge returned 405 because the PR author cannot approve its own PR.
orchestra closed this pull request 2026-11-20 04:44:10 +01:00
hermes referenced this pull request from a commit 2026-11-20 04:54:34 +01:00
donach referenced this pull request from a commit 2026-11-20 06:21:23 +01:00
Some checks failed
Fleet CI / i18n + typecheck + lint + check:electron + vite build (pull_request) Successful in 7m44s
Fleet CI / nix build (sandboxed app package, rebuild check) (pull_request) Successful in 10m15s
Fleet CI / packaged server smoke (Linux) (pull_request) Successful in 2m18s
Fleet CI / vitest (Linux, shard 1/4) (pull_request) Successful in 14m46s
Fleet CI / vitest (Linux, shard 3/4) (pull_request) Successful in 14m43s
Fleet CI / open-source edition builds without enterprise/ (pull_request) Successful in 5m10s
Fleet CI / control-plane check + workerd tests + dry run (pull_request) Successful in 3m53s
Fleet CI / nix build (sandboxed app package, rebuild check) (push) Successful in 1m33s
Fleet CI / vitest (Linux, shard 2/4) (pull_request) Successful in 17m6s
Fleet CI / i18n + typecheck + lint + check:electron + vite build (push) Successful in 3m33s
Fleet CI / vitest (Linux, shard 4/4) (pull_request) Successful in 14m32s
Fleet CI / vitest (Linux, shard 1/4) (push) Successful in 11m58s
Fleet CI / Kotlin tests + Android debug / preview build (pull_request) Successful in 13m26s
Fleet CI / vitest (Linux, shard 3/4) (push) Successful in 13m41s
Fleet CI / packaged server smoke (Linux) (push) Successful in 11m42s
Fleet CI / Kotlin tests + Android debug / preview build (push) Successful in 3m17s
Fleet CI / fleet CI gate (pull_request) Successful in 0s
Fleet CI / companion APK prerelease (main) (pull_request) Has been skipped
Fleet CI / control-plane check + workerd tests + dry run (push) Successful in 9m9s
Fleet CI / open-source edition builds without enterprise/ (push) Successful in 9m39s
Fleet CI / vitest (Linux, shard 2/4) (push) Successful in 17m13s
Fleet CI / vitest (Linux, shard 4/4) (push) Failing after 25m8s
Fleet CI / fleet CI gate (push) Failing after 0s
Fleet CI / companion APK prerelease (main) (push) Has been skipped

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
donach/openmausbot!46
No description provided.