Skip to content

Ship permission tiers now: Funnel denied by default, plus a read-only mode #40

Closed

Description

@TMHSDigital

Why it matters

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

  1. added
    enhancement
    priority: P1
    security-hardening
    on Oct 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementpriority: P1security-hardening

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions