fix(daemon): require an operator daemon and refuse plain http to a public node

Every shipped default pointed payment detection at a third-party daemon
over plain http. Whoever ran it, or anyone on the path, could fake
transfers or confirmations.

MONERO_DAEMON_URL is now required with no default. The API and reconciler
refuse to start with a plain-http daemon on a public host; private,
loopback and local names stay allowed, and remote daemons must use https.
The example and README point at an operator-run node.
This commit is contained in:
2026-11-18 15:48:01 -05:00
parent b44181d8d9
commit b6c55f9007
5 changed files with 103 additions and 11 deletions
+6 -2
View File
@@ -123,8 +123,12 @@ cp .env.example .env
- `MONERO_DAEMON_URL` (choose one of the options below)
3. Choose a Monero daemon source:
- **Use a third-party daemon (default):**
- Leave `MONERO_DAEMON_URL` as-is (the default points at a public Monero daemon).
`MONERO_DAEMON_URL` is required and has no default. Payment detection trusts the daemon, so it must
be one you operate. A plain-http daemon on a public host is refused at startup; a remote daemon must
use https.
- **Use your own node elsewhere:**
- Set `MONERO_DAEMON_URL` to your node on a private network (for example `http://10.0.0.5:18081`),
or to an https endpoint you control.
- **Run your own daemon via Docker Compose:**
- Set `MONERO_DAEMON_URL=http://monerod:18081`
- Start the stack with the `local-daemon` profile (see step 5)