Repository navigation
Drop libsql's unused remote/tls features and refresh plist to clear 6 audit advisories - #1864
Conversation
… audit advisories (closes #1743) libsql's `remote`/`sync`/`replication`/`tls` default features pull in hyper-rustls -> rustls 0.22 -> rustls-webpki 0.102.8 (4 advisories), even though the codebase only ever opens a local embedded database (`Builder::new_local`). Scoping the dependency to `default-features = false, features = ["core"]` drops that whole branch of the tree. Separately, `cargo update -p plist` alone (no tauri version bump needed) picks up plist 1.10.0's `quick-xml ^0.41.0` requirement, clearing the 2 quick-xml DoS advisories tauri 2.11.2 was pinning via `^1` on plist. .cargo/audit.toml's ignore list is now empty; cargo audit reports zero vulnerabilities. Co-Authored-By: Claude <[email protected]>
Code Review SummaryNet positive, ship it. This is a clean, well-verified dependency-scoping fix that clears all 6 tracked advisories with a smaller, lower-risk mechanism than the issue anticipated — and the PR does the work of proving that mechanism is sound rather than just asserting it. I independently re-derived every load-bearing claim from source (vendored Requirements CheckIssue #1743's own summary states the goal plainly: "This issue tracks those bumps" in service of clearing 6 accepted-with-tracking advisories. The checklist items ("bump libsql to a rustls 0.23 release," "when a tauri release advances plist's quick-xml") are the issue author's anticipated mechanism, written under the assumption (stated explicitly: "Fixing requires bumping libsql...") that no smaller fix existed. That assumption turned out to be false in both cases:
This is YAGNI/"means vs. ends" applied correctly, not scope drift: the literal checklist boxes are unchecked, but the acceptance criterion that matters — advisories cleared, ignore list empty — is met, and met with less risk than the prescribed path (no libsql major-version behavioral change to validate, no waiting on an upstream tauri release). The deviation is disclosed thoroughly in three places (PR description, 🟢 Verified: FindingsCritical IssuesNone. Suggested ImprovementsNone blocking. See nits below for optional follow-ups. Correctness of the security fix🟢 Sound. I read the vendored WAL mode and the Regression risk🟢 None found. Grepped the whole repo (not just One thing worth flagging explicitly since it's easy to get wrong reviewing this kind of diff at a glance: On the reported test flakiness (
|
Code Review SummaryNet positive, clean and well-scoped fix. This clears all 6 RustSec advisories tracked by #1743 via a smaller mechanism (feature scoping + a patch-level Requirements Check (vs. issue #1743)Issue #1743's literal checklist items ("bump libsql to a rustls 0.23 release", "when a tauri release advances plist's quick-xml") describe an anticipated mechanism, explicitly premised on "Fixing requires bumping libsql..." — an assumption this PR disproves for both advisory groups:
The actual acceptance bar — advisories cleared, ignore list empty, no new regression risk — is met, and met with strictly less risk than the prescribed path (no libsql major-version behavior change to validate, no waiting on an upstream tauri release). This is a legitimate "means vs. ends" substitution, disclosed clearly in the PR body and in Independent VerificationI did not just read the PR description — I re-derived the following directly from this branch's checked-out state (
Everything the PR claims is independently reproducible from the diff and a local FindingsCritical IssuesNone. Suggested ImprovementsNone blocking.
Nitpicks
Testing AssessmentAdequate for a dependency/build-config-only change with no new runtime logic: Scope/AtomicitySingle cohesive purpose, 3 files touched ( RecommendationAPPROVE. The security fix is correct and independently reproducible (local |
Reviewer nit from PR #1864: a future contributor bumping libsql could reflexively drop back to bare "0.6" without knowing the feature scoping is load-bearing for the audit gate. Points at .cargo/audit.toml for the full rationale. Skipped the other nit (moving .cargo/audit.toml's historical "how this was resolved" prose elsewhere) — no concrete destination exists (it's not architecture/decisions content for nodespace-docs), and removing it would strip the "why" from the one place someone debugging a future `cargo audit` failure would actually look. Co-Authored-By: Claude <[email protected]>
Addressed review feedbackBoth reviews (Approve, no blocking findings) left two optional nits — addressed one, explicitly skipped the other: ✅ Addressed: Added a comment at the ⏭️ Skipped: Moving Re-ran Re-Review DecisionDecision: NO RE-REVIEW NEEDED Rationale: The only change is a two-line comment addition with no logic, dependency, or behavior change. Both prior reviews already approved the substantive fix; this commit doesn't touch anything they evaluated. |
Summary
Closes #1743. Both dependency bumps the issue tracked turned out not to need what the issue expected (a major libsql version bump, a tauri version bump) — the fixes were smaller than anticipated.
rustls-webpki (4 advisories: RUSTSEC-2026-0104/0098/0099/0049)
The vulnerable
rustls-webpki 0.102.8was pulled in by libsql's default features (remote,sync,replication,tls), which bring inhyper-rustls->rustls 0.22. The codebase only ever opens a local embedded database (libsql::Builder::new_local— confirmed via grep, nonew_remote/sync/replication/encryption usage anywhere). Scoping the dependency todefault-features = false, features = ["core"]drops that entire branch of the tree — no libsql version bump needed.quick-xml (2 advisories: RUSTSEC-2026-0194/0195)
plist(a build-time dependency oftauriviaInfo.plistparsing) already allowsquick-xml ^0.41.0starting atplist 1.10.0—cargo update -p plistalone picks up the fix. No tauri version bump was necessary..cargo/audit.toml'signorelist is now empty.cargo auditreports zero vulnerabilities (24 pre-existing unrelatedunmaintained/unsoundwarnings remain, out of scope for this issue).Verification
cargo build --workspacecleancargo tree -i rustls-webpkishows only the fixed0.103.13in the treecargo audit— 0 vulnerabilities, exit code 0bun run audit— unaffected, still cleancargo test --workspaceandbun run test:all— no new failurestest:all+cargo build --bin nodespaced+test:e2e) passedNote on test flakiness observed during verification
ai_chat_send_to_idle_test(real local LLM inference through a spawned daemon) intermittently failed withGRPC_ERROR "No such file or directory"a few times while iterating in this worktree. I dug into this at length: confirmed the daemon binary works correctly standalone, confirmed a full ai-chat turn completes with zero gRPC errors when driven directly via thenodespaceCLI (scripts/aichat.ts), and the same test then passed 3 times in a row (including in the pre-push gate run above). This looks like pre-existing flakiness in theSpawnedDaemontest harness's timing, unrelated to this change — unmodifiedmainalso passed it cleanly, and repeated runs against this branch's code were inconsistent in a way that didn't correlate with the code itself (machine load also fluctuated significantly during testing).Test plan
cargo auditcleancargo build --workspacecargo test --workspacebun run test:all🤖 Generated with Claude Code