Skip to content

0101. Plugin hosts trusted on private networks ​

  • Status: Accepted
  • Date: 2026-11-27

Context ​

A plugin's fetch has the feeds' private-address guard, so a self-hosted service a plugin should use, such as a model server on the Docker network (ollama, 172.x) or on the host (host.docker.internal), is refused. The only way through was FETCH_ALLOW_PRIVATE_NETWORKS, which opens feeds, page and icon fetches, and push to the same addresses, so any user's subscription could reach them.

Decision ​

  • PLUGIN_TRUSTED_HOSTS, comma-separated host names without ports, set by the operator: plugins' requests to those hosts skip the private-address guard, for IP literals and resolved names alike.
  • A trusted host is still reached only by plugins an admin approved it for; polite limits, pauses, spans, and statistics are unchanged.
  • Feeds and push keep their own guards (FETCH_ALLOW_PRIVATE_NETWORKS, PUSH_TRUSTED_HOSTS).

Consequences ​

  • A self-hosted model server works with a plugin without exposing it to feed URLs.
  • Trust is by name: whatever a trusted name resolves to, the plugin may reach, so operators name only hosts they run.
  • No change to the plugin API; AWS functions run outside a VPC and set nothing.

Released under the AGPL-3.0-or-later license.