Skip to content

chore: bump GroveDB to 6.1.1, h2, rustls, quinn-proto, crossbeam-epoch and rust_decimal for RUSTSEC advisories - #5499

Merged
QuantumExplorer merged 4 commits into
v5.0-devfrom
claude/happy-mendeleev-c25521
Oct 20, 2026
Merged

QuantumExplorer merged 4 commits into
v5.0-devfrom
claude/happy-mendeleev-c25521

Conversation

@QuantumExplorer

@QuantumExplorer QuantumExplorer commented Oct 20, 2026 •

Copy link
Copy Markdown
Member

Basic explanation

What this does: Moves GroveDB (our storage engine) from 6.1.0 to 6.1.1, and a handful of third-party Rust libraries to newer patch releases. No Platform code changes; only the GroveDB pin in Cargo.toml and Cargo.lock. GroveDB 6.1.1 differs from 6.1.0 only in how its optional debugger unpacks its web UI. The third-party libraries are the HTTP/2 layer under gRPC (h2), the TLS library (rustls), the QUIC library used by reqwest (quinn-proto), a memory-reclamation helper used by rayon/moka (crossbeam-epoch), and the decimal library behind fee distribution (rust_decimal).

Value: The nightly "Security: Rust Crates" job (cargo audit) has been red every night for 60+ days. This takes it from 18 reported vulnerabilities to 3, and from 11 warnings to 3. The 3 that remain all come from one zip copy inside rs-tenderdash-abci, which is being fixed there (link below).

Risks: Low. Every bump is semver-compatible and the workspace still compiles with --locked. Nothing here touches consensus code, state, or serialization: GroveDB 6.1.1 is 6.1.0 plus dashpay/grovedb#1023, which only changes the grovedbg debugger feature, and every GroveVersion behaves as in 6.1.0. The largest pulled-in change is aws-lc-sys 0.41 to 0.46 (the native crypto backend rustls 0.23.46 requires), which builds C code and could behave differently on unusual build hosts.

Issue being fixed or feature implemented

cargo +stable audit (cargo-audit 0.22.2, .github/workflows/security-audit-rust.yml) fails on v5.0-dev. It runs only on schedule, so the failures went unnoticed.

What was done?

GroveDB 6.1.1. The nine grovedb* pins in the root Cargo.toml move from fc7028d8 (6.1.0) to 2128ea18 (v6.1.1). The only code change between them is dashpay/grovedb#1023: the grovedbg feature unpacks the bundled GroveDBG web UI with zip 9 instead of zip-extensions 0.13 / zip 6. That removes zip 6.0.0 and zip-extensions from the lockfile and clears its three findings.

# Before
grovedb = { git = "https://github.com/dashpay/grovedb", rev = "fc7028d83114d86f88222e7ff09fc47ae75360f0", default-features = false }
# After
grovedb = { git = "https://github.com/dashpay/grovedb", rev = "2128ea18f9b1c2f9502f99967b1b1c6485c91f8b", default-features = false }

Lockfile bumps. cargo update -p <crate> for each vulnerable crate, plus the yanked/unsound crates that had a free patch release.

Crate Before After Clears
h2 0.4.15 0.4.20 RUSTSEC-2026-0258
rustls 0.23.40 0.23.46 RUSTSEC-2026-0285, -0346, -0348, -0349
quinn-proto 0.11.14 0.11.19 RUSTSEC-2026-0185, -0338, -0339, -0340, -0342
crossbeam-epoch 0.9.18 0.9.21 RUSTSEC-2026-0204
rust_decimal 1.42.1 1.43.0 RUSTSEC-2026-0235 (removes rkyv 0.7.46 from the lockfile)
anyhow 1.0.102 1.0.104 RUSTSEC-2026-0190 (unsound warning)
event-listener 5.4.1 5.4.2 RUSTSEC-2026-0221 (unsound warning)
base58ck, bitcoin-io, bitcoin_hashes 0.1.100, 0.1.100, 0.14.100 0.1.101, 0.1.101, 0.14.101 yanked warnings
chacha20 0.10.0 0.10.2 yanked warning
spin 0.9.8, 0.10.0 0.9.9, 0.10.1 yanked warnings

