{"id":"XE-0330","kind":"bounty","visibility":"public","source":"github","source_repo":"xeprotocol/xe","source_ref":"250","source_url":"https://github.com/xeprotocol/xe/issues/250","reporter_id":29,"title":"docs: (Embedded UI ) example uses --api-bind 0.0.0.0, contradicting the page's own loopback/reverse-proxy guidance","area":"sdk-docs-web","claimed_tier":null,"assessed_tier":null,"verdict":null,"duplicate_of":null,"tracked":false,"internal_ref":"","internal_url":null,"status":"triaging","closed_reason":null,"github_state":"open","disclosed_at":null,"award_xe":null,"award_approved":false,"paid_ref":"","created_at":"2026-11-03T14:47:27.136670+00:00","updated_at":"2026-11-10T00:11:52.272364+00:00","source_created_at":"2026-11-03T14:45:43+00:00","told_at":"2026-11-08T20:19:12+00:00","status_changed_at":"2026-11-08T20:18:30.265130+00:00","url":"https://bounty.xe.network/XE-0330","body":"\nThe \"Embedded UI (Recommended)\" command on https://test.network/docs/deployment\npasses --api-bind 0.0.0.0 which exposes the HTTP API on all interfaces.\nThe same page says otherwise:\n\n- Listeners table: the HTTP API defaults to `127.0.0.1:8080`.\n- The text under the table says only the libp2p port should be reachable from\n  the internet, and that exposing anything else should go through a reverse proxy.\n- The \"Public Hosts (Caddy + pm2)\" diagram keeps the API on `127.0.0.1:8080`\n  behind Caddy.\n\nA reader who copy-pastes the \"recommended\" command ends up with the API\nreachable directly, without TLS or a reverse proxy.\n\n**Page:** https://test.network/docs/deployment (footer build: `e107ed7`)\n**Section:** Embedded UI (Recommended)\n\n## Command as published\n\n```\nxe node --ui \\\n  --genesis-dir /etc/xe/genesis \\\n  --dial /ip4/45.77.226.208/tcp/9000/p2p/12D3KooW... \\\n  --api-bind 0.0.0.0 \\\n  --ssh-port 2222\n```\n\n## Why it matters\n\n- Binding the API publicly is the default-looking path for anyone following\n  the guide, which is the opposite of what the page recommends elsewhere.\n- Related: #172 shows how rate-limiter behaviour depends on how the API is\n  bound and proxied, so the bind choice matters beyond style.\n- I have not verified which API endpoints are unauthenticated. \n\n## Related inconsistency\n\n`--ssh-port 2222` is in the same example, but the SSH gateway is for provider\nmode and the example deliberately omits `--provide`. It opens a listener the\nreader does not need.\n\n## Suggested fix\n\n- Remove `--api-bind 0.0.0.0` from the example (the default is loopback).\n  If remote access is needed, document the reverse-proxy setup instead.\n- Remove `--ssh-port 2222` from the non-provider example, or note it is\n  provider-only.\n\n","patch_refs":[],"thread":[{"id":1178,"source":"github","source_ref":"6726600271","author":"Joseph Denne","team":true,"body":"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.","created_at":"2026-11-08T20:19:12+00:00"}]}