Skip to content

v0.5.3

Choose a tag to compare

@github-actions github-actions released this 30 Nov 13:46
· 39 commits to master since this release
Immutable release. Only release title and notes can be modified.

Installation

htree CLI

Install with shell:

curl -fsSL https://github.com/mmalmi/hashtree/releases/download/v0.5.3/install.sh | sh

Manual macOS/Linux install: download the archive for your platform from the release assets below, extract it, and run ./install.sh.

  • Windows x64 CLI: download the zip asset below, extract it, and add htree.exe, htree-cashu.exe, and git-remote-htree.exe to your PATH.

Changelog

  • A default cargo install hashtree-cli includes the Git remote helper.
  • Link-visible Git clone URLs now end in the repository name so plain git clone uses that name for the checkout.
  • Product releases publish the workspace crates to crates.io.
  • htree add now coalesces durable LMDB directory writes into bounded 16 MiB batches instead of committing once per small file.
  • htree push and auto-push now pre-filter existing blobs with POST /upload/check and upload in bounded binary batches (POST /upload/batch-binary), falling back cleanly to single PUT /upload on plain Blossom servers without sending wasted batch bodies.
  • htree get, htree load, htree cat, and htree pin now fetch in parallel (concurrency = 16), use POST /blob/batch for small/medium blobs, batch LMDB cache writes, retry transient 408/429/5xx/transport errors, hedge downloads across configured read servers (150 ms hedge delay), and return an explicit error instead of silently succeeding when a child chunk cannot be fetched.
  • HashTree::get_stream (hashtree-core 0.3.3) prefetches bounded upcoming chunks in order (up to 8 chunks / 8 MiB), and BlossomStore (hashtree-blossom 0.3.1) caps its in-memory LRU blob cache (64 MiB default) and propagates read errors instead of turning timeouts into misses.
  • git-remote-htree fixes 5 s and 10 s progress-reporter stall bugs in clone/fetch, batches multi-ref pushes (git push --tags / --all) into a single root build/upload/publish (fixing ancestor-branch validation failures), batches Blossom reads (POST /blob/batch) and LMDB commits with automatic plain-Blossom fallback, avoids wasted batch upload bodies on plain Blossom servers, reuses a single process-wide Tokio runtime and shared HTTP/Blossom clients, caches clean unobserved roots within list for-push → push, pipelines git cat-file, compresses objects in parallel, and reuses unchanged .git/index subtrees on incremental pushes.

Security

  • Nostr verification & relay handling: Verify event IDs and Schnorr signatures across raw WebSocket relay queries (hashtree-resolver, hashtree-nostr, git-remote-htree, @hashtree/nostr, @hashtree/worker), signed event snapshots, root event parsing, and upstream relay proxy forwarding/caching; verify queried event IDs match the requested ID; harden the embedded WASM verifier against empty-ID bypass and out-of-bounds length checks.
  • HTTP daemon, auth & origin boundaries: Enforce constant-time Basic auth comparisons; require write authentication for local POST /api/nostr/events and trusted-author checks for /api/socialgraph/snapshot; restrict *.iris.localhost virtual host resolution to loopback requests; check Sec-Fetch-Site on loopback-only mutation routes and strip Access-Control-Allow-Origin: * from private API routes; remove unsafe-inline from directory listing CSP, add X-Content-Type-Options: nosniff, and sanitize Content-Disposition filenames; require strict 64-hex hashes and bounded sizes across /blob/batch, /upload/*, WebSocket frames, and Blossom fetches; validate archive/tree entry names against path traversal in htree get, hashtree-nostr snapshot permalinks, and @hashtree/git.
  • Paid retrieval & peer credit: Isolate HTTP bearer accounts in a dedicated ledger separate from FIPS peer accounts and scope authenticated-peer explicit subaccounts per peer identity so one peer or unauthenticated caller cannot spend another peer's balance; bound wire frame reads and lazy buffer allocation; reject negative/overflowing balances, enforce max_loss_msat on balance resyncs, validate Cashu token prefixes/mints/limits, and reject malformed non-canonical CBOR/JSON tokens; require 0600/0700 permissions on newly written keys, auth cookies, and account files.
  • Storage, FUSE, P2P & parsers: Verify SHA-256 hashes on S3/Blossom/peer reads and @hashtree/core verifyTree; cap HashTree declared size arithmetic, StreamReader range bounds, ZlibDecoder decompression sizes, MessagePack decode collection/depth limits, and @hashtree/index acronym expansion (eliminating quadratic ReDoS); validate LMDB external pack filenames and file-length bounds; add in-process RwLock protection for EnvFlags::NO_LOCK handles; bound FUSE reads/writes and BitTorrent path/size inputs; cap per-peer FIPS TCP connections and frame allocations; sanitize tauri-plugin-hashtree-updater and hashtree-updater download URLs, filenames, redirects, and release manifest fields; redact S3 credentials from Debug output and tree decryption keys from hashtree-nostr error logs.
  • Release & packaging scripts: Pin Homebrew tap and bootstrap installer templates to verified HTTPS downloads, verify SHA-256 digests before extraction, and quote shell/GitHub Actions workflow variables safely.

Fixed

  • Gate Unix-socket Core Lightning cashout CLI handlers behind #[cfg(unix)] so Windows builds compile cleanly.
  • Restore catch-up resume stderr logging, update the 4-worker capacity-probe test, and restore the archive-io-diagnostics feature gate on the heavy append_io benchmark tests.
  • Cap HttpPaidTransport idle connection pooling below the server's HTTP/1 header read timeout to prevent stale keep-alive write errors, and bump modified workspace crates so cargo package --locked and crates.io publication succeed without registry collisions.

Build Info

  • Release v0.5.3 from commit d75a9e7600e6ecf6aeac33cb79a92607596b0a38.