-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathdeny.toml
More file actions
77 lines (67 loc) · 2.44 KB
/
Copy pathdeny.toml
File metadata and controls
77 lines (67 loc) · 2.44 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
76
77
# cargo-deny configuration
# https://embarkstudios.github.io/cargo-deny/
[graph]
# Only check dependencies for the default target
targets = []
# ------------------------------------------------------------------------
# Security advisories
# ------------------------------------------------------------------------
[advisories]
# The path where the advisory database is cloned/fetched into
db-path = "~/.cargo/advisory-db"
db-urls = ["https://github.com/rustsec/advisory-db"]
# Warn on unmaintained crates (not deny, to avoid blocking on inactive-but-safe deps)
unmaintained = "none"
# Warn on crates that have been yanked
yanked = "warn"
# protobuf v2.28.0 vulnerability (RUSTSEC-2024-0437): crash via uncontrolled recursion.
# Pulled in transitively by prometheus v0.13.4 which depends on protobuf v2.x.
# The fix requires protobuf >=3.7.2 which is incompatible with prometheus 0.13.x.
# Ordo is an internal service and does not parse untrusted protobuf input directly.
ignore = [
"RUSTSEC-2024-0437",
]
# ------------------------------------------------------------------------
# License checks
# ------------------------------------------------------------------------
[licenses]
# Confidence threshold for license detection
confidence-threshold = 0.8
# Allow these licenses
allow = [
"MIT",
"Apache-2.0",
"Apache-2.0 WITH LLVM-exception",
"BSD-2-Clause",
"BSD-3-Clause",
"ISC",
"Unicode-DFS-2016",
"Unicode-3.0",
"Zlib",
"CC0-1.0",
"OpenSSL",
]
# Workspace crates are marked publish = false and should be ignored
# for license checks (they inherit license from workspace.package.license).
[licenses.private]
ignore = true
# ------------------------------------------------------------------------
# Crate bans
# ------------------------------------------------------------------------
[bans]
# Warn on multiple versions of the same crate
multiple-versions = "warn"
# Deny wildcard dependencies
wildcards = "deny"
# Highlight the longest path each duplicate dependency takes
highlight = "simplest-path"
# Allow wildcard (path) dependencies for workspace-internal crates
allow-wildcard-paths = true
# ------------------------------------------------------------------------
# Source checks
# ------------------------------------------------------------------------
[sources]
# Only allow crates from crates.io and git sources
unknown-registry = "deny"
unknown-git = "deny"
allow-registry = ["https://github.com/rust-lang/crates.io-index"]