Skip to content

Commit 33c958a

Browse files
committed
fix(deps): scope security exceptions and patch desktop archives
Keep Mesh-LLM ZIP advisory exceptions in its smoke-only policy. Check runtime and desktop dependency graphs separately and include desktop Rust changes in the security gate. Upgrade desktop ZIP and pin the upstream updater ZIP fix. Verify that the desktop ringbuf exception remains an unused dependency of pinned NetEQ. Preserve the upstream dependency repairs and explicit bans on vulnerable trust roots. Signed-off-by: Tee8z <[email protected]>
1 parent 987eb10 commit 33c958a

13 files changed

Lines changed: 675 additions & 336 deletions

File tree

‎.github/workflows/_ci-security.yml‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,14 @@ jobs:
2525
steps:
2626
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
2727
- uses: cashapp/activate-hermit@cea9af7913204a965fd488637a8d1811bba2e616 # v1
28-
- name: Dependency policy
29-
run: cargo-deny check
28+
- name: Runtime dependency policy
29+
run: cargo-deny --exclude buzz-mesh-smoke check
30+
- name: Mesh-LLM smoke dependency policy
31+
run: cargo-deny --manifest-path crates/buzz-mesh-smoke/Cargo.toml check --config deny-mesh.toml
32+
- name: Verify desktop dependency exceptions
33+
run: python3 scripts/check-desktop-dependency-exceptions.py
34+
- name: Desktop dependency policy
35+
run: cargo-deny --manifest-path desktop/src-tauri/Cargo.toml check --config deny-desktop.toml
3036

3137

3238
results:

‎.github/workflows/ci.yml‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ jobs:
5757
- 'scripts/test-postgres-test-discovery.sh'
5858
- 'scripts/test-postgres-test-wrapper.sh'
5959
- 'deny.toml'
60+
- 'deny-mesh.toml'
61+
- 'deny-desktop.toml'
62+
- 'scripts/check-desktop-dependency-exceptions.py'
6063
- '.github/workflows/ci.yml'
6164
- '.github/workflows/_ci-*.yml'
6265
- 'docker-compose.yml'
@@ -255,10 +258,10 @@ jobs:
255258
security-domain:
256259
name: Security Domain
257260
needs: [changes]
258-
if: github.event_name == 'push' || needs.changes.outputs.rust == 'true'
261+
if: github.event_name == 'push' || (needs.changes.outputs.rust == 'true' || needs.changes.outputs.desktop-rust == 'true')
259262
uses: ./.github/workflows/_ci-security.yml
260263
with:
261-
rust: ${{ needs.changes.outputs.rust == 'true' }}
264+
rust: ${{ (needs.changes.outputs.rust == 'true' || needs.changes.outputs.desktop-rust == 'true') }}
262265

263266
rust-lint:
264267
name: Rust Lint
@@ -430,7 +433,7 @@ jobs:
430433

431434
security:
432435
name: Security
433-
if: always() && (needs.changes.result != 'success' || ((github.event_name == 'push' || needs.changes.outputs.rust == 'true')))
436+
if: always() && (needs.changes.result != 'success' || ((github.event_name == 'push' || needs.changes.outputs.rust == 'true' || needs.changes.outputs.desktop-rust == 'true')))
434437
needs: [changes, security-domain]
435438
runs-on: ubuntu-latest
436439
timeout-minutes: 5

‎Cargo.lock‎

Lines changed: 17 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎SECURITY.md‎

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,20 @@ controllers.
122122

123123
### Dependency Management
124124

125-
We use `cargo audit` in CI to scan for known vulnerabilities in dependencies.
125+
CI checks runtime, Mesh-LLM smoke, and desktop dependencies with separate
126+
`cargo-deny` policies. ZIP advisory exceptions apply only to the smoke harness.
127+
The desktop policy requires patched ZIP dependencies and verifies that its
128+
`ringbuf` exception remains an unused dependency of the pinned NetEQ source.
129+
130+
Run the same checks locally from the repository root:
131+
132+
```bash
133+
cargo-deny --exclude buzz-mesh-smoke check
134+
cargo-deny --manifest-path crates/buzz-mesh-smoke/Cargo.toml check --config deny-mesh.toml
135+
python3 scripts/check-desktop-dependency-exceptions.py
136+
cargo-deny --manifest-path desktop/src-tauri/Cargo.toml check --config deny-desktop.toml
137+
```
138+
126139
`#![deny(unsafe_code)]` is enforced across all crates — no unsafe Rust.
127140

