Skip to content

fix: mount bitcoind's public volume for the rpc cookie - #10

Merged
MattDHill merged 1 commit into
mainfrom
fix/bitcoind-public-volume
Nov 20, 2026
Merged

MattDHill merged 1 commit into
mainfrom
fix/bitcoind-public-volume

Conversation

@MattDHill

Copy link
Copy Markdown
Member

Monetary View reads exactly one file from bitcoind, its RPC cookie, but the package mounted bitcoind's whole main volume (chain data, wallets, bitcoin.conf) to read it. This switches the mount to the public volume bitcoind publishes for dependents, which holds the cookie and none of the node's chain or wallet data — least privilege, and it matches the package's own rule of being read-only towards bitcoind.

What changed

  • startos/main.ts mounts bitcoind's public volume (new btcVolumeId in startos/utils.ts) at /mnt/bitcoind, read-only. The mountpoint and BMV_RPC_COOKIE_FILE (/mnt/bitcoind/.cookie) are unchanged. The package doesn't depend on bitcoin-core-startos, so the volume id is a local constant rather than an import.
  • The bitcoind range is raised to the first release on each line and flavor that publishes the public volume, keeping Core, pre-RDTS Knots and Roots: (>=28.4:42 && <29) || (>=29.5:4 && <30) || (>=30.4:4 && <31) || >=31.2:4 || >=#knotsprerdts:29.3:33 || >=#roots:29.4:1.
  • start-sdk bumped 4.0.0 → 4.1.0 (no code changes needed); release notes open with the StartOS 0.4.2 requirement that brings.
  • Version 0.3.14:1, release notes in all five locales; README's volume, dependency and quick-reference tables updated.

Existing installs

Nothing to migrate: the mount is rebuilt on start, and the app still re-reads the cookie on a 401. A server running a Bitcoin older than the new range sees the usual dependency warning until Bitcoin is updated; the release notes say so.

Verified

npx tsc --noEmit and rm -rf javascript && make javascript/index.js are clean. Not box-tested, and the image was not rebuilt.

@MarkSierra, could you take a look when you have a moment?

review effort: 'high'

🤖 Generated with Claude Code

Monetary View reads only bitcoind's RPC cookie, but mounted bitcoind's
whole main volume (chain data, wallets, config) to get it. Mount the
public volume bitcoind publishes for dependents instead, and raise the
bitcoind range to the first release on each line and flavor that publishes
it, Roots included. Bump start-sdk to 4.1.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@MattDHill
MattDHill marked this pull request as ready for review November 20, 2026 19:17

@helix-white helix-white left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 9b23b13. No correctness findings; it merges cleanly with main.

Checked the read-only whole-directory public mount, unchanged cookie path and upstream credential reload behavior, dependency floors against the Core/Knots/Roots commits introducing the public volume, SDK/lockfile update, version bump and documentation. The mount excludes private chain and wallet data while preserving cookie replacement across Bitcoin restarts.

Code-only review; no builds or tests run. Architecture builds are still pending in CI.

Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol

@MattDHill
MattDHill merged commit 079ec78 into main Nov 20, 2026
5 checks passed
@MattDHill
MattDHill deleted the fix/bitcoind-public-volume branch November 20, 2026 19:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants