tailchrome icon indicating copy to clipboard operation
tailchrome copied to clipboard

Feature request: sign in with a pre-authorized (tagged) auth key

Open lucastanzani opened this issue 1 month ago • 0 comments

Use case

We let a few friends reach one game-streaming host on our tailnet from managed/work Windows PCs where they cannot install the Tailscale app (no admin rights). Each friend gets a single-use, pre-authorized key tagged for a narrow ACL. Interactive login would need a Tailscale account or a user seat per friend, and an untagged node would carry the inviter's identity.

What works today

tsnet reads TS_AUTHKEY from the environment on first registration, and the helper inherits the browser's environment. Setting TS_AUTHKEY for the user, restarting the browser and toggling Tailchrome on registers a tagged node with no interactive login. After that the node keeps its identity and tag across browser and helper restarts without the key. Tested with v0.1.15 (store extension, upstream helper) on Windows 11 as a standard user.

Request

An "Use an auth key" field in the login view: sent to the helper over native messaging, used as tsnet.Server.AuthKey for that profile only, never stored. Today the key has to go into the user environment, where it also applies to every browser profile and every other tsnet program of that user, and users have to remember to remove it.

Thanks for the project. The local proxy boundary and the PAC hardening are carefully done.

lucastanzani avatar Oct 21 '26 14:10 lucastanzani