Pulled along by the above: aws-lc-rs 1.17.0 to 1.18.2, aws-lc-sys 0.41.0 to 0.46.0 and rustls-webpki 0.103.13 to 0.103.15 (required by rustls 0.23.46); rand_pcg (new dependency of quinn-proto 0.11.19); bitcoin-consensus-encoding, bitcoin-internals 0.7 and hex-conservative 1.3 (new dependencies of the non-yanked bitcoin-io/bitcoin_hashes patch releases); zip 9.0.5 and nix 0.31.3 (GroveDB 6.1.1), with zip-extensions, zip 6.0.0 and their dependencies removed.

Why rkyv was in the lockfile at all: no workspace crate enables rust_decimal's rkyv feature, so rkyv 0.7 was never compiled (cargo tree -i rkyv --all-features --target all -e all prints nothing). It sat in Cargo.lock because rust_decimal 1.42's std feature contains the weak feature rkyv?/std, and Cargo records weak-feature optional dependencies in the lockfile even when they are off. rust_decimal 1.43.0 dropped the rkyv 0.7 dependency, so the entry goes away.

cargo audit, before:

error: 18 vulnerabilities found!
warning: 11 allowed warnings found

After:

error: 3 vulnerabilities found!
warning: 3 allowed warnings found

What is left

The 3 remaining findings are RUSTSEC-2026-0367, -0368 and -0369 (zip extraction of symlinks and permission bits) for zip 8.6.0, through tenderdash-proto-compiler (a build dependency of tenderdash-proto, which unpacks the Tenderdash proto sources it downloads). Upstream: dashpay/rs-tenderdash-abci#221 (dependabot, CI green). It needs a merge, a tag, and a tag bump here (rs-drive-abci, rs-drive-proof-verifier, dapi-grpc).

The 3 remaining warnings need a major bump or an upstream change and do not fail the job: lru 0.16 (unsound, fixed in 0.18; a direct dependency of dash-sdk, rs-dapi-client and rs-sdk-trusted-context-provider), scc 2.4 (unsound, fixed in 3.8; through zeromq 0.5.0-pre) and atomic-polyfill (unmaintained; through heapless 0.7).

How Has This Been Tested?

  • cargo check --workspace --locked
  • cargo check -p drive-abci --features grovedbg --locked (the GroveDB code path 6.1.1 changes)
  • cargo +stable audit with cargo-audit 0.22.2 (counts above)

Breaking Changes

None.

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated relevant unit/integration/functional/e2e tests
  • I have added "!" to the title and described breaking changes in the corresponding section if my code contains any
  • I have made corresponding changes to the documentation if needed
  • If I added or changed GroveDB structure, I described it in the area's structure.rs, regenerated grovedb-structure.json, and checked the structure viewer link posted on this pull request

For repository code-owners and collaborators only

  • I have assigned this pull request to a milestone

🤖 Generated with Claude Code

PR Hygiene · da023ee

  • Bots — coderabbitai not yet · thepastaclaw not yet — /skip-bots proceeds without the ones not yet reported
  • Self-review — post /self-reviewed
  • Build running
  • Approvals — you own every area touched; none needed

When every merge requirement is met, the PR Hygiene check passes. Reviewer limits do not block merging; other required GitHub checks and protections still apply.

QuantumExplorer and others added 2 commits October 20, 2026 11:03
… for RUSTSEC advisories

Lockfile-only, semver-compatible updates that clear 12 of the 18
vulnerabilities cargo audit reports on v5.0-dev:

- h2 0.4.15 -> 0.4.20 (RUSTSEC-2026-0258)
- rustls 0.23.40 -> 0.23.46 (RUSTSEC-2026-0285, -0346, -0348, -0349),
  with aws-lc-rs 1.18.2, aws-lc-sys 0.46.0 and rustls-webpki 0.103.15
- quinn-proto 0.11.14 -> 0.11.19 (RUSTSEC-2026-0185, -0338, -0339,
  -0340, -0342)
