Bounty
XE-0330 · Bounty

docs: (Embedded UI ) example uses --api-bind 0.0.0.0, contradicting the page's own loopback/reverse-proxy guidance

Triaging xe#250 filed 2026-11-03 14:45 UTC by oxatik

Report

The "Embedded UI (Recommended)" command on https://test.network/docs/deployment passes --api-bind 0.0.0.0 which exposes the HTTP API on all interfaces. The same page says otherwise:

  • Listeners table: the HTTP API defaults to 127.0.0.1:8080.
  • The text under the table says only the libp2p port should be reachable from the internet, and that exposing anything else should go through a reverse proxy.
  • The "Public Hosts (Caddy + pm2)" diagram keeps the API on 127.0.0.1:8080 behind Caddy.

A reader who copy-pastes the "recommended" command ends up with the API reachable directly, without TLS or a reverse proxy.

Page: https://test.network/docs/deployment (footer build: e107ed7) Section: Embedded UI (Recommended)

Command as published

xe node --ui \
  --genesis-dir /etc/xe/genesis \
  --dial /ip4/45.77.226.208/tcp/9000/p2p/12D3KooW... \
  --api-bind 0.0.0.0 \
  --ssh-port 2222

Why it matters

  • Binding the API publicly is the default-looking path for anyone following the guide, which is the opposite of what the page recommends elsewhere.
  • Related: #172 shows how rate-limiter behaviour depends on how the API is bound and proxied, so the bind choice matters beyond style.
  • I have not verified which API endpoints are unauthenticated.

Related inconsistency

--ssh-port 2222 is in the same example, but the SSH gateway is for provider mode and the example deliberately omits --provide. It opens a listener the reader does not need.

Suggested fix

  • Remove --api-bind 0.0.0.0 from the example (the default is loopback). If remote access is needed, document the reverse-proxy setup instead.
  • Remove --ssh-port 2222 from the non-provider example, or note it is provider-only.

Thread

Joseph Denneteam2026-11-08 20:19 UTCgithub

Thanks for flagging the inconsistency in the deployment example. We agree the recommended command should match the page's own guidance and are correcting it. We will update this ticket when the page is changed.