Skip to content

stop_share with no arguments wipes all Serve/Funnel config, including shares not made by this server #41

Closed

Description

@TMHSDigital

Why it matters

stop_share with no arguments runs tailscale serve reset, which wipes every Serve/Funnel config on the node, including shares the user set up by hand outside this server (a Home Assistant proxy, a Jellyfin share, etc.). An agent "cleaning up after itself" can take down unrelated services.

Evidence

src/providers/cli.ts:309-315: port === undefined ? ["serve", "reset"] : .... The no-argument default is the most destructive option, and the tool description presents it as the normal path.

Suggested approach

  • Require an explicit all: true to reset everything. With no arguments, return an error listing the active endpoints (from share_status) and asking which one to stop.
  • Track the endpoints this server created during the session and support stop_share {"mine": true}.
  • Return before/after state so the agent can show what changed (the house style the roadmap already uses for exit nodes).

Done when

No zero-argument call can delete shares the server didn't create. Tests cover all, httpsPort, and the no-argument error.

Activity

  1. added
    enhancement
    priority: P2
    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: P2security-hardening

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions