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
Ship permission tiers now: Funnel denied by default, plus a read-only mode #40
The project's identity is "safe by default", but the only thing standing between a prompt-injected agent and exposing a local port to the open internet is a sentence in a tool description. An agent reading a malicious README, issue, or web page can be talked into calling share_port {"port": 5432, "public": true}. Description warnings are advisory, and many clients auto-approve after the first confirmation.
The roadmap already plans TAILSCALE_MCP_READONLY and TAILSCALE_MCP_ALLOW_FUNNEL for v0.3, but with Funnel allowed by default. Both are small changes that don't depend on the Admin API work, so they can ship now. Funnel should default to deny.
Evidence
src/tools/share.ts:28-31 passes public straight through to provider.serve, and src/providers/cli.ts:278 switches to funnel.
No env/config gating exists anywhere (src/index.ts).
Suggested approach
TAILSCALE_MCP_ALLOW_FUNNEL=1 is required for public: true. Without it, return a structured FUNNEL_DISABLED error with the remedy ("set TAILSCALE_MCP_ALLOW_FUNNEL=1 in your MCP client config").
TAILSCALE_MCP_READONLY=1 skips registering share_port, stop_share, and the write paths of generate_ssh_config, which is good for monitoring-only setups.
Optionally use MCP elicitation as a second confirmation for Funnel where the client supports it.
Document both in the README config example and in the Security notes.
Done when
A default install cannot create a Funnel. The env flags are tested and documented, and the README's Funnel section describes the gate.
Activity
feat!: Funnel off by default, safe stop_share, structured share_statu…