Tailscale: tagging tag:grokbot drops the session; reconnect mints a new untagged device

Ouverte
#1,172 5 commentaires 1 réaction 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

Personne n'a encore pris cette issue.

Évaluation

Difficulté
4/5
Temps estimé
3-5 jours
Accessibilité débutants
46/100
Type d'issue
Bug
Clarté
Plutôt claire
Activité
Active
Stack technique
typescript

Piste de recherche

Start with the Tailscale plugin in third_party/tailscale and trace how it authenticates and reconnects a device after its tag changes. Check the plugin docs and tailscale-setup skill for the documented tag:grokbot flow. Done means tagging no longer leads to repeated new, untagged devices, and the documented least-privilege grants work as expected.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

Summary

On a personal Tailscale tailnet, applying tag:grokbot to the Grok Bot device immediately drops its session. Reconnecting via Authenticate mints a new device that is again untagged. Least-privilege ACL/grants that target only tag:grokbot therefore never take effect in practice.

Steps to reproduce

  1. Install/connect the Tailscale plugin so Grok Bot joins the personal tailnet (device appears, typically named like grokbot-user-…).
  2. In Tailscale admin, set device tags to tag:grokbot (with tagOwners allowing that tag).
  3. Observe the Grok Bot Tailscale session disconnects / device goes offline.
  4. Authenticate / Sign in again from Grok Bot.
  5. A new Grok Bot device appears on the tailnet — still untagged (owner access).
  6. Repeat: tagging again → disconnect → reconnect → another new untagged device.

Expected

Either:

  • tagging tag:grokbot keeps the same device online and tagged, so grants like src: ["tag:grokbot"] → MCP host:port work; or
  • reconnect after tagging re-joins as the same tagged device (or re-applies the tag automatically).

Actual

Tagging forces a disconnect; each reconnect creates a fresh untagged machine. The documented least-privilege path (tag:grokbot + narrow grants) is effectively unenforceable for personal tailnets. Workaround today is owner-access (untagged) plus host/IP grants, which is broader than intended.

Notes

  • MagicDNS names in grants were rejected as invalid in our policy; we used the Tailscale IP (100.x) instead — separate friction, may be worth documenting.
  • Plugin docs / tailscale-setup skill present tag:grokbot as the least-privilege path; this loop contradicts that.
  • Related but different: #774 (inbound to the box / node surviving resets).

Environment

  • Grok Bot Tailscale plugin (third_party/tailscale)
  • Personal tailnet (incremental.coach / *.ts.net)
  • Goal: reach a private MCP on the tailnet with grants limited to tag:grokbot
Langage dominant
TypeScript
Étoiles
18.2k
Forks
2k
Merge moyen
3 h 56 min
PR mergées (30 j)
96

Préparer son environnement

Ce projet ne fournit ni conteneur de développement, ni Dockerfile, ni guide de contribution : l'installation est à votre charge. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de cursor/plugins

Toutes les issues de cursor/plugins

Issues similaires

Plus d'issues TypeScript

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.