Skip to content

CipherVault v1.0.39

Choose a tag to compare

@samuel-1-avson samuel-1-avson released this 05 Dec 14:27
· 40 commits to main since this release
79450e9

CipherVault 1.0.39

Post-quantum release. It ships CV-PQ-1 (hybrid recovery, signatures and
receipts), the CipherChain v5 format as a parallel ledger, the recovery-log
fix for COMPACT-01, and the CLI flags the Hermes plugin 0.8.0/0.8.1 were
waiting on.

  • ⚠ Compatibility break — 1.0.39 is a flag day with 1.0.38 once the
    operator receipt suite is hybrid.
    • 1.0.38-or-older clients cannot push to a 1.0.39 operator running
      hybrid receipts.
      The operator then signs leases, PoS and vouchers as
      hybrid cvpq1:<hex>. The v1.0.38 LeaseReceipt::verify hex-decodes
      signature_hex directly (crates/storage/src/types.rs:149), so cvpq1:
      fails as invalid hex; crates/storage/src/pool.rs:288-294 then returns
      None for that operator, dropping it from quorum, and readback is
      unverified. Confirmed in a local 3-operator demo on 2026-12-05: the
      same 1.0.38 client pushed 3/3 against those operators on legacy
      (exit 0, 0.12 s) and 0/3 on hybrid (exit 1, quorum deficit); same
      client, same vault, same operators, only the receipt suite changed. The
      old client prints no decode error, only the 0/3 quorum deficit. On the
      1.0.39 default (legacy), a 1.0.38 client pushes normally (3/3,
      exit 0), measured in the same demo.
    • 1.0.39 PQ clients against 1.0.38-or-older operators are expected to
      be rejected, because init now defaults software-key vaults to the PQ
      suite and old operators do not understand PQ records. Inferred, not
      tested.
    • 1.0.39 clients verify both legacy Ed25519 and hybrid receipts (PR #99),
      so a 1.0.39 client against a 1.0.39 operator works.
    • Strategy chosen: (c), an operator transition flag. 1.0.39 ships
      CIPHERVAULT_RECEIPT_SUITE=legacy|hybrid on the operator, defaulting to
      legacy, so 1.0.38-and-older clients keep pushing through the rollout.
      Flip to hybrid after every client is on 1.0.39; the flag is also the
      rollback. (a) coordinated flag day is rejected because a push verifies
      all three replicas, so the first upgraded operator would break every old
      client; (b) capability negotiation is deferred to 1.0.40 because it is a
      protocol-visible change and needs its own design.
  • Rollout order.
    1. Before upgrading any operator, check every recovery-log locator for a
      <locator>.pre-compact or <locator>.pre-expire file whose live log is
      missing. 1.0.39 restores one leftover automatically; if both are
      present it fails closed and asks for a fix by hand.
    2. Upgrade every operator on legacy receipts (the 1.0.39 default). This
      also deploys PR #113.
    3. Upgrade clients.
    4. Flip the operators to hybrid and restart them one at a time, checking
      a push after each. Keep legacy as the rollback.
    5. Run ciphervault migrate pq last. PR #113 must be on every operator
      before any client migrates.
  • Post-quantum (CV-PQ-1). Hybrid Ed25519 + ML-DSA-65 signatures and
    X25519 + ML-KEM-768 key encapsulation, with the classical halves kept so a
    break in either primitive is survivable. init --suite pq|legacy makes the
    choice explicit: software-key vaults default to PQ, hardware-token (PIV)
    vaults stay legacy with a warning, and --suite pq with a hardware token
    is refused. migrate pq re-roots a legacy vault, with operator-side
    expiry for old envelopes and objects. Operators issue hybrid cvpq1:
    receipts, and transparency checkpoints carry Ed25519 + ML-DSA-65. The v4
    chain keeps Ed25519 and its wire format; v5/CV-PQ-1 is a separate chain
    and suite.
  • Operator receipt-suite transition flag (PR #125).
    CIPHERVAULT_RECEIPT_SUITE
    selects legacy (bare Ed25519) or hybrid (cvpq1:) receipts for leases,
    PoS receipts and vouchers. Unset means legacy in 1.0.39; an unknown value
    stops startup. GET /v1/info reports receipt_suite. While an operator
    runs legacy, receipt authenticity is classical; flip to hybrid and
    restart once clients are current.
  • What is still not live. The v5 chain is not live on the fleet: no
    multi-host v5 drill has run, multi-validator anchoring still uses the v4
    path, and nothing in code halts v4 production at activation. ADR-017,
    ADR-018, ADR-019, ADR-020, ADR-021 and ADR-022 remain Proposed
    (ADR-015 is Accepted for Phases 1–3; ADR-016 is Implemented for the v5
    format, consensus, ledger, activation and CLI surfaces, with the full
    v4/v5 client explorer still rollout work). 1.0.39
    is not "PQ-complete": historical v1/v2 envelopes remain
    harvest-now-decrypt-later exposed until Phase 3b proves deletion, WebAuthn
    stays hardware-bound and classical, and libp2p Noise remains a classical
    session boundary.
  • COMPACT-01 (PR #123). A compaction interrupted between its two renames
    left a recovery locator with no live log; reads returned nothing, another
    genesis could claim the locator, and the next expiry then deleted the only
    copy. Compaction now writes a durable .pre-compact copy and replaces the
    live log with a single rename, then syncs the parent directory. Every
    locator access restores a log left between renames by an older release; if
    both .pre-compact and .pre-expire exist, the locator fails closed until
    an operator restores one by hand. Five tests with a test-only crash point
    fail on the old code.
  • EXP-03 (PR #111). Expiry no longer leaves .pre-expire (or
    .pre-compact, .expire.tmp, .compact.tmp) copies of a deleted envelope
    on disk; it replaces the live log with one rename and removes the rollback
    files.
  • Other fixes. v4 blocks commit only with every member's signature
    (PR #122, ADR-022); v5 votes are signed at the block time (PR #121,
    ADR-021) and v5 block hashes and quorum certificates are deterministic
    (PR #103); expiry receipts are bound to the suite and the requested
    deletions (PR #105); the legacy purge is gated on receipts with a recovery
    audit (PR #114); and the rusqlite 0.43 busy_handler calls are adapted.
  • Hermes CLI flags and plugin. history --json --limit,
    restore --dry-run --json and status --json --watcher ship in this CLI,
    so plugin 0.8.0's ciphervault_restore_preview, history_limit and
    watcher_health stop returning cli_unsupported. A watcher holds an OS
    lock on .ciphervault/watcher.lock (one watcher per vault), and
    status --json --watcher reports a live process whose worker or loop has
    gone quiet as stalled. Plugin 0.8.2's themed secret-entry destination
    picker is UI-only. The plugin still pins v1.0.38 until the release assets
    exist; re-pinning is a follow-up PR.
  • Dependencies. rusqlite 0.40.2 → 0.43.0 (bundled SQLite 3.53.2,
    busy_handler API adaptation), chacha20poly1305 0.10.1 → 0.11.0,
    curve25519-dalek 4.1.3/5.0.0 → 5.1.0, clap 4.6.8 → 4.6.10,
    tower-http 0.6 → 0.7, base64 0.22 → 0.23, url 2.5.8 → 2.5.9, plus
    ml-kem 0.3.4, kem 0.3.0, sha3 0.12.0, blake2 0.11.0 and cpubits
    0.1.1 for CV-PQ-1.
  • Process note. PRs #111–#122 were merged by admin bypass with no review
    and no CI. GitHub Actions is billing-locked and every job runs 0 steps, so
    the required checks on main (DCO, "Rust Test Suite (ubuntu-latest)",
    Trivy) cannot pass. All verification for this release is local-only.
  • Verified locally (hosted CI is billing-locked, so nothing here was
    validated by CI). Rust workspace on merged main at 79450e9 (Windows):
    cargo fmt --all -- --check and
    cargo clippy --workspace --all-targets --locked -- -D warnings are
    clean; cargo test --workspace ran 126 suites with 1,343 passed, 0 failed
    and 6 ignored, in 11m57s. One earlier run overlapped the release build,
    and the timing-sensitive repair_backfills_under_replicated_object
    (services/operator/tests/swarm_repair.rs) failed; it passed alone in 2s
    and in the clean full rerun. Three
    tests were skipped by name because they hang on this machine for
    environmental reasons: connect_authenticates_before_enrollment_and_keeps_bound_browser_handoff,
    required_mfa_with_null_stdin_exits_without_prompt_or_enrollment and
    cli_exports_pinned_inventory_consumable_after_restart. A disposable
    three-operator 1.0.39 cluster (build 79450e9) was also run on Windows
    localhost: 1.0.39 pushed 3/3 in both legacy and hybrid; 1.0.38 pushed
    3/3 on legacy and 0/3 on hybrid; a PQ vault pushed 3/3; history --json --limit, status --json --watcher and restore --dry-run --json
    all exited 0 with valid payloads. The demo ran with operator strict auth
    and enrollment disabled (disposable localhost only) and no watcher, so the
    production auth posture is unverified. Hermes plugin 267
    passed (7 skipped), MCP 14 passed, Hermes Desktop 12/12, dashboard audit
    passed, version check in sync. cargo deny check was run (the advisory
    database was reachable) and exits 1 on advisories: chrono 0.4.45 is
    flagged unmaintained (RUSTSEC-2026-0543, no safe upgrade) and
    pin-project-lite 0.2.17 is yanked; both are unchanged from v1.0.38 and
    already on main, so this PR does not introduce them. Linux and macOS are
    unverified: the Linux operator is cross-built with zig (8m05, ELF 64-bit)
    and was not run on a real Linux host. The Windows release build produced
    7 executables and its hashes are recorded in the release PR. The release
    assets are signed with release key a5fddec52680cab8 (SHA256SUMS.txt.sig,
    205 bytes) and published on 2026-12-05.