mirror of
https://github.com/NVIDIA/OpenShell.git
synced 2026-11-04 08:25:55 +08:00
88 lines
4.2 KiB
TOML
88 lines
4.2 KiB
TOML
# SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
# cargo-deny configuration
|
|
# https://embarkstudios.github.io/cargo-deny/
|
|
|
|
[graph]
|
|
all-features = true
|
|
no-default-features = false
|
|
|
|
# -- Advisories (RustSec + NVD) ------------------------------------------------
|
|
[advisories]
|
|
yanked = "warn"
|
|
unmaintained = "workspace"
|
|
maximum-db-staleness = "P30D"
|
|
ignore = [
|
|
# Pre-existing advisories acknowledged at onboarding. Each should be
|
|
# resolved by upgrading the affected transitive dependency and then
|
|
# removing the ignore entry.
|
|
{ id = "RUSTSEC-2026-0190", reason = "anyhow unsoundness in downcast_mut — awaiting upstream fix" },
|
|
{ id = "RUSTSEC-2026-0204", reason = "crossbeam-epoch pointer deref — transitive via metrics/quanta" },
|
|
{ id = "RUSTSEC-2023-0071", reason = "rsa Marvin attack — transitive via spiffe, no direct exposure" },
|
|
{ id = "RUSTSEC-2025-0134", reason = "rustls-pemfile unmaintained — transitive via older kube/hyper" },
|
|
# SPIFFE's jsonwebtoken RustCrypto stack still requires crypto-bigint 0.5.
|
|
# Remove after compatible upstream releases include the dependency upgrade:
|
|
# https://github.com/Keats/jsonwebtoken/pull/536
|
|
{ id = "RUSTSEC-2026-0387", reason = "crypto-bigint 0.5.5 timing variability — transitive via SPIFFE/jsonwebtoken; remove when the dependency chain supports crypto-bigint >=0.7.6" },
|
|
# zip is used only by z3-sys's build script with prebuilt-z3 enabled to
|
|
# extract upstream Z3 GitHub release assets, never runtime/user archives.
|
|
# Accept the build-time risk of a compromised upstream release asset until
|
|
# z3-sys supports zip >=9; remove these exceptions once it can be upgraded.
|
|
{ id = "RUSTSEC-2026-0367", reason = "zip privileged permission bits — build-only Z3 release extraction; awaiting z3-sys support for zip >=9" },
|
|
{ id = "RUSTSEC-2026-0368", reason = "zip symlink target escape — build-only Z3 release extraction; awaiting z3-sys support for zip >=9" },
|
|
{ id = "RUSTSEC-2026-0369", reason = "zip permissions follow symlinks — build-only Z3 release extraction; awaiting z3-sys support for zip >=9" },
|
|
{ id = "RUSTSEC-2026-0391", reason = "zstd context reuse leaks prior stream data — VM driver and zip create fresh contexts; remove when the dependency chain supports zstd >=0.14.3" },
|
|
{ id = "RUSTSEC-2026-0398", reason = "zstd-safe seekable decompression memory corruption — current consumers do not use the seekable API; remove when the dependency chain supports zstd-safe >=8.2.0" },
|
|
{ id = "RUSTSEC-2026-0403", reason = "zstd-safe legacy frame error leaks uninitialized memory through write decoders — VM driver and zip use read decoders; remove when the dependency chain supports zstd-safe >=8.2.0" },
|
|
{ id = "RUSTSEC-2026-0410", reason = "zstd-sys wasm32 allocator memory corruption — current consumers run on native targets; remove when the dependency chain supports zstd-sys >=2.1.2" },
|
|
]
|
|
|
|
# -- Licenses ------------------------------------------------------------------
|
|
[licenses]
|
|
confidence-threshold = 0.8
|
|
unused-allowed-license = "allow"
|
|
|
|
allow = [
|
|
"Apache-2.0",
|
|
"Apache-2.0 WITH LLVM-exception",
|
|
"MIT",
|
|
"MIT-0",
|
|
"BSD-1-Clause",
|
|
"BSD-2-Clause",
|
|
"BSD-3-Clause",
|
|
"BSL-1.0",
|
|
# Permissive, non-copyleft license pulled in by the prebuilt Z3 archive
|
|
# path (z3-sys -> zip -> bzip2); compatible with this Apache-2.0 project.
|
|
"bzip2-1.0.6",
|
|
"ISC",
|
|
"Zlib",
|
|
"0BSD",
|
|
"CC0-1.0",
|
|
"Unlicense",
|
|
"Unicode-3.0",
|
|
"CDLA-Permissive-2.0",
|
|
]
|
|
|
|
[licenses.private]
|
|
ignore = true
|
|
registries = []
|
|
|
|
# -- Bans ----------------------------------------------------------------------
|
|
[bans]
|
|
deny = [
|
|
{ name = "ring", wrappers = ["rustls", "rustls-webpki"], reason = "Use the selected crypto backend instead. These wrappers are allowed for z3-sys's prebuilt archive downloader." },
|
|
]
|
|
multiple-versions = "warn"
|
|
wildcards = "allow"
|
|
highlight = "all"
|
|
workspace-default-features = "allow"
|
|
external-default-features = "allow"
|
|
|
|
# -- Sources -------------------------------------------------------------------
|
|
[sources]
|
|
unknown-registry = "deny"
|
|
unknown-git = "deny"
|
|
allow-registry = ["https://github.com/rust-lang/crates.io-index"]
|
|
allow-git = []
|