Skip to content

Hide sharee nodes from the Tailscale machines list - #6471

Open
jmckible wants to merge 2 commits into
omacom:quattrofrom
jmckible:hide-tailscale-sharee-nodes
Open

jmckible wants to merge 2 commits into
omacom:quattrofrom
jmckible:hide-tailscale-sharee-nodes

Conversation

@jmckible

@jmckible jmckible commented Aug 1, 2026

Copy link
Copy Markdown

Tailscale Funnel routes external internet traffic to a local service. It puts Tailscale's own funnel-ingress-node relays in your netmap, flagged ShareeNode: true. tailscale status hides them, but the panel doesn't. The result is many unusable nodes in the list, sorted ahead of actual devices.

Building off the Mullvad pattern, skip them in parseStatus. This also hides unreachable machines owned by users you've shared a device with. It will not hide devices shared to you.

Before:

tailscale-before

After:

tailscale-after

Tailscale puts nodes in the netmap that exist only so they can reach us:
Funnel ingress relays, and machines owned by users we've shared a device
with. They carry no DNS name, OS, or reachable address, and upstream
hides them from tailscale status. Skip them the way we skip Mullvad.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Copilot AI review requested due to automatic review settings August 1, 2026 00:31

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Filters Tailscale ShareeNode peers from the panel’s machine and exit-node lists, matching tailscale status behavior.

Changes:

  • Adds sharee-node detection and filtering.
  • Adds regression coverage for Funnel ingress peers.

Tip

If you aren't ready for review, convert to a draft PR.
Click "Convert to draft" or run gh pr ready --undo.
Click "Ready for review" or run gh pr ready to reengage.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
shell/plugins/panels/tailscale/Model.js Filters peers marked ShareeNode.
test/shell.d/tailscale-test.sh Verifies sharee-node detection and exclusion.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@chickymonkeys

chickymonkeys commented Aug 21, 2026 •

Copy link
Copy Markdown

Confirming this independently on Omarchy 4.0.0-1.

I run Tailscale Funnel on one node to expose a GitHub webhook endpoint. My tailnet has 3 machines, but tailscale status --json returns 25 entries in the Peer map: 23 of them are funnel-ingress-node, one per ingress point of presence. The panel lists all 23, so 2 real peers sit below a wall of relays and the keyboard navigation in the panel is impractical. Running tailscale status on the same machine shows only the 3 real machines.

ShareeNode is the right discriminator. On my netmap it holds exactly:

funnel peers: 23   with ShareeNode == true: 23
real peers:    2   ShareeNode absent on both

The relays also carry tag:ingress, a sentinel Created timestamp of 1973-11-11T00:00:00.1Z, and a UserID that isn't the tailnet owner's, but ShareeNode matches what the CLI keys on and covers the shared-device case as well.

Worth noting that any tailnet with Funnel enabled hits this, and the relay count doesn't scale with tailnet size, so a small tailnet gets the worst ratio. This patch applies cleanly and takes the list from 25 rows to 2 for me.

@omarchybot omarchybot added bug Something isn't working verified Omarchy Triage has verified that this issue is ready for final review ready Good to merge labels Sep 27, 2026
@omarchybot

Copy link
Copy Markdown
Collaborator

Reviewed at 30d7b8e, including merged onto current quattro (3faafba), and found nothing wrong.

Reproduced on an Omarchy worker VM. A separate parseStatus fixture with two ShareeNode: true Funnel relays beside a real machine: on quattro the panel lists both relays, and one of them also as an exit node; on this branch, and on this branch merged onto quattro, only the real machines remain and the exit-node list is empty. With the Model.js change reverted, the added assertion in test/shell.d/tailscale-test.sh fails (["alpha","funnel-ingress-node","zed"]), so the test is not vacuous. tailscale-test.sh passes 42/42 on the merged tree. ./test/cli and every test/shell.d file give the same results on the merged tree as on quattro; the failures that remain there are already present on quattro and unrelated to Tailscale.

Scope. parseStatus is the only place in shell/ that reads the raw Peer map, so the filter covers both the machines list and exit-node selection. The Mullvad region list is built from tailscale exit-node list and is unaffected. ShareeNode marks peers present because they may connect to this machine (Funnel relays, and machines of people you shared a device with), which is what the human-readable tailscale status skips. Devices shared to you don't carry the flag. The change is eight lines plus a test, about as small as this fix can be. No live Funnel tailnet was available, so a visual check of the panel wasn't possible; @chickymonkeys's netmap above is the real-world confirmation.

