Repository navigation
0.3.14:0: upstream at v0.3.14 - #9
Conversation
- 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
left a comment
There was a problem hiding this comment.
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.tsand its call inseedFiles.ts- the
bad/ 503 branches inSTATUS_SCRIPT(thehttp.clientswitch is fine to keep) - the README paragraphs about
settings.json.damagedand 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.
|
Follow-up: the SDK fix for broken-syntax files is up at Start9Labs/start-technologies#4670. Once it ships (start-sdk 4.1.1), |
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>
|
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
left a comment
There was a problem hiding this comment.
Thanks for the quick turnaround. Looks good.
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):
Package changes:
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.