skillshare icon indicating copy to clipboard operation
skillshare copied to clipboard

[Feature] Allow trusted dashboard hostnames/origins for MCP management

Open LloydPowell771 opened this issue 3 weeks ago • 1 comments

Problem

I run Skillshare v0.29.2 (Homebrew, macOS) as a persistent service on a headless machine. The UI listens on 127.0.0.1:19420, behind Caddy with trusted HTTPS. Caddy listens only on the machine's Tailscale interface, and I access the dashboard through a private custom hostname.

The rest of the dashboard works through that hostname, but the MCP page returns:

MCP settings are available only when the dashboard is opened by localhost or an IP address, not a domain name

I verified that GET /api/mcp returns 200 through the loopback URL and 403 through the HTTPS hostname. The upstream service remains bound to loopback.

Feature request

Could Skillshare support an explicit opt-in allowlist of trusted dashboard hostnames/origins for MCP management behind a private reverse proxy?

For example, an operator could authorise https://skills.example.com through a configuration setting or startup flag. The exact interface is up to the maintainer; an exact-origin allowlist would cover this use case.

Desired behaviour:

  • Keep the current hostname restrictions and DNS rebinding protection as the default.
  • Permit MCP import, preview and sync through explicitly authorised HTTPS origins.
  • Validate the request host and browser origin appropriately, and avoid implicitly trusting arbitrary forwarded headers.
  • Document that the operator remains responsible for restricting access to the reverse proxy.

This follows the security rationale in #285 while supporting a deliberately configured private deployment.

Current alternatives

An SSH tunnel to localhost or screen sharing to the host lets me use the MCP UI. Both add an extra step to a dashboard that is otherwise available through its permanent private HTTPS URL.

Happy to discuss the security model and intended configuration before any implementation. This is a feature request only; no implementation is proposed here.

Written by GPT-6.1 Sol, reviewed by Lloyd.

LloydPowell771 avatar Nov 09 '26 02:11 LloydPowell771

Thanks for the careful write-up; it made the security model easy to settle. #811 adds an exact-origin allowlist, and it is out in 0.30.0. Start the dashboard with --trusted-origin https://skills.example.com, or set SKILLSHARE_UI_TRUSTED_ORIGINS in your service's environment, and the MCP, Hooks and Plugins pages work through that hostname. Caddy keeps the Host header by default, so your proxy needs no change. One heads-up: the rule now covers the whole dashboard, so any other hostname gets 403 until it is listed. If anything in your setup is still refused, let me know here.

runkids avatar Nov 09 '26 05:11 runkids