Skip to content

fix(deps): clear dependabot security alerts (12 of 13) - #161

Merged
imlk0 merged 2 commits into
masterfrom
depbot-security
Oct 30, 2026
Merged

imlk0 merged 2 commits into
masterfrom
depbot-security

Conversation

@imlk0

@imlk0 imlk0 commented Oct 29, 2026 •

Copy link
Copy Markdown
Collaborator

What

Updates the vulnerable dependencies behind the 12 fixable dependabot alerts on master (4 high, 3 medium, 5 low) and leaves the 13th (time) open with a reason. Also switches shadow-rs to its external-git mode to drop libgit2 from the build entirely.

Closes 12 alerts: rustls 0.23.23 → 0.23.46 (pulls rustls-webpki 0.102.8 → 0.103.16, clearing all four webpki alerts), quinn 0.11.5 → 0.11.12 and quinn-proto 0.11.8 → 0.11.19 (both high), rsa 0.9.8 → 0.9.10, bytes 1.8.0 → 1.12.1, rand 0.8.5 → 0.8.8, fuser 0.13.0 → 0.16.0 (high, GHSA-cvmj-47v9-35m9), and git2 — removed from the dependency graph outright (see below).

Why these matter

  • rustls / rustls-webpki: real runtime exposure. This is the outbound TLS path (reqwest with rustls-tls) used by KMS and attestation. The advisories let a hostile TLS server get a wrongly-constrained certificate accepted.
  • quinn-proto: not compiled in any build target (reqwest's quic feature is never enabled), so the alerts were lockfile-only noise, but the bump clears them regardless.
  • fuser: the advisory lives in the libfuse feature, which this build does not enable (pure-Rust /dev/fuse backend), so the bug was not reachable. Still worth clearing properly.
  • git2 / time: build-script-only dependencies (shadow-rs), zero runtime exposure.

Code changes

  • verity-fuse/src/filesystem.rs: Filesystem::getattr gained the file-handle argument introduced in fuser 0.15. One-line signature update; everything else (mount2, MountOption, FileAttr, reply types) is unchanged in 0.16.
  • Cargo.toml: fuser 0.13 → 0.16; shadow-rs 0.35.2 → 0.38.1; again with default-features off, which removes the abandoned rand 0.7 line from the tree entirely (only fixed/exponential backoff is used, the randomized jitter was never exercised).
  • build scripts: shadow-rs's deprecated new() replaced with ShadowBuilder::builder().build().

git2 and libgit2 removed from the build

The build scripts no longer enable shadow-rs's default git2 feature; git metadata (branch, commit, tag) now comes from the git CLI at build time instead of linking libgit2-sys. The generated build-info constants are identical when building from a git checkout (--version output verified), non-git trees such as release tarballs already fell back to empty values in both modes, and every environment that compiles the binaries installs git. This drops git2 and libgit2-sys from Cargo.lock entirely, clearing the git2 advisory by removal and cutting the libgit2 C compilation out of every cargo build.

Not fixed

The time advisory (GHSA-r6v5-fh4h-64xc) stays open: every patched release requires Rust 1.88 while the toolchain is pinned at 1.85.0. Fixing it means a toolchain bump, which should be its own change. Build-only dependency, no runtime exposure. (Note: shadow-rs's time dependency is unconditional in 0.38 and lives under its build feature in 1.x, so the external-git switch above does not remove it.)

Verification

  • cargo fmt --check, cargo build, make clippy: clean, zero warnings
  • cargo test -p cryptpilot-verity -p verity-core -p verity-fuse: pass
  • make test in cryptpilot-verity (format/dump/verify/open/FUSE mount/tamper/close integration suite): pass, including real mounts through fuser 0.16

@ostest-bot

Copy link
Copy Markdown

@imlk0 ,您好,您的请求已接收,请耐心等待结果。

@ostest-bot

Copy link
Copy Markdown

@imlk0 ,您好,未检测到有镜像需要构建,如需重新检测请评论 /start 。

@ostest-bot

Copy link
Copy Markdown

@imlk0 ,您好,您的请求已接收,请耐心等待结果。

@ostest-bot

Copy link
Copy Markdown

@imlk0 ,您好,未检测到有镜像需要构建,如需重新检测请评论 /start 。

@ostest-bot

Copy link
Copy Markdown

@imlk0 ,您好,您的请求已接收,请耐心等待结果。

@ostest-bot

Copy link
Copy Markdown

@imlk0 ,您好,未检测到有镜像需要构建,如需重新检测请评论 /start 。

imlk0 added 2 commits October 30, 2026 14:13
Lockfile updates: rustls 0.23.23 -> 0.23.46 (pulls rustls-webpki
0.102.8 -> 0.103.16), quinn 0.11.5 -> 0.11.12, quinn-proto 0.11.8 ->
0.11.19, rsa 0.9.8 -> 0.9.10, bytes 1.8.0 -> 1.12.1, rand 0.8.5 ->
0.8.8, git2 0.19.0 -> 0.20.4. These close the rustls/rustls-webpki
certificate-validation advisories on the outbound TLS path (KMS,
attestation) plus the quinn-proto, rsa, bytes and git2 alerts.

fuser 0.13 -> 0.16 fixes GHSA-cvmj-47v9-35m9 (high). The advisory
lives in the libfuse feature, which this build does not enable, but
the bump clears the alert properly. The only code change is the
file-handle argument added to Filesystem::getattr in 0.15. The build
keeps using the pure-Rust /dev/fuse backend.

shadow-rs 0.35.2 -> 0.38.1 unblocks the git2 bump; its deprecated
new() is replaced by ShadowBuilder::builder().build().

The rand 0.7 line is removed by turning off again's default
features: only fixed and exponential backoff are used, so the
optional randomized-jitter dependency disappears from the tree.

The time advisory (GHSA-r6v5-fh4h-64xc) remains open: every patched
release requires Rust 1.88 while the toolchain is pinned at 1.85.0.

Assisted-by: Claude:glm-5.3
Signed-off-by: Kun Lai <laikun@linux.alibaba.com>
Turn off shadow-rs's default git2 feature in the build scripts: git
metadata now comes from the git CLI at build time instead of linking
libgit2-sys. The generated constants are unchanged when building from
a git checkout, and non-git trees (release tarballs) already fell
back to empty values. Every environment that compiles the binaries
installs git, and a missing git binary degrades the same way instead
of failing the build.

This drops git2 and libgit2-sys from the dependency graph entirely,
removing the C library compilation from every cargo build.

Assisted-by: Claude:glm-5.3
Signed-off-by: Kun Lai <laikun@linux.alibaba.com>
@ostest-bot

Copy link
Copy Markdown

@imlk0 ,您好,您的请求已接收,请耐心等待结果。

@ostest-bot

Copy link
Copy Markdown

@imlk0 ,您好,未检测到有镜像需要构建,如需重新检测请评论 /start 。

@imlk0
imlk0 merged commit c8a8408 into master Oct 30, 2026
10 of 14 checks passed
@imlk0
imlk0 deleted the depbot-security branch October 30, 2026 06:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants