Repository navigation
fix: mount bitcoind's public volume for the rpc cookie - #10
Merged
Merged
Conversation
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
marked this pull request as ready for review
November 20, 2026 19:17
helix-white
approved these changes
Nov 20, 2026
helix-white
left a comment
Member
There was a problem hiding this comment.
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Monetary View reads exactly one file from bitcoind, its RPC cookie, but the package mounted bitcoind's whole
mainvolume (chain data, wallets,bitcoin.conf) to read it. This switches the mount to thepublicvolume 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.tsmounts bitcoind'spublicvolume (newbtcVolumeIdinstartos/utils.ts) at/mnt/bitcoind, read-only. The mountpoint andBMV_RPC_COOKIE_FILE(/mnt/bitcoind/.cookie) are unchanged. The package doesn't depend onbitcoin-core-startos, so the volume id is a local constant rather than an import.publicvolume, 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-sdkbumped 4.0.0 → 4.1.0 (no code changes needed); release notes open with the StartOS 0.4.2 requirement that brings.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 --noEmitandrm -rf javascript && make javascript/index.jsare 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