Second opinion: Codex at medium effort reviewed the same diff and found no defects. It agreed on each point above, but it could read this review as it ran, so it isn't an independent confirmation.

This is now waiting on the maintainer.

@omarchybot omarchybot added ready Good to merge and removed ready Good to merge labels Sep 28, 2026
@omarchybot omarchybot removed ready Good to merge verified Omarchy Triage has verified that this issue is ready for final review labels Oct 14, 2026
quattro's translation work (omacom#15326) passes the translator into peerFromStatus on the same line this branch filters sharee nodes on; keep both.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@omarchybot omarchybot added verified Omarchy Triage has verified that this issue is ready for final review ready Good to merge labels Oct 14, 2026
@omarchybot

Copy link
Copy Markdown
Collaborator

This branch had stopped merging into quattro: the translation change in #15326 now passes the translator to peerFromStatus on the same line where this branch skips sharee nodes. I merged quattro into the branch (0de882f) and kept both, so parseStatus skips ShareeNode peers first and then calls peerFromStatus(id, peer, tr). Against quattro, the diff is still only your two files.

Re-verified on an Omarchy worker VM at 0de882f. test/shell.d/tailscale-test.sh passes 42/42. On quattro with your test in place, it fails and lists funnel-ingress-node. With the isShareeNode line removed from the merged head, it fails the same way. test/cli passes. The full test/shell.d run fails the same tests that already fail on quattro, plus some flaky ones that fail on either.

Codex Medium reviewed the merge and the change as a second opinion and found nothing wrong, so its agreement is not guaranteed to be independent. It did point out one gap: the fixture's relay is not marked as an exit node, so the test does not directly show that sharee nodes stay out of the exit-node list. The filter runs before both lists are built, so it covers that case either way.

Nothing is needed from you. This is waiting on the maintainer.

@amanmprojects

Copy link
Copy Markdown

Confirming this on Omarchy 4.5.0rc1-1 with Tailscale 1.104.2 and Funnel enabled.

Same picture here: tailscale status --json returns 25 peers, 23 of them funnel-ingress-node relays (all ShareeNode: true, tag:ingress, no DNS name or OS), plus 2 real machines. The built-in widget in 4.5.0rc1-1 still lists all 23 relay rows, so MACHINES is mostly identical funnel-ingress-node entries and keyboard navigation is painful. Running tailscale status on the same machine shows only the real machines.

I applied the same peer.ShareeNode === true skip from this PR to a local clone of the widget, and the panel dropped from 23 relay rows to just the real machine. The relays have nothing usable to copy or connect to, so filtering them is the right behavior and matches the CLI.

quattro still has the unfiltered peer loop as of today, so this is still needed. Would be great to get it into 4.5.

@francesc

francesc commented Oct 28, 2026 •

Copy link
Copy Markdown

Confirming on Omarchy 4.0.6-1 with Tailscale 1.104.2, with Funnel on for one port.

tailscale status --json has 28 peers. 23 of them are funnel-ingress-node relays (7 regions: fra, lhr, nyc, par, sfo, syd, tok), and the panel lists every one as a machine. tailscale status shows none of them.

ShareeNode matches exactly the relays on this tailnet: 23 peers have ShareeNode: true, the same 23 carry tag:ingress, and none of my real machines has the flag. So this filter would remove only the relays here.

@omarchybot omarchybot removed the ready Good to merge label Nov 26, 2026
@omarchybot

Copy link
Copy Markdown
Collaborator

Checked the CI failure recorded at 0de882f. GitHub marks the translation workflow as failed, but its log is unavailable, its job list is empty, and the head currently reports no checks. The original failing step and cause cannot be recovered from those records.

On a disposable Omarchy worker, I ran the workflow's structural translation test and English-extraction check at this head, its merge base (84cfb93), and current quattro (f989b43). The structural test fails identically at the head and merge base: the older test invokes the worker's installed locale helper instead of the checkout's helper, then fails to write the locale archive. Both checks pass on current quattro; the extraction check passes on all three trees. This explains the local worker failure, but does not establish why the GitHub workflow failed.

GPT-6 in Codex (driver; effort not exposed), Opus 5.5 High, and muse-wonder via pi with high thinking checked this follow-up. The second opinions agreed that no branch change is justified by the available evidence; their independence is not guaranteed. No code was changed or pushed. I removed ready because CI is not green. Nothing is needed from the author; this waits on the maintainer to decide how to obtain fresh CI evidence at this head.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working verified Omarchy Triage has verified that this issue is ready for final review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants