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 -4
View File
@@ -25,10 +25,12 @@ MONERO_WALLET_RPC_PASSWORD=
MONERO_WALLET_RPC_WALLET_PASSWORD=
MONERO_WALLET_RPC_WALLET_DIR=/wallets
# Monero daemon
# - Default: uses a third-party daemon (low setup, external dependency)
# - Local: run the bundled `monerod` service and set MONERO_DAEMON_URL=http://monerod:18081
MONERO_DAEMON_URL=http://xmr-node.cakewallet.com:18081
# Monero daemon (required). Payment detection trusts this daemon, so use one you
# operate: the bundled `monerod` service (http://monerod:18081 with the
# local-daemon profile) or your own node on a private network. A plain-http
# daemon on a public host is refused at startup, because whoever runs it, or
# sits on the path, could fake payments. Use https for a remote daemon.
MONERO_DAEMON_URL=http://monerod:18081
# Admin panel (generate with: openssl rand -base64 32 | tr -d '=' | head -c 32)
ADMIN_API_KEY=