128141
---

‎deny-desktop.toml‎

Lines changed: 124 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
# Desktop policy. ZIP extraction advisories are never ignored here.
2+
[advisories]
3+
ignore = [
4+
# These desktop transitive dependencies have maintenance notices, not
5+
# vulnerability reports. Remove when opus, user-idle, and GTK migrate.
6+
{ id = "RUSTSEC-2026-0150", reason = "audiopus_sys via opus; unmaintained with no safe upstream upgrade" },
7+
{ id = "RUSTSEC-2020-0168", reason = "mach via user-idle; unmaintained with no safe upstream upgrade" },
8+
{ id = "RUSTSEC-2024-0370", reason = "proc-macro-error via GTK glib-macros; unmaintained with no safe upstream upgrade" },
9+
# neteq 0.8.3 declares ringbuf but never uses it: its buffer is VecDeque.
10+
# CI verifies the pinned source has no reference and no other graph parent.
11+
# Remove when neteq drops its unused dependency or upgrades to ringbuf 0.5.2.
12+
{ id = "RUSTSEC-2026-0293", reason = "unused dependency of pinned neteq 0.8.3; check-desktop-dependency-exceptions.py verifies it stays unreachable" },
13+
# 0.26.11 contains no roots: it re-exports webpki-roots 1.x. Both lockfiles
14+
# resolve that parent to 1.0.10, which removes the distrusted emSign root.
15+
# The advisory also flags this compatibility wrapper. The bans below keep
16+
# every other affected version forbidden while this false positive remains.
17+
{ id = "RUSTSEC-2026-0381", reason = "0.26.11 only re-exports the patched 1.0.10 roots; bans enforce patched versions for all other releases" },
18+
# instant 0.1.13 — unmaintained crate. Transitive dep: nostr → instant.
19+
# Will be resolved when nostr crate updates its dependencies.
20+
{ id = "RUSTSEC-2024-0384", reason = "transitive dep via nostr; no upstream fix available" },
21+
# paste 1.0.15 — unmaintained. Transitive dep: mesh-llm → iroh → netlink-* → paste.
22+
# No safe upgrade available; tracked for upstream (iroh/netlink) replacement.
23+
{ id = "RUSTSEC-2024-0436", reason = "transitive dep via mesh-llm → iroh → netlink; no upstream fix available" },
24+
# quick-xml < 0.41: quadratic runtime on duplicate-attribute check (0194) and
25+
# unbounded namespace-declaration allocation in NsReader (0195). Both DoS-class,
26+
# requiring attacker-controlled XML. Our two locked versions only parse trusted
27+
# input: 0.38.4 (rust-s3/aws-creds — responses from our own S3/MinIO endpoint)
28+
# and 0.39.4 (mesh-llm → iroh → netdev → plist — local macOS system plists).
29+
# Patched release (>= 0.41.0) is unreachable until rust-s3 and plist/netdev bump;
30+
# remove these when upstream catches up.
31+
{ id = "RUSTSEC-2026-0194", reason = "transitive via rust-s3 and mesh-llm→plist; trusted-input XML only; no upstream fix available yet" },
32+
{ id = "RUSTSEC-2026-0195", reason = "transitive via rust-s3 and mesh-llm→plist; trusted-input XML only; no upstream fix available yet" },
33+
# unsafe-libyaml 0.2.11 — unmaintained (repository archived 2024-03-25), not a
34+
# vulnerability report. Transitive dep: serde_yaml → unsafe-libyaml. The serde_yaml_ng
35+
# fork uses the same crate, so removing it means migrating YAML parsing in
36+
# buzz-agent, buzz-persona, buzz-relay, buzz-workflow and desktop.
37+
{ id = "RUSTSEC-2024-0449", reason = "transitive via serde_yaml; unmaintained, not vulnerable; removal needs a YAML parser migration" },
38+
# zbus 5 D-Bus crates (zvariant, zbus_names, zvariant_derive) — unmaintained,
39+
# not vulnerable. Only path: buzz-mesh-smoke → mesh-llm → keyring 4 →
40+
# zbus-secret-service-keyring-store / secret-service 5 → zbus 5.
41+
# Remove when mesh-llm's keyring stack moves off zbus 5.
42+
{ id = "RUSTSEC-2026-0370", reason = "zvariant via buzz-mesh-smoke → mesh-llm → keyring 4 → secret-service 5 → zbus 5; unmaintained, not vulnerable" },
43+
{ id = "RUSTSEC-2026-0371", reason = "zbus_names via buzz-mesh-smoke → mesh-llm → keyring 4 → secret-service 5 → zbus 5; unmaintained, not vulnerable" },
44+
{ id = "RUSTSEC-2026-0372", reason = "zvariant_derive via buzz-mesh-smoke → mesh-llm → keyring 4 → secret-service 5 → zbus 5; unmaintained, not vulnerable" },
45+
]
46+
47+
[licenses]
48+
allow = [
49+
"MIT",
50+
"Apache-2.0",
51+
"Apache-2.0 WITH LLVM-exception",
52+
"BSD-2-Clause",
53+
"BSD-3-Clause",
54+
"ISC",
55+
"Unicode-3.0",
56+
"Unicode-DFS-2016",
57+
"Zlib",
58+
"OpenSSL",
59+
"CC0-1.0",
60+
"CDLA-Permissive-2.0",
61+
"MITNFA",
62+
"MPL-2.0",
63+
"BSL-1.0",
64+
"Unlicense",
65+
# minicbor's permissive, OSI-approved license. Used for strict App Attest
66+
# assertion CBOR parsing and also transitively by appattest.
67+
"BlueOak-1.0.0",
68+
# bzip2/libbzip2's permissive BSD-like license. New via desktop zip/bzip2
69+
# transitive deps; compatible with Apache-2.0 distribution.
70+
"bzip2-1.0.6",
71+
]
72+
confidence-threshold = 0.8
73+
74+
# mesh-llm workspace crates (pinned git dep) omit a per-crate `license` field in
75+
# their manifests, so cargo-deny reports them as unlicensed. The mesh-llm repo is
76+
# licensed "MIT OR Apache-2.0" (workspace Cargo.toml + top-level LICENSE = Apache-2.0);
77+
# clarify each pulled-in member to that expression. Remove once mesh sets the field
78+
# upstream (filed).
79+
[[licenses.clarify]]
80+
crate = "mesh-llm-config"
81+
expression = "MIT OR Apache-2.0"
82+
license-files = []
83+
84+
[[licenses.clarify]]
85+
crate = "mesh-llm-gpu-bench"
86+
expression = "MIT OR Apache-2.0"
87+
license-files = []
88+
89+
[[licenses.clarify]]
90+
crate = "mesh-llm-host-runtime"
91+
expression = "MIT OR Apache-2.0"
92+
license-files = []
93+
94+
[[licenses.clarify]]
95+
crate = "mesh-llm-plugin"
96+
expression = "MIT OR Apache-2.0"
97+
license-files = []
98+
99+
[[licenses.clarify]]
100+
crate = "mesh-llm-system"
101+
expression = "MIT OR Apache-2.0"
102+
license-files = []
103+
104+
[[licenses.clarify]]
105+
crate = "mesh-mixture-of-agents"
106+
expression = "MIT OR Apache-2.0"
107+
license-files = []
108+
109+
[[licenses.clarify]]
110+
crate = "buzz-desktop"
111+
expression = "Apache-2.0"
112+
license-files = []
113+
114+
[licenses.private]
115+
ignore = true
116+
117+
[bans]
118+
# RUSTSEC-2026-0381: allow only the 0.26.11 re-export wrapper or patched roots.
119+
deny = [
120+
{ name = "webpki-roots", version = "<0.26.11" },
121+
{ name = "webpki-roots", version = ">0.26.11, <1.0.10" },
122+
]
123+
multiple-versions = "warn"
124+
wildcards = "allow"

0 commit comments

Comments
 (0)