Skip to content

v5.25.0

Choose a tag to compare

@github-actions github-actions released this 01 Dec 12:51
· 44 commits to main since this release
0c71b91

Nuthatch 5.25.0 is a minor cut from main. It ships the fixes that landed after 5.24.3 and moves the SQL engine from Burrmill 0.5.0 to 0.5.3. There is no storage migration, and no NID, registry hash or sealed segment moves on a node.

Upgrade guidance

Replace the binary and restart. A 5.24.x store is used as it is.

  • Evidence bundles keep verifying. A signed nuthatch evidence make bundle made with 5.24.3 (Burrmill 0.5.0) verifies with 5.25.0 (Burrmill 0.5.3), one made on main with Burrmill 0.5.2 verifies with 5.25.0 too, and one made with 5.25.0 verifies with 5.24.3. Both give the same rows, the same rows_sha256 and the same segments_sha256; only made_with differs. A bundle records the nest, the block, the rows and the segments, not the engine version, so Burrmill's rule that a receipt verifies only on the engine release that made it does not apply to nuthatch bundles.
  • Some statements that used to answer now return a 400. Burrmill 0.5.1 to 0.5.3 bring more of DuckDB's binder rules. A statement 5.24.3 answered with a wrong value may now be refused with a Binder Error (see SQL engine below). A refused statement had a wrong answer before, so fix the statement.
  • 5.24 is a long-term-support line (SECURITY.md). Operators who want only security fixes can stay on 5.24.

CLI

  • nuthatch sql --url works from a directory that is not a nest (#3229, #3234). The documented second-terminal command, nuthatch sql --url http://127.0.0.1:8288 "..." run from anywhere, used to stop with no nest in . before it tried HTTP. Now it queries --url, and reports no_nest only if nothing answers. A directory that holds a nuthatch.toml is still checked against the instance (#3144). diff falls back the same way.
  • dev and bench read the archive endpoint from NUTHATCH_STATE_RPC (#3223, #3239), so a keyed archive URL stays out of argv and ps. On an address-history nest, an exported NUTHATCH_STATE_RPC or NUTHATCH_HISTORY_SOURCE is now ignored with a warning naming the variable. Only a value passed on the command line is refused, and the error names the flag.

npm launcher

  • npx nuthatch-indexer refuses to run without checksums it can trust (#3218, #3238). If the package's checksums.json is missing or unreadable, or has no valid SHA-256 for the platform's binary, the launcher stops and asks you to reinstall. It no longer downloads or runs a binary it cannot verify.

SQL engine (Burrmill 0.5.0 to 0.5.3)

  • New Binder Errors where the old engine answered wrongly. Two examples:
    • CAST(1 AS DECIMAL(10,255)) answered 0 and now gives Binder Error: DECIMAL type scale cannot be greater than width. A DECIMAL width outside 1 to 76, a negative scale, or a scale wider than the width is refused wherever a type is written.
    • COUNT(DISTINCT *) answered 1 and is now refused.
  • Also refused now, as DuckDB's binder refuses them:
    • count with several arguments;
    • a boolean or NULL as an ORDER BY key;
    • a literal other than a position as a DISTINCT ON key;
    • f(x) EXPORT_STATE.
  • Changed answers:
    • COUNT(t.*) counts the rows where t is present, as DuckDB does, where it used to count every row.
    • regr_slope and regr_r2 follow DuckDB when there is no spread.
    • concat_ws flattens list arguments.
    • substr and the regexp_* functions refuse arguments that are out of range or that name a missing group.
    • FROM t in a branch of a UNION reads as SELECT * FROM t.
  • Some join and scan plans change. Results are unchanged, but /explain output differs for some joins, and some join-heavy statements run faster.
  • Burrmill 0.5.3 also fixes a pseudonymised-mode leak in its own CLI and browser tab. Nuthatch does not use pseudonymised mode.

Dependencies

  • ed25519-dalek 3 (with curve25519-dalek 5.1) clears a cargo-deny advisory. It signs and verifies pack manifests and evidence bundles, and keys from pack keygen on 5.24.3 still work.

Docs

  • README and AGENTS.md share one golden-path snippet (#3233, #3242), and README website links point at the apex domain (#3236).
  • Docs and help text say audit chain, --history-source and --history-url ship since 5.24.2.

Known issues

  • #3221 (P1): hosted deploy kit. The audit RPC URL, with its key, appears in a systemd unit's argv. gate-export follows symlinks. There are also two pitfalls in the XDC shim. This affects operators who use the hosted-nest deploy scripts under deploy/, not the binary.
  • #3102 (P1): opt-in Xatu history source. With --history-source xatu, a bit-flipped logs file from the dataset is served as the chain's logs, because page checksums are not checked. The source is off unless you name it. If you use it, treat the dataset host as trusted, or cross-check with nuthatch audit chain.