Skip to content

0.3.14:0: upstream at v0.3.14 - #9

Merged
MattDHill merged 5 commits into
Start9-Community:mainfrom
MarkSierra:claude/bold-planck-14e4f1
Nov 10, 2026
Merged

MattDHill merged 5 commits into
Start9-Community:mainfrom
MarkSierra:claude/bold-planck-14e4f1

Conversation

@MarkSierra

@MarkSierra MarkSierra commented Nov 10, 2026 •

Copy link
Copy Markdown

Updates Monetary View to 0.3.14 (0.3.13:0 was never submitted; the release notes cover everything since 0.3.12:0).

Upstream (MarkSierra/BitcoinMonetaryView v0.3.13 and v0.3.14):

  • a damaged settings.json no longer switches off the web password or deletes the scan results
  • gettxoutsetinfo once a week instead of daily (bitcoind flushes its UTXO cache to answer); README and About page say so
  • blocks with duplicated transactions (CVE-2012-2459) are refused, as Core does
  • web server hardening (failed-login delay, connection cap, unread request bodies, malformed input)
  • a missing RPC cookie right after a reboot shows as waiting for the node, not as an authentication error
  • GitHub Actions pinned by commit; unused code removed

Package changes:

  • upstream submodule at v0.3.14; the base image (FROM) is unchanged and identical to upstream's Dockerfile
  • init unchanged from 0.3.12:0 (the settings guard was removed after review; the SDK will handle unparsable files, fix(start-sdk): back up and rebuild an unparseable file model on merge; 4.1.1 Start9Labs/start-technologies#4670)
  • backups also exclude the staging copies nocow.py uses while converting a result database (/..nocow, /..old)
  • the Scan Progress script uses http.client (no proxy variables) and reports a damaged settings.json instead of "Starting up"
  • descriptions, README and instructions mention the weekly UTXO-size request
  • release notes in all five languages, with section headers

Checks: tsc --noEmit and prettier pass; the status script was run against a stub server.

Tested on StartOS 0.4.2 with Knots 29.3 as 0.3.14-beta.0:0, updating over the previous test build on a fully scanned mainnet node: scan results kept (saved spent-output filter loaded, no rescan), the new init ran ("Initialization complete."), health checks green. After a Bitcoin restart and a full server reboot the app waited for bitcoind and reconnected without an authentication error (0.3.12 logged one in the same situation). Not tested on this build: a clean install (no second server); the only init change returns before doing anything when settings.json does not exist yet.

- Release notes for 0.3.13:0 in all five languages.
- Backups also exclude the staging copies nocow.py uses while converting a
  result database (/.<net>.nocow, /.<net>.old).
- The Scan Progress status script uses http.client (no proxy variables) and
  reports a damaged settings.json instead of "Starting up": the app's own
  message on 503, or a short one when the script cannot read the credentials.
- Descriptions, README and instructions say that once a week the app asks
  bitcoind for its UTXO set size, and that bitcoind writes its cache to disk
  to answer.

The upstream submodule moves to v0.3.13 in the next commit, once the tag exists.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The base image (FROM) is the same as in upstream's Dockerfile. Upstream
removed the unused setting allow_pause_when_managed; the package never set it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…th headers

- init: a settings.json that is not a JSON object is moved to
  settings.json.damaged before seedFiles merges it. StartOS runs init at every
  start, and the SDK's merge cannot parse such a file, so init (and Set Web
  Password) failed; a StartOS user cannot repair the file. With defaults
  written, the critical Set Web Password task returns. Tested with a harness
  against real files (cut short, empty, array, valid, absent).
- 0.3.14:0 replaces 0.3.13:0, which never reached a registry: release notes
  cover everything since 0.3.12:0, under bold section headers as Start9's
  guide asks, in all five languages.
- README: the file model section describes the guard.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The base image (FROM) is the same as in upstream's Dockerfile.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@MattDHill MattDHill 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.

Thanks, the upstream bump, the backup excludes for the nocow staging copies, and the gettxoutsetinfo disclosure all look good.

The damaged-settings.json handling should come out of the package, though. Users editing a file model by hand is expected, and the file model is what handles it: every field has a .catch() default, and settingsJson.merge(effects, {}) in init repairs anything with the wrong type or missing. Removing keys is a migration's job. That covers every state the package itself can produce. The actions write through the file model, and its writes are atomic, so the file can't be left truncated.

What's left is a hand edit that isn't JSON at all. FileHelper.merge parses before it validates, so zod never sees that file. If that case is worth handling, the fix belongs in the SDK, so merge treats a parse failure like a validation failure. Every JSON/YAML/TOML file model has the same exposure, and a per-package guard written with raw fs alongside the file model isn't the pattern we want to spread.

Please drop:

  • startos/init/settingsGuard.ts and its call in seedFiles.ts
  • the bad / 503 branches in STATUS_SCRIPT (the http.client switch is fine to keep)
  • the README paragraphs about settings.json.damaged and the locked web interface
  • the release-note bullet about settings.json.damaged, in all five languages

The upstream security bullet ("a damaged settings file can no longer switch off the web password...") describes the app itself and can stay.

@MattDHill

Copy link
Copy Markdown
Member

Follow-up: the SDK fix for broken-syntax files is up at Start9Labs/start-technologies#4670. Once it ships (start-sdk 4.1.1), merge() will rebuild a file it can't parse from the schema's .catch() defaults and log a warning, instead of throwing. For this package, a broken settings.json would then come back with auth_password: '', and the Set Web Password task would return without any package-side guard. So settingsGuard.ts can go without waiting for the SDK release.

Removes settingsGuard.ts and its call, the damaged-settings branches of the
status script, and the README and release-note text about them. The SDK will
handle unparsable file models (Start9Labs/start-technologies#4670).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@MarkSierra

Copy link
Copy Markdown
Author

Thanks, done in ab369b2: settingsGuard.ts and its call are gone (seedFiles.ts is back to the 0.3.12:0 version), the bad/503 branches are out of STATUS_SCRIPT (http.client kept), and the README paragraphs and the settings.json.damaged release-note bullet are removed in all five languages. Good to see the SDK fix in #4670.

@MattDHill MattDHill 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.

Thanks for the quick turnaround. Looks good.

@MattDHill
MattDHill merged commit 4a527e8 into Start9-Community:main Nov 10, 2026
5 checks passed
@MarkSierra
MarkSierra deleted the claude/bold-planck-14e4f1 branch November 10, 2026 15:54
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.

3 participants