-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeny.toml
More file actions
75 lines (63 loc) · 1.5 KB
/
Copy pathdeny.toml
File metadata and controls
75 lines (63 loc) · 1.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# cargo-deny configuration for CryptoTEE security and license compliance
[graph]
targets = [
{ triple = "x86_64-unknown-linux-gnu" },
{ triple = "aarch64-apple-darwin" },
{ triple = "x86_64-pc-windows-msvc" },
]
[licenses]
version = 2
confidence-threshold = 0.8
allow = [
"MIT",
"Apache-2.0",
"Apache-2.0 WITH LLVM-exception",
"BSD-2-Clause",
"BSD-3-Clause",
"ISC",
"Unicode-DFS-2016",
"Zlib",
"Unicode-3.0",
]
[[licenses.clarify]]
name = "ring"
expression = "MIT AND ISC AND OpenSSL"
license-files = [
{ path = "LICENSE", hash = 0xbd0eed23 }
]
[bans]
multiple-versions = "warn"
wildcards = "allow"
# Security-critical dependencies that should be monitored
[[bans.deny]]
name = "openssl-sys"
version = "*" # Prefer ring or rustls
[[bans.deny]]
name = "native-tls"
version = "*" # Prefer rustls
# Known problematic crates
[[bans.deny]]
name = "chrono"
version = "< 0.4.20" # CVE-2020-26235
[[bans.deny]]
name = "time"
version = "< 0.2.23" # CVE-2020-26235
# Allow certain crates to have multiple versions
[[bans.skip]]
name = "windows-sys" # Many versions used across ecosystem
[[bans.skip]]
name = "windows_x86_64_msvc"
[advisories]
version = 2
db-path = "~/.cargo/advisory-db"
db-urls = ["https://github.com/rustsec/advisory-db"]
yanked = "warn"
ignore = [
# Ignore specific advisories if needed
# "RUSTSEC-YYYY-NNNN",
]
[sources]
unknown-registry = "warn"
unknown-git = "warn"
allow-registry = ["https://github.com/rust-lang/crates.io-index"]
allow-git = []