You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Linux: map serve/funnel access-denied to a PERMISSION_DENIED error with the operator remedy #54
On Linux, tailscaled runs as root and only root or the configured operator can change Serve/Funnel config. A normal user running the MCP server gets an access-denied error from tailscale serve, and the server reports it as a generic CLI_ERROR with the remedy "run the command manually to reproduce". The fix is one well-known command, and this project's whole error design is built to hand users exactly that kind of command.
Evidence
src/providers/cli.ts:174-188 (failFromCli) recognizes only daemon-unreachable text. Everything else becomes CLI_ERROR.
TailscaleErrorCode (src/providers/types.ts:96-101) has no permission code.
README has no Linux note about operator permissions for share_port/stop_share.
Add a PERMISSION_DENIED code. Map /access denied|permission denied/i from serve, funnel, or reset to it, with the remedy sudo tailscale set --operator=$USER.
Add a README "Linux" note under Serve/Funnel.
Add fixture tests for the denied path on serve, funnel, and serve reset.
Done when
A non-operator Linux user calling share_port gets PERMISSION_DENIED with the operator command, covered by tests and documented.
Activity
fix: ssh-config safety, macOS CLI resolution, share paths, test typec…