-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathdeny.toml
More file actions
50 lines (45 loc) · 2.21 KB
/
Copy pathdeny.toml
File metadata and controls
50 lines (45 loc) · 2.21 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
# Cargo-deny configuration for AuthFramework
# Security-first configuration for authentication framework
[advisories]
# Vulnerability database settings
db-path = "~/.cargo/advisory-db"
db-urls = ["https://github.com/RustSec/advisory-db"]
# Security-first approach: Only allow explicitly documented exceptions
# This forces explicit review and justification of ALL security issues
ignore = [
# RSA timing attack - no fix available yet, used by essential dependencies
# Impact: Low risk in our authentication context as we don't expose raw RSA operations
# Tracking: Will update when sqlx/openidconnect provide fixed versions
"RUSTSEC-2023-0071",
# `paste` crate unmaintained - transitive dependency via cryptoki 0.7.0
# Impact: None; `paste` is a compile-time macro crate with no runtime attack surface
# Tracking: Will resolve when cryptoki drops `paste` or migrates to an alternative
"RUSTSEC-2024-0436",
]
[licenses]
# License policy - allow common open source licenses
allow = [
"Apache-2.0 WITH LLVM-exception",
"Apache-2.0",
"BSD-2-Clause",
"BSD-3-Clause",
"CDLA-Permissive-2.0", # Community Data License Agreement - for webpki-roots
"ISC",
"MIT",
"MPL-2.0", # Mozilla Public License 2.0 - weak copyleft, commercial-friendly
"Unicode-3.0", # Unicode License v3 - for ICU components
"Zlib", # Zlib license - very permissive, commercial-friendly
]
# Confidence threshold for license detection
confidence-threshold = 0.8
[bans]
# Crate banning rules
highlight = "all" # Highlight all issues
multiple-versions = "warn" # Allow multiple versions but warn
wildcards = "allow" # Allow wildcard dependencies
[sources]
# Source repository settings
allow-git = []
allow-registry = ["https://github.com/rust-lang/crates.io-index"]
unknown-git = "warn" # Warn about unknown git sources
unknown-registry = "warn" # Warn about unknown registries