From 43a2ef425ed6d0847afbb2afcc4c9733678ad4cd Mon Sep 17 00:00:00 2001 From: Gavin Hausermann <275865618+danhaus93-ops@users.noreply.github.com> Date: Thu, 3 Dec 2026 19:05:05 -0600 Subject: [PATCH] Update Bitcoin Cash Node to 29.1.38 (#6478) Co-authored-by: danhaus93-ops Co-authored-by: Claude Opus 5.5 --- bitcoin-cash-node/docker-compose.yml | 22 ++++++++++++++++++-- bitcoin-cash-node/exports.sh | 4 ++++ bitcoin-cash-node/torrc | 2 +- bitcoin-cash-node/umbrel-app.yml | 30 +++++++++++++++++----------- 4 files changed, 43 insertions(+), 15 deletions(-) diff --git a/bitcoin-cash-node/docker-compose.yml b/bitcoin-cash-node/docker-compose.yml index 92f9561fb..6d9b3c2b1 100644 --- a/bitcoin-cash-node/docker-compose.yml +++ b/bitcoin-cash-node/docker-compose.yml @@ -10,6 +10,19 @@ services: restart: on-failure environment: HOME: /tmp + TOR_CONTROL_PASS: ${APP_BITCOIN_CASH_NODE_TOR_CONTROL_PASS} + # Other apps can reach the control port, so it gets this Umbrel's own + # password, hashed at start; tor is not started without one. Tor adds a + # command-line HashedControlPassword to the torrc's, so any in the torrc + # (older ones held a public hash) are dropped first. + entrypoint: ["/bin/sh", "-c"] + command: + - | + if [ -z "$${TOR_CONTROL_PASS:-}" ]; then echo "[tor] no control password from umbrelOS; not starting" >&2; exit 1; fi + h="$$(tor --quiet --hash-password "$$TOR_CONTROL_PASS" | tail -n 1)" + case "$$h" in 16:*) ;; *) echo "[tor] could not hash the control password" >&2; exit 1 ;; esac + grep -v '^[[:space:]]*HashedControlPassword' /etc/tor/torrc > /tmp/torrc + exec tor -f /tmp/torrc HashedControlPassword "$$h" volumes: - ${APP_DATA_DIR}/torrc:/etc/tor/torrc:ro - ${APP_DATA_DIR}/data/tor:/data @@ -48,6 +61,8 @@ services: - -maxconnections=64 # Publish block notifications to compatible companion apps. - -zmqpubhashblock=tcp://0.0.0.0:28332 + # Tor control password; on the command line it beats bitcoin.conf. + - -torpassword=${APP_BITCOIN_CASH_NODE_TOR_CONTROL_PASS} ports: - 8335:8335 # BCH P2P — forward this on your router for clearnet inbound peers networks: @@ -55,7 +70,7 @@ services: ipv4_address: ${APP_BITCOIN_CASH_NODE_NODE_IP} web: - image: ghcr.io/danhaus93-ops/bchn-dashboard:8bb17f3689d837dbd370ac0d35e4a158ea12b75a@sha256:7c292722411525908ddb80ac56915db88213e245ac0e3e8a683a3d4ebcd2ae24 + image: ghcr.io/danhaus93-ops/bchn-dashboard:db30e426ea243b426e5f5152f20941905352fc1d@sha256:41c3989f19fe418be8af9d8442fd5ee9850f108cc318a1bd4433877abbae6fa1 restart: on-failure user: "1000:1000" volumes: @@ -64,10 +79,13 @@ services: - bitcoind environment: PORT: 3000 - APP_VERSION: v29.1.37 + APP_VERSION: v29.1.38 TOR_IP: ${APP_BITCOIN_CASH_NODE_TOR_IP} RPC_HOST: bitcoind RPC_PORT: "8332" RPC_USER: ${APP_BITCOIN_CASH_NODE_RPC_USER} RPC_PASS: ${APP_BITCOIN_CASH_NODE_RPC_PASS} + # Settings password: shown to the owner by umbrelOS (deterministicPassword); + # other apps on the network never see it. + APP_PASSWORD: ${APP_PASSWORD} PUBLIC_HOST: ${DEVICE_DOMAIN_NAME} diff --git a/bitcoin-cash-node/exports.sh b/bitcoin-cash-node/exports.sh index 8192f883e..97752684a 100644 --- a/bitcoin-cash-node/exports.sh +++ b/bitcoin-cash-node/exports.sh @@ -6,3 +6,7 @@ export APP_BITCOIN_CASH_NODE_P2P_PORT="8335" export APP_BITCOIN_CASH_NODE_ZMQ_HASHBLOCK_PORT="28332" export APP_BITCOIN_CASH_NODE_RPC_USER="umbrel" export APP_BITCOIN_CASH_NODE_RPC_PASS="$(derive_entropy "bitcoin-cash-node-rpc-pass")" + +# Tor control port password, unique to this Umbrel. The tor service hashes it +# at start; bitcoind gets it with -torpassword. +export APP_BITCOIN_CASH_NODE_TOR_CONTROL_PASS="$(derive_entropy "bitcoin-cash-node-tor-control-pass")" diff --git a/bitcoin-cash-node/torrc b/bitcoin-cash-node/torrc index af0a60457..dd196ea8d 100644 --- a/bitcoin-cash-node/torrc +++ b/bitcoin-cash-node/torrc @@ -1,5 +1,5 @@ SocksPort 0.0.0.0:9050 ControlPort 0.0.0.0:9051 -HashedControlPassword 16:BECD9D4F455F8E45602A1CC11575D322BF395C07FAFB1AA5E88C74610F +# The control password hash is added by the tor service at start (exports.sh). DataDirectory /data Log notice stdout diff --git a/bitcoin-cash-node/umbrel-app.yml b/bitcoin-cash-node/umbrel-app.yml index f23c182b7..0d7d0fa9e 100644 --- a/bitcoin-cash-node/umbrel-app.yml +++ b/bitcoin-cash-node/umbrel-app.yml @@ -4,7 +4,7 @@ storage: dataRoot: data category: crypto name: Bitcoin Cash Node -version: "29.1.37-patch.1" +version: "29.1.38" tagline: Run your own Bitcoin Cash full node (BCHN) description: >- Run your own Bitcoin Cash full node powered by Bitcoin Cash Node (BCHN). @@ -30,24 +30,30 @@ description: >- contributions help keep development going: qpp8hg2n60mhhlsr2apw6l60x5vrdq0vp5pq3j4gyt releaseNotes: >- + Security fix - please update. Other apps on your Umbrel could change this + node's settings (disconnect peers, switch Tor, restart the node) without + asking, and could read its RPC password from the dashboard. Text a miner puts + in a block could also run code in the dashboard. Changing a setting, or + showing the RPC password, now needs the app password: umbrelOS shows it when + you open Bitcoin Cash Node, and you can see it again by right-clicking the app + icon. Enter it once on each device. Block and peer text now always shows as + plain text. The node's Tor helper also gets a control password unique to + your Umbrel; the old one was public, so another app could shut Tor down or + change its settings. + + + Previous Bitcoin Cash Node 29.1.37-patch.1 release notes: + + This update adds support for new storage management and configuration options introduced with umbrelOS 2.0. - - - Previous Bitcoin Cash Node 29.1.37 release notes: - - - Follow-up fixes to the onion peers panel from store review. An onion peer - that connected and later went offline now rotates out instead of holding - its slot forever, the keep-connected option can once again reach its full - four peers when some are already connected, and the known count now - matches the list exactly (duplicate entries under different ports are - merged). developer: LoneStrike Labs website: https://bitcoincashnode.org dependencies: [] repo: https://github.com/danhaus93-ops/umbrel-bch-apps support: https://github.com/danhaus93-ops/umbrel-bch-apps/issues port: 3330 +defaultUsername: "" +deterministicPassword: true gallery: - 1.webp - 2.webp