-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeny.toml
More file actions
97 lines (80 loc) · 2.63 KB
/
Copy pathdeny.toml
File metadata and controls
97 lines (80 loc) · 2.63 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
# cargo-deny configuration for AgentAuth
# https://embarkstudios.github.io/cargo-deny/
[graph]
targets = [
"x86_64-unknown-linux-gnu",
"aarch64-unknown-linux-gnu",
"x86_64-apple-darwin",
"aarch64-apple-darwin",
]
# =============================================================================
# Licenses
# =============================================================================
[licenses]
version = 2
allow = [
"MIT",
"Apache-2.0",
"Apache-2.0 WITH LLVM-exception",
"BSD-2-Clause",
"BSD-3-Clause",
"ISC",
"Zlib",
"Unicode-3.0",
"CDLA-Permissive-2.0",
]
confidence-threshold = 0.8
[[licenses.clarify]]
name = "ring"
expression = "MIT AND ISC AND OpenSSL"
license-files = [{ path = "LICENSE", hash = 0xbd0eed23 }]
[[licenses.clarify]]
name = "webpki"
expression = "ISC"
license-files = [{ path = "LICENSE", hash = 0x1c7e6c }]
# =============================================================================
# Bans
# =============================================================================
[bans]
multiple-versions = "warn"
wildcards = "allow" # Allow workspace path dependencies
highlight = "all"
workspace-default-features = "allow"
external-default-features = "allow"
# Banned crates - security or supply chain concerns
deny = [
# No native-tls in core networking - use rustls only
# Exception: metrics-exporter-prometheus pulls in native-tls for its HTTP server
# This is acceptable because metrics endpoints are internal-only
{ name = "native-tls", wrappers = ["hyper-tls", "tokio-native-tls"] },
{ name = "openssl", wrappers = ["native-tls"] },
{ name = "openssl-sys", wrappers = ["openssl", "native-tls"] },
# No unmaintained crates
{ name = "time", version = "<0.3" },
# No crates with known vulnerabilities
{ name = "chrono", version = "<0.4.20" },
]
# Allow specific duplicates that are known to be safe
skip = [
# Common duplicates due to ecosystem transitions
{ name = "hashbrown", version = "0.12" },
]
skip-tree = []
# =============================================================================
# Sources
# =============================================================================
[sources]
unknown-registry = "deny"
unknown-git = "deny"
allow-registry = ["https://github.com/rust-lang/crates.io-index"]
allow-git = []
[sources.allow-org]
github = []
# =============================================================================
# Advisories
# =============================================================================
[advisories]
version = 2
db-path = "~/.cargo/advisory-db"
db-urls = ["https://github.com/rustsec/advisory-db"]
ignore = []