Skip to content

v1.6.5 — Security & correctness fixes

Choose a tag to compare

@pavondunbar pavondunbar released this 02 Nov 18:56
· 14 commits to main since this release

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