Repository navigation
v0.5.3
·
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 | shManual 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, andgit-remote-htree.exeto your PATH.
Changelog
- A default
cargo install hashtree-cliincludes the Git remote helper. - Link-visible Git clone URLs now end in the repository name so plain
git cloneuses that name for the checkout. - Product releases publish the workspace crates to crates.io.
htree addnow coalesces durable LMDB directory writes into bounded 16 MiB batches instead of committing once per small file.htree pushand auto-push now pre-filter existing blobs withPOST /upload/checkand upload in bounded binary batches (POST /upload/batch-binary), falling back cleanly to singlePUT /uploadon plain Blossom servers without sending wasted batch bodies.htree get,htree load,htree cat, andhtree pinnow fetch in parallel (concurrency = 16), usePOST /blob/batchfor 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), andBlossomStore(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-htreefixes 5 s and 10 s progress-reporter stall bugs inclone/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 withinlist for-push→push, pipelinesgit cat-file, compresses objects in parallel, and reuses unchanged.git/indexsubtrees 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/eventsand trusted-author checks for/api/socialgraph/snapshot; restrict*.iris.localhostvirtual host resolution to loopback requests; checkSec-Fetch-Siteon loopback-only mutation routes and stripAccess-Control-Allow-Origin: *from private API routes; removeunsafe-inlinefrom directory listing CSP, addX-Content-Type-Options: nosniff, and sanitizeContent-Dispositionfilenames; 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 inhtree get,hashtree-nostrsnapshot 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_msaton balance resyncs, validate Cashu token prefixes/mints/limits, and reject malformed non-canonical CBOR/JSON tokens; require0600/0700permissions on newly written keys, auth cookies, and account files. - Storage, FUSE, P2P & parsers: Verify SHA-256 hashes on S3/Blossom/peer reads and
@hashtree/coreverifyTree; capHashTreedeclared size arithmetic,StreamReaderrange bounds,ZlibDecoderdecompression sizes, MessagePack decode collection/depth limits, and@hashtree/indexacronym expansion (eliminating quadratic ReDoS); validate LMDB external pack filenames and file-length bounds; add in-processRwLockprotection forEnvFlags::NO_LOCKhandles; bound FUSE reads/writes and BitTorrent path/size inputs; cap per-peer FIPS TCP connections and frame allocations; sanitizetauri-plugin-hashtree-updaterandhashtree-updaterdownload URLs, filenames, redirects, and release manifest fields; redact S3 credentials fromDebugoutput and tree decryption keys fromhashtree-nostrerror 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-diagnosticsfeature gate on the heavyappend_iobenchmark tests. - Cap
HttpPaidTransportidle connection pooling below the server's HTTP/1 header read timeout to prevent stale keep-alive write errors, and bump modified workspace crates socargo package --lockedand crates.io publication succeed without registry collisions.
Build Info
- Release
v0.5.3from commitd75a9e7600e6ecf6aeac33cb79a92607596b0a38.