Repository navigation
Releases
v1.8.5 — SDK login fix, web gateway & investigation UI, vledger export, security fixes
What's Changed
Client SDKs can log in (Python, Go, TypeScript)
Release builds of the server require an auth frame first and a session token on every request. None of the three SDKs sent either, so every query was refused. All three now take username/password (Go: Options.Username/Password), log in on connect and on reconnect, and raise VledgerAuthError on bad credentials.
Also fixed: Python with VledgerClient.connect(...) opened a stray connection to the default host and port; Go TLSCACert was documented but never loaded; Go Balance failed on the string cells the server returns; verify_chain errors now include the server's integrity-failure message.
Web gateway and investigation UI
gateway/server.mjs: dependency-free Node gateway that holds the TLS connection tovledger startand serves a read-only HTTP API plusindex.htmlon the same origin. Users sign in with their own ledger account; only fixed, validated statements are sent. Seegateway/README.md.index.html: when served by the gateway, entries are fetched from the ledger and ledger-derived fields are locked. Opened from disk, it runs in clearly labelled demo mode.
New
vledger export: accounts, balances, entries and lines to CSV/JSONL with a BLAKE3 manifest. Works on every tier, verifies the hash chain first, refuses to overwrite. NewLedgerExportedaudit event.DECOMMISSION.md: exporting, archiving and removing a deployment, including after a license lapses.
Fixes
- Restore of backups taken from a symlinked or relative data directory (archive names are now relative to the canonical data dir). Re-take affected backups;
tar tf <archive>should showwal/…, notwal//…. - Kani harnesses build again (imports restored under
#[cfg(kani)]); all 21 proofs verify. - Clippy lints for Rust 1.100.
Security / dependencies
url2.5.8 → 2.5.9: RUSTSEC-2026-0592 (stack overflow inUrl::origin()on nestedblob:URLs).rusqlite0.31 → 0.43 (libsqlite3-sys0.40): RUSTSEC-2026-0459.
Upgrade notes
No schema migration or data-directory changes. SDK users must now pass credentials.
Assets
Six tarballs (Linux glibc and fully static musl for x86_64 and ARM64, macOS x86_64 and Apple Silicon), each containing the single vledger binary, plus vledger-v1.8.5-checksums.txt. Built locally; this release has no cosign signature or SBOM. Verify with sha256sum -c vledger-v1.8.5-checksums.txt.
v1.8.0 — vledger ingest subcommand, systemd deployment, docs
What's Changed
vledger ingest — First-Class CLI Subcommand
The ingestion pipeline is now built into the main vledger binary alongside vledger start and vledger mcp. No separate binary needed.
# Scripted / systemd (token from env var)
vledger ingest --data-dir ./data --source banno
# Explicit token
vledger ingest --data-dir ./data --token $TOK --user-id $UID
# Interactive OAuth (opens browser)
vledger ingest --data-dir ./data --source banno --audit-package ./audit.jsonToken resolution order: --token flag → BANNO_ACCESS_TOKEN env var → interactive OAuth browser flow.
systemd Deployment
Three unit files, one binary:
vledger.service—vledger startvledger-mcp.service—vledger mcp(depends on vledger.service)vledger-ingest.service—vledger ingest(Type=oneshot, depends on vledger.service)
All three read BANNO_ACCESS_TOKEN and BANNO_USER_ID from EnvironmentFile=/opt/vledger/auth/token.env, written by the OAuth helper script after each authentication.
Banking Connector Framework (carried from v1.7.5)
vledger-banking-core— vendor-agnosticCoreBankingConnectortrait and normalized typesvledger-banno-connector— Jack Henry Banno Consumer API connector (OAuth 2.0 + PKCE)vledger-ingest— ingestion pipeline library
Documentation
OPERATIONS.md§5: fullvledger ingestCLI reference with flags table and env var referenceOPERATIONS.md§24: systemd deployment section with all three unit files and demo flowREADME.md: Banking Connectors section and changelog updatedSECURITY.md§22: Banking Connector Security updated
Verify this release
sha256sum -c vledger-v1.8.0-checksums.txtUpgrade from v1.7.5
No schema migrations or data directory changes required. The vledger-ingest standalone binary is superseded by vledger ingest. Update any scripts or systemd unit files to use vledger ingest instead of vledger-ingest.
v1.7.5 — Banking Connector Framework, Jack Henry Integration, Docs
What's Changed
New — Banking Connector Framework
Three new crates ship with this release, enabling external banking data to flow into VectorLedger's cryptographic ledger engine:
vledger-banking-core
CoreBankingConnectortrait — vendor-agnostic interface any connector implementsNormalizedAccount,NormalizedTransaction,IngestRecord— shared normalized types- Currency-aware
MinorUnitsdecimal parser (handles all Jack Henry string amounts) - 15 unit tests
vledger-banno-connector
- Jack Henry Banno Consumer API connector implementing
CoreBankingConnector - Full OAuth 2.0 Authorization Code + PKCE flow with local redirect server
- Account and transaction fetch with correct scope strings
- Field mapping from Jack Henry JSON to normalized types
- 21 unit tests including PKCE vector verified against Jack Henry's own test tool
vledger-ingest
- CLI binary and library for the full ingestion pipeline
- Account provisioning with
EXTERNAL_TRANSFERcontra-account management - Double-entry journal entry posting with idempotency keys (safe to run on schedule)
- BLAKE3 chain verification after every run
- Ed25519-signed Merkle audit package generation
- Formatted terminal ingestion report
- 4 unit tests
Security
- Brute-force protection confirmed via source audit: four independent layers (per-IP token bucket, per-username lockout, exponential back-off, per-connection attempt cap) — documented in
SECURITY.md§14 RUSTSEC-2026-0038rationale documented inaudit.toml- Banking connector security documented in
SECURITY.md§22
Bug Fixes
- Ingestion pipeline
Skippedcounter now correctly reflects idempotent re-runs usingentry_count()before/after comparison
Validated End-to-End
Tested against Jack Henry Banno Garden: 2 accounts, 2 transactions ingested, BLAKE3 chain verified, Ed25519-signed audit package produced. Idempotency confirmed — Merkle root identical across multiple runs.
Repository
Canonical URL: https://github.com/VectorGuard-Labs/VectorLedger
Verify this release
sha256sum -c vledger-v1.7.5-checksums.txtUpgrade from v1.7.0
No schema migrations or data directory changes required. The three new crates are additive — existing deployments are unaffected. See OPERATIONS.md §24 for the full banking connector operations runbook.
v1.7.0 — Security Audit, Brute-Force Documentation, Advisory Hygiene, Repo Migration
What's Changed
Security
-
Brute-force protection confirmed and documented: A full source audit of
crates/vledger-serverconfirmed four independent, layered auth-protection mechanisms in the release binary:- Per-IP token-bucket rate limiter (burst=10, refill=2/sec) at the TCP accept loop — excess connections dropped before TLS or Argon2 work begins
- Per-username account lockout after 5 consecutive failures with 5-minute cooldown
- Exponential back-off delay (200 ms → 3 000 ms, capped) server-side after every failure
- Per-connection attempt cap of 5 — connection forcibly closed, requiring TCP reconnect
The pgwire server (port 5432) has its own matching per-IP token bucket. Fully documented in
SECURITY.md§14. -
audit.toml—RUSTSEC-2026-0038rationale documented: TherssnJIT/CFFI code-injection advisory (CVE-2026-30960, CVSS 9.4) is suppressed becauserssnis not a direct or transitive dependency of VectorLedger (confirmed viacargo tree). Full rationale and re-evaluation instructions added. DuplicateRUSTSEC-2025-0141ignore entry removed.
Repository
- Moved to VectorGuard Labs organisation: Canonical URL is now
https://github.com/VectorGuard-Labs/VectorLedger. All documentation, install scripts, cosign identities, and the Go client module path updated.
Verify this release
sha256sum -c vledger-v1.7.0-checksums.txtUpgrade notes
No schema migrations or data directory changes required. See OPERATIONS.md for full upgrade notes.
Go module path change: Update go.mod from github.com/pavondunbar/VectorLedger/clients/go/vledger to github.com/VectorGuard-Labs/VectorLedger/clients/go/vledger and run go mod tidy.
v1.6.6 — prove_entry stream fix + README updates
v1.6.6
Addresses five post-release findings identified during external audit review of v1.6.5.
Code fix — Finding A: prove_entry() stream error now propagates
The same .ok() pattern fixed in generate() in v1.6.5 was also present in prove_entry(). A mid-stream SQLite read failure previously silently truncated the Merkle tree. The function would then fail with a misleading root-mismatch error instead of the true underlying database error — and if the requested entry happened to be encountered before the failure point, the function would continue computing and writing a proof against an incomplete tree.
stream_entries().ok() is now stream_entries().context(...)? — errors propagate immediately and abort proof generation on partial data.
Documentation fix — Finding E: README version references
All v1.6.0 references updated to v1.6.5:
- Version badge in header
- Binary download table (filenames and
wgetURLs) - SHA-256 checksum verification command
- cosign signature verification command (certificate identity tag ref)
- MCP health endpoint example output
- New v1.6.5 changelog section added covering all four v1.6.5 fixes
Tracked for follow-on releases (Findings B, C, D)
- B — Merkle leaf accumulation is unbounded in memory; an incremental accumulator is needed for ledgers approaching 25M entries
- C — HSM AAD integration tests needed across SoftHSM, AWS CloudHSM, and Azure HSM backends to demonstrate cryptographic context-binding end-to-end
- D — Dedicated regression tests for all four v1.6.5 fixes (stream error injection, AAD mismatch, Go TLS nil/true/false, TypeScript opt-out warning path)
Verify downloads
shasum -a 256 -c vledger-v1.6.6-checksums.txt
Note: Linux glibc binaries (
linux-x86_64,linux-aarch64) will be added once CI capacity is available. musl static binaries (-musl) are fully self-contained and work on all Linux distributions including Alpine and distroless containers.
v1.6.5 — Security & correctness fixes
v1.6.5
Four security and correctness bugs fixed, identified during a full codebase audit.
Fixes
1. Audit package: stream errors no longer silently discarded
generate() in audit_package.rs previously called .ok() on stream_entries(), silently swallowing any SQLite read error mid-stream. This could produce an audit package with an incorrect Merkle root that still passed signature verification. Errors now propagate and abort package generation.
2. HSM AAD now forwarded end-to-end
The aad parameter in KeyProvider::encrypt_data / decrypt_data was silently dropped and never sent to the HSM. An optional aad field (hex-encoded) has been added to HsmRequest::Encrypt and HsmRequest::Decrypt in the wire protocol, and threaded through HsmClient, Pkcs11Provider, and all three HSM backends (SoftHSM, AWS CloudHSM, Azure HSM).
3. Go client: UseTLS: false now respected
Options.UseTLS changed from bool to *bool. The previous applyDefaults() forced TLS on unconditionally. A nil pointer now means the default (TLS on); an explicit false is honoured. Added BoolPtr() helper.
4. TypeScript client: rejectUnauthorized: false now warns instead of throwing
Operator precedence bug: !resolved.rejectUnauthorized === false was parsed as (!rejectUnauthorized) === false, making the warn-but-allow branch dead code. Fixed to resolved.rejectUnauthorized === false.
Verify downloads
shasum -a 256 -c vledger-v1.6.5-checksums.txt
v1.6.0 — Fix 5 partial financial invariants + musl builds
v1.6.0
What's new
#38 Reconciliation evidence retention
Every vledger reconcile run now persists an append-only ReconciliationRecord to the WAL (table_id=4) with run UUID, timestamp, entries scanned, discrepancy details, and chain tip at run time. History survives restarts via deterministic WAL replay.
#39 Retention policy scheduling
The server background task scheduler now includes a daily retention evaluator. It reads catalog/retention\_policy.json and writes a RETENTION\_EVAL event to the WORM audit log — a durable compliance paper trail. No data is deleted (the ledger is append-only WORM by design).
#40 Snapshot isolation
New LedgerStore methods: current\_snapshot() (SeqCst sequence fence), balance\_at\_snapshot(), and entries\_at\_snapshot() provide consistent point-in-time reads without blocking concurrent writers.
#41 Database-enforced constraints + append-only triggers (SQLite schema v2)
Automatic migration 1→2 adds CHECK constraints (sequence > 0, status enum, length(content\_hash)=64, length(chain\_hash)=64) and BEFORE UPDATE / BEFORE DELETE triggers that fire RAISE(ABORT) on any mutation attempt — enforcing append-only at the database layer, not just the application layer.
#42 Alert channels
New AlertChannel trait with WebhookAlertChannel (Slack/PagerDuty/Teams/generic, auto-detected by URL). Configured via catalog/alerts.json. Background monitors now route critical failures to all configured channels. Falls back to log-only when unconfigured.
musl static builds
New linux-x86\_64-musl and linux-aarch64-musl targets — fully statically linked, no glibc dependency. Ideal for Alpine Linux, distroless containers, and systems with non-standard libc.
Upgrade notes
SQLite schema migrates automatically from version 1 → 2 on first start. No manual steps required. Verify with: PRAGMA user\_version → should return 2.
Checksums
See vledger-v1.6.0-checksums.txt attached to this release.
v1.5.7 — UNIQUE(idempotency_key) database constraint + schema migration
What's in this release
Database-layer idempotency constraint
Adds UNIQUE(idempotency_key) to the entries table, promoting the duplicate-entry guarantee from application-layer-only to dual-layer enforcement.
Before v1.5.7: The only guard against duplicate idempotency keys was an explicit idempotency_key_exists() check inside post_entry(), running under the exclusive RwLock write guard. Correct within a single process, but invisible at the database layer and not durable against future multi-host deployments. There was no UNIQUE constraint in the schema — only a non-unique index.
From v1.5.7: The constraint is enforced at two independent layers:
- Application layer:
idempotency_key_exists()check inpost_entry()(returns existing sequence to caller — no error) - Database layer:
UNIQUE(idempotency_key)constraint in SQLite (INSERT OR IGNOREsilently skips a duplicate)
Automatic migration — no operator action needed. On first start after upgrade, the server runs a one-time schema migration (version 0 → 1) using SQLite's rename-create-copy-drop pattern in a single atomic transaction. PRAGMA user_version tracks the migration level. The migration is idempotent and crash-safe.
New tests
| Test | What it proves |
|---|---|
schema_version_is_current |
PRAGMA user_version == 1 after open — migration ran |
database_unique_constraint_prevents_duplicate_without_app_layer_check |
Bypasses post_entry entirely; inserts two entries with the same idempotency_key directly via EntryDb::insert(); asserts count stays at 1 |
Total test count: 525 (523 pre-existing + 2 new). Zero failures.
Download
⚠️ Use the exact filenames below. Archives use Rust target triple naming.linux-aarch64returns 404 — the correct name isaarch64-unknown-linux-gnu.✅ Tarballs are clean — built with
COPYFILE_DISABLE=1; no macOS xattr warnings on Linux extraction.
| Platform | wget command |
|---|---|
| Linux x86_64 | wget https://github.com/pavondunbar/VectorLedger/releases/download/v1.5.7/vledger-v1.5.7-x86_64-unknown-linux-gnu.tar.gz |
| Linux ARM64 | wget https://github.com/pavondunbar/VectorLedger/releases/download/v1.5.7/vledger-v1.5.7-aarch64-unknown-linux-gnu.tar.gz |
| macOS ARM64 | wget https://github.com/pavondunbar/VectorLedger/releases/download/v1.5.7/vledger-v1.5.7-aarch64-apple-darwin.tar.gz |
| macOS x86_64 | wget https://github.com/pavondunbar/VectorLedger/releases/download/v1.5.7/vledger-v1.5.7-x86_64-apple-darwin.tar.gz |
Checksums
988ee134dcdccf1814657d4329d0488188ed4e4fac0b5cab6005d4d9aed3296b vledger-v1.5.7-x86_64-unknown-linux-gnu.tar.gz
23e6ca8f5e6b6798ac0c4c18650d6df223d338acb3d1549df30d74e6769683c8 vledger-v1.5.7-aarch64-unknown-linux-gnu.tar.gz
72929448da610c03f723f50d84e682d3708d3dcdf0fb75116a4a5b824999b6c7 vledger-v1.5.7-aarch64-apple-darwin.tar.gz
6efea95da18d225886b84f016a7d8e73aafb50ebafb4ae9fb31801d20b706d54 vledger-v1.5.7-x86_64-apple-darwin.tar.gz
See SECURITY.md §19 for the full advisory and README.md changelog for the full history.
v1.5.6 — Correction concurrency tests + TOCTOU investigation
What's in this release
Concurrency investigation: execute_correction TOCTOU race (no exploitable bug found)
Following community review by @SmallFounder (Christopher Lee, Oct 2026), we formally investigated and tested the execute_correction concurrent-call race condition.
The race window is real. execute_correction makes 4 independent SQL calls — each acquires and releases the Arc<RwLock<LedgerStore>> write lock separately — with no spanning lock across the pre-flight existence check and the two INSERT writes. Two concurrent callers can both observe "nothing applied yet" and both proceed to write.
No exploitable bug. The protection is post_entry's idempotency key check, which runs atomically under &mut LedgerStore (the exclusive write lock). Because execute_correction always sets deterministic idempotency_key values derived from the original entry UUID, the second concurrent caller's INSERT silently returns the first caller's sequence number — no duplicate entry is written.
The loser receives the winner's result. Per the design goal raised in community review: the losing concurrent caller receives the winner's (reversal_seq, correction_seq), not an error, so the agent has no reason to retry.
New tests: 5 concurrency tests in correction_concurrency_tests.rs
| Test | Scenario |
|---|---|
concurrent_correction_idempotency |
20 tasks from a Tokio barrier → exactly 3 entries, never duplicates |
correction_loser_receives_winner_result_not_error |
Loser gets winner's sequences, not an error |
partial_correction_recovery_only_missing_half_written |
Crash between reversal + correction writes → retry posts only the missing half |
correction_does_not_disturb_unrelated_entries |
Append-only: content_hash/chain_hash of unrelated entries not mutated |
high_concurrency_correction_stress_50_tasks |
50 concurrent callers → 3 entries, all 50 return same result, chain intact |
Total test count: 523 (518 pre-existing + 5 new). Zero failures.
Download
⚠️ Use the exact filenames below. Archives use Rust target triple naming.linux-aarch64returns 404 — the correct name isaarch64-unknown-linux-gnu.✅ Tarballs are clean — macOS extended attributes (
LIBARCHIVE.xattr.com.apple.*) have been stripped. GNU tar on Linux will extract without warnings.
| Platform | wget command |
|---|---|
| Linux x86_64 | wget https://github.com/pavondunbar/VectorLedger/releases/download/v1.5.6/vledger-v1.5.6-x86_64-unknown-linux-gnu.tar.gz |
| Linux ARM64 | wget https://github.com/pavondunbar/VectorLedger/releases/download/v1.5.6/vledger-v1.5.6-aarch64-unknown-linux-gnu.tar.gz |
| macOS ARM64 | wget https://github.com/pavondunbar/VectorLedger/releases/download/v1.5.6/vledger-v1.5.6-aarch64-apple-darwin.tar.gz |
| macOS x86_64 | wget https://github.com/pavondunbar/VectorLedger/releases/download/v1.5.6/vledger-v1.5.6-x86_64-apple-darwin.tar.gz |
Checksums
f384b6e88c0c39d6855c48597fe521df14bf07b76d04dc42587d164a9b7cbf47 vledger-v1.5.6-x86_64-unknown-linux-gnu.tar.gz
664d12f720f29c7495e87295fe500116990674f59309929afe735f17dc1d2b62 vledger-v1.5.6-aarch64-unknown-linux-gnu.tar.gz
2e84b9bf901c3fdff7657de6a5d0443df901cfcf6ffe69448f0b8c2e6388e1ff vledger-v1.5.6-aarch64-apple-darwin.tar.gz
db65616ab039904d6bfb09e02f7851d64bff48c4e3f90d1de664891458031b46 vledger-v1.5.6-x86_64-apple-darwin.tar.gz
See SECURITY.md §19 for the full concurrency investigation writeup and README.md changelog for the full history.
v1.5.5 — Security fix: MCP SQL injection vulnerabilities
Security fixes
This release patches three injection vulnerabilities discovered in the MCP server layer (crates/vledger-mcp). All users running the MCP server on v1.5.4 or earlier are strongly encouraged to upgrade.
CVE-1 — Unescaped date strings in summarize_period / audit_report (High)
User-supplied from/to date parameters were interpolated into SQL WHERE clauses without sanitization, allowing filter-bypass attacks that could expose cross-tenant summary data and audit report entries.
Fix: validate_iso8601_timestamp() whitelist validator applied in both tools.rs and network.rs. Any character outside [0-9\-:TZ+] is rejected before SQL construction.
CVE-2 — LIKE wildcard injection in resolve_account (Medium)
The metadata LIKE search escaped single-quotes only, leaving % and _ wildcards unescaped, allowing search result manipulation.
Fix: escape_like() helper escapes \, %, and _; ESCAPE '\' added to the SQL clause.
CVE-3 — FTS5 operator injection in search_metadata (Medium)
FTS5 operator characters (*, ^, -) were not stripped from user input before phrase-quoting, allowing result-set manipulation via injected FTS5 operators.
Fix: Operator characters filtered from input before phrase-quoting in entry_db.rs.
Checksums
97781a91b7b656633cbf1f304df3c4642bb8cf6d59219d8faa982df6fb215322 vledger-v1.5.5-x86_64-unknown-linux-gnu.tar.gz
3ae7a123eec199a881afd23ab1b674bb7f51358c434e6ea3cc6a54cf8a95a825 vledger-v1.5.5-aarch64-unknown-linux-gnu.tar.gz
ece1ab29a97d7c966be37ff0c2e95afb72ea2c4f8f015505b9fb376cd14f0e11 vledger-v1.5.5-aarch64-apple-darwin.tar.gz
7bea2a59a373b4a91b0aa4f1f05e5e4b1b24bf3e51acd9341a58a9900952564b vledger-v1.5.5-x86_64-apple-darwin.tar.gz
Full changelog
See SECURITY.md for the complete advisory and README.md for the full changelog.