- crossbeam-epoch 0.9.18 -> 0.9.21 (RUSTSEC-2026-0204)
- rust_decimal 1.42.1 -> 1.43.0, which drops its rkyv 0.7 dependency
  (RUSTSEC-2026-0235). rkyv was never compiled; it sat in the lockfile
  only because rust_decimal's std feature names the weak feature
  rkyv?/std.

Also clears free warnings: anyhow 1.0.104, event-listener 5.4.2, and
non-yanked base58ck, bitcoin-io, bitcoin_hashes, chacha20 and spin.

The remaining 6 findings are zip 8.6.0 (tenderdash-proto-compiler) and
zip 6.0.0 (zip-extensions in grovedb's grovedbg feature), fixed upstream.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions github-actions Bot added this to the v5.0.0 milestone Oct 20, 2026
@coderabbitai

coderabbitai Bot commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 4 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Repository: dashpay/platform/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: c4fdb9c1-0aa2-4ee7-925a-b0257c7d74e2
📥 Commits

Reviewing files that changed from the base of the PR and between cde3ca3 and da023ee.

⛔ Files ignored due to path filters: 1
  • Cargo.lock is excluded by !**/*.lock
📒 Files selected for processing: 1
  • Cargo.toml
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions

github-actions Bot commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Waiting for bot review — coderabbitai not yet · thepastaclaw ✓. Wait for the missing reviews, or a writer can post /skip-bots to proceed without them; blocking findings still need addressing.
Full checklist in the description.

@github-actions github-actions Bot added the waiting-bots Waiting for the review bots to report on this head label Oct 20, 2026
@thepastaclaw

thepastaclaw commented Oct 20, 2026 •

Copy link
Copy Markdown
Collaborator

🕓 Review not started yet because the new head is waiting for the 30-minute push debounce.

  • Request normal review — click when the PR is ready for review.
  • Request priority review — click to move this review to the front of the queue.

Commit da023ee. Normal review starts when eligible; priority review starts as soon as a slot is available.

@thepastaclaw thepastaclaw left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Final validation — Phase 1 + Phase 2

The effective pull-request diff against v5.0-dev is Cargo.lock only, and the dependency re-resolution is consistent with the stated semver-compatible updates. No in-scope correctness, security, consensus, or dependency-direction defect was found; Kotlin validation passed, while the Rust and Swift jobs were skipped by a pre-existing Cargo.lock path-filter gap.

Review provenance

Source: reviewer 1: glm-5.3-flash (agent: phase1-reviewer, role: general); reviewer 2: gpt-6.1-sol (agent: phase2-reviewer, role: general); reviewer 3: gpt-6.1-sol (agent: phase2-reviewer, role: architecture-layering); reviewer 4: gpt-6.1-sol (agent: phase2-reviewer, role: security-auditor); final verifier: gpt-6.1-sol (agent: sol-verifier, role: final-verifier)

  • Triage: low by gpt-6.1-sol (effort low) — The diff is confined to semver-compatible dependency updates in Cargo.lock, making it a contained change without direct modifications to application logic or critical surfaces.
  • Phase 1 reviewers: glm-5.3-flash — general (completed, effort high); agent phase1-reviewer
  • Phase 1 model: glm-5.3-flash — zai quota: 5h 100% left, weekly 99% left; passed over gemini-3.8-flash-high (lane failed)
  • Fresh verifier: gpt-6.1-sol — final-verifier; agent sol-verifier
  • Phase 2 reviewers: gpt-6.1-sol — general (completed, effort medium); agent phase2-reviewer, gpt-6.1-sol — architecture-layering (completed, effort medium); agent phase2-reviewer, gpt-6.1-sol — security-auditor (completed, effort medium); agent phase2-reviewer
Out-of-scope follow-up suggestions (1)

These are valid observations, but they are outside this PR's scope and should be handled in separate issues or author/maintainer-requested PRs rather than blocking this review.

  • Lockfile-only dependency updates do not trigger Rust or Swift validation jobs — The Rust package filter does not include Cargo.lock, and the Rust workspace job requires either a non-empty package filter or a workflow change, so this lockfile-only pull request skips the workspace tests even though the scope heuristic separately recognizes Cargo.lock as requiring a full run. The Swift SDK filter also omits Cargo.lock, so the aws-lc-sys and related native dependency changes receive no Swift build validation.
    • Follow-up: Update the CI path filters to include Cargo.lock for the Rust workspace and Swift SDK jobs, or add an explicit dependency-update trigger.

QuantumExplorer and others added 2 commits October 20, 2026 16:03
GroveDB 6.1.1 (2128ea18) is 6.1.0 plus dashpay/grovedb#1023: the
grovedbg feature unpacks the bundled GroveDBG UI with zip 9 instead of
zip-extensions 0.13 / zip 6, which RUSTSEC-2026-0367, -0368 and -0369
cover. zip 6.0.0 and zip-extensions leave Cargo.lock, taking cargo audit
from 6 vulnerabilities to 3 (all zip 8.6.0 via tenderdash-proto-compiler).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@QuantumExplorer QuantumExplorer changed the title chore: bump h2, rustls, quinn-proto, crossbeam-epoch and rust_decimal for RUSTSEC advisories chore: bump GroveDB to 6.1.1, h2, rustls, quinn-proto, crossbeam-epoch and rust_decimal for RUSTSEC advisories Oct 20, 2026
@github-actions

github-actions Bot commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Waiting for bot review — coderabbitai not yet · thepastaclaw not yet. Wait for the missing reviews, or a writer can post /skip-bots to proceed without them; blocking findings still need addressing.
Full checklist in the description.

@QuantumExplorer
QuantumExplorer merged commit 52a5119 into v5.0-dev Oct 20, 2026
23 of 24 checks passed
@QuantumExplorer
QuantumExplorer deleted the claude/happy-mendeleev-c25521 branch October 20, 2026 13:19
thepastaclaw pushed a commit to thepastaclaw/platform that referenced this pull request Oct 27, 2026
Brings 5.0.0-rc.5, rc.6 and rc.7 (v5.0-dev 79693ec) into v5.1-dev.

Conflict resolutions:
- Cargo.toml: GroveDB moves to 6.1.1 (2128ea18, dashpay#5499; fast-forward of
  fc7028d8). rust-dashcore stays on dev aca02026; v5.0-dev's v0.45.0 pin
  (d631aaca) is not taken.
- Cargo.lock: v5.1-dev's lockfile, re-resolved for GroveDB 6.1.1, with
  dashpay#5499's RUSTSEC bumps replayed via cargo update --precise (h2 0.4.20,
  rustls 0.23.46, rustls-webpki 0.103.15, quinn-proto 0.11.19,
  crossbeam-epoch 0.9.21, rust_decimal 1.43.0, anyhow 1.0.104,
  event-listener 5.4.2, chacha20 0.10.2, spin 0.9.9).
- CHANGELOG.md: [Unreleased] on top, then the rc.7, rc.6 and rc.5 entries.
- rs-dpp serialization/mod.rs: keeps v5.1's dashcore module gate and takes
  dashpay#5498's serde-conversion gate for the json module.
- rs-sdk dpns_usernames, put_document: dashpay#5409's ResponseMetadata import with
  v5.1's dpp::secp256k1 rand imports.
- platform-wallet masternode/update_service.rs (dashpay#5408, dashpay#5497): v5.0's file
  ported to dpp::bls. rust-dashcore dev does not expose the coinbase of
  applied masternode list diffs, so the coinbase source is optional: with
  none, V24 is read from the list alone (any version-3 entry), as dashpay#5408
  did, instead of refusing every legacy evonode update.
- platform-wallet spv/runtime.rs: masternode_list_entries reads through
  DashSpvClient::latest_masternode_list (the engine is crate-private on
  dev); latest_coinbase is not carried over.
- platform-wallet platform_wallet_traits.rs: both branches forwarded
  unrecorded_spend_heights and note_chain_lock_height; one forward each is
  kept, and the tests of both branches.
- platform-wallet identity/network/profile.rs: v5.1's rs-sdk profile path
  (dashpay#5470). dashpay#5409's proven-balance persistence for profile writes follows in
  a separate commit.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@Claudius-Maginificent Claudius-Maginificent mentioned this pull request Nov 16, 2026
13 of 16 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

waiting-bots Waiting for the review bots to report on this head

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants