xref: /aosp_15_r20/external/boringssl/src/rust/bssl-crypto/deny.toml (revision 8fb009dc861624b67b6cdb62ea21f0f22d0c584b)
1*8fb009dcSAndroid Build Coastguard Worker# This template contains all of the possible sections and their default values
2*8fb009dcSAndroid Build Coastguard Worker
3*8fb009dcSAndroid Build Coastguard Worker# Note that all fields that take a lint level have these possible values:
4*8fb009dcSAndroid Build Coastguard Worker# * deny - An error will be produced and the check will fail
5*8fb009dcSAndroid Build Coastguard Worker# * warn - A warning will be produced, but the check will not fail
6*8fb009dcSAndroid Build Coastguard Worker# * allow - No warning or error will be produced, though in some cases a note
7*8fb009dcSAndroid Build Coastguard Worker# will be
8*8fb009dcSAndroid Build Coastguard Worker
9*8fb009dcSAndroid Build Coastguard Worker# The values provided in this template are the default values that will be used
10*8fb009dcSAndroid Build Coastguard Worker# when any section or field is not specified in your own configuration
11*8fb009dcSAndroid Build Coastguard Worker
12*8fb009dcSAndroid Build Coastguard Worker# If 1 or more target triples (and optionally, target_features) are specified,
13*8fb009dcSAndroid Build Coastguard Worker# only the specified targets will be checked when running `cargo deny check`.
14*8fb009dcSAndroid Build Coastguard Worker# This means, if a particular package is only ever used as a target specific
15*8fb009dcSAndroid Build Coastguard Worker# dependency, such as, for example, the `nix` crate only being used via the
16*8fb009dcSAndroid Build Coastguard Worker# `target_family = "unix"` configuration, that only having windows targets in
17*8fb009dcSAndroid Build Coastguard Worker# this list would mean the nix crate, as well as any of its exclusive
18*8fb009dcSAndroid Build Coastguard Worker# dependencies not shared by any other crates, would be ignored, as the target
19*8fb009dcSAndroid Build Coastguard Worker# list here is effectively saying which targets you are building for.
20*8fb009dcSAndroid Build Coastguard Workertargets = [
21*8fb009dcSAndroid Build Coastguard Worker    # The triple can be any string, but only the target triples built in to
22*8fb009dcSAndroid Build Coastguard Worker    # rustc (as of 1.40) can be checked against actual config expressions
23*8fb009dcSAndroid Build Coastguard Worker    #{ triple = "x86_64-unknown-linux-musl" },
24*8fb009dcSAndroid Build Coastguard Worker    # You can also specify which target_features you promise are enabled for a
25*8fb009dcSAndroid Build Coastguard Worker    # particular target. target_features are currently not validated against
26*8fb009dcSAndroid Build Coastguard Worker    # the actual valid features supported by the target architecture.
27*8fb009dcSAndroid Build Coastguard Worker    #{ triple = "wasm32-unknown-unknown", features = ["atomics"] },
28*8fb009dcSAndroid Build Coastguard Worker]
29*8fb009dcSAndroid Build Coastguard Worker
30*8fb009dcSAndroid Build Coastguard Worker# This section is considered when running `cargo deny check advisories`
31*8fb009dcSAndroid Build Coastguard Worker# More documentation for the advisories section can be found here:
32*8fb009dcSAndroid Build Coastguard Worker# https://embarkstudios.github.io/cargo-deny/checks/advisories/cfg.html
33*8fb009dcSAndroid Build Coastguard Worker[advisories]
34*8fb009dcSAndroid Build Coastguard Worker# The path where the advisory database is cloned/fetched into
35*8fb009dcSAndroid Build Coastguard Workerdb-path = "~/.cargo/advisory-db"
36*8fb009dcSAndroid Build Coastguard Worker# The url(s) of the advisory databases to use
37*8fb009dcSAndroid Build Coastguard Workerdb-urls = ["https://github.com/rustsec/advisory-db"]
38*8fb009dcSAndroid Build Coastguard Worker# The lint level for security vulnerabilities
39*8fb009dcSAndroid Build Coastguard Workervulnerability = "deny"
40*8fb009dcSAndroid Build Coastguard Worker# The lint level for unmaintained crates
41*8fb009dcSAndroid Build Coastguard Workerunmaintained = "warn"
42*8fb009dcSAndroid Build Coastguard Worker# The lint level for crates that have been yanked from their source registry
43*8fb009dcSAndroid Build Coastguard Workeryanked = "warn"
44*8fb009dcSAndroid Build Coastguard Worker# The lint level for crates with security notices. Note that as of
45*8fb009dcSAndroid Build Coastguard Worker# 2019-12-17 there are no security notice advisories in
46*8fb009dcSAndroid Build Coastguard Worker# https://github.com/rustsec/advisory-db
47*8fb009dcSAndroid Build Coastguard Workernotice = "warn"
48*8fb009dcSAndroid Build Coastguard Worker# A list of advisory IDs to ignore. Note that ignored advisories will still
49*8fb009dcSAndroid Build Coastguard Worker# output a note when they are encountered.
50*8fb009dcSAndroid Build Coastguard Workerignore = [
51*8fb009dcSAndroid Build Coastguard Worker    #"RUSTSEC-0000-0000",
52*8fb009dcSAndroid Build Coastguard Worker]
53*8fb009dcSAndroid Build Coastguard Worker# Threshold for security vulnerabilities, any vulnerability with a CVSS score
54*8fb009dcSAndroid Build Coastguard Worker# lower than the range specified will be ignored. Note that ignored advisories
55*8fb009dcSAndroid Build Coastguard Worker# will still output a note when they are encountered.
56*8fb009dcSAndroid Build Coastguard Worker# * None - CVSS Score 0.0
57*8fb009dcSAndroid Build Coastguard Worker# * Low - CVSS Score 0.1 - 3.9
58*8fb009dcSAndroid Build Coastguard Worker# * Medium - CVSS Score 4.0 - 6.9
59*8fb009dcSAndroid Build Coastguard Worker# * High - CVSS Score 7.0 - 8.9
60*8fb009dcSAndroid Build Coastguard Worker# * Critical - CVSS Score 9.0 - 10.0
61*8fb009dcSAndroid Build Coastguard Worker#severity-threshold =
62*8fb009dcSAndroid Build Coastguard Worker
63*8fb009dcSAndroid Build Coastguard Worker# If this is true, then cargo deny will use the git executable to fetch advisory database.
64*8fb009dcSAndroid Build Coastguard Worker# If this is false, then it uses a built-in git library.
65*8fb009dcSAndroid Build Coastguard Worker# Setting this to true can be helpful if you have special authentication requirements that cargo-deny does not support.
66*8fb009dcSAndroid Build Coastguard Worker# See Git Authentication for more information about setting up git authentication.
67*8fb009dcSAndroid Build Coastguard Worker#git-fetch-with-cli = true
68*8fb009dcSAndroid Build Coastguard Worker
69*8fb009dcSAndroid Build Coastguard Worker# This section is considered when running `cargo deny check licenses`
70*8fb009dcSAndroid Build Coastguard Worker# More documentation for the licenses section can be found here:
71*8fb009dcSAndroid Build Coastguard Worker# https://embarkstudios.github.io/cargo-deny/checks/licenses/cfg.html
72*8fb009dcSAndroid Build Coastguard Worker[licenses]
73*8fb009dcSAndroid Build Coastguard Worker# The lint level for crates which do not have a detectable license
74*8fb009dcSAndroid Build Coastguard Workerunlicensed = "deny"
75*8fb009dcSAndroid Build Coastguard Worker# List of explicitly allowed licenses
76*8fb009dcSAndroid Build Coastguard Worker# See https://spdx.org/licenses/ for list of possible licenses
77*8fb009dcSAndroid Build Coastguard Worker# [possible values: any SPDX 3.11 short identifier (+ optional exception)].
78*8fb009dcSAndroid Build Coastguard Workerallow = [
79*8fb009dcSAndroid Build Coastguard Worker    "ISC",
80*8fb009dcSAndroid Build Coastguard Worker]
81*8fb009dcSAndroid Build Coastguard Worker# List of explicitly disallowed licenses
82*8fb009dcSAndroid Build Coastguard Worker# See https://spdx.org/licenses/ for list of possible licenses
83*8fb009dcSAndroid Build Coastguard Worker# [possible values: any SPDX 3.11 short identifier (+ optional exception)].
84*8fb009dcSAndroid Build Coastguard Workerdeny = [
85*8fb009dcSAndroid Build Coastguard Worker    #"Nokia",
86*8fb009dcSAndroid Build Coastguard Worker]
87*8fb009dcSAndroid Build Coastguard Worker# Lint level for licenses considered copyleft
88*8fb009dcSAndroid Build Coastguard Workercopyleft = "deny"
89*8fb009dcSAndroid Build Coastguard Worker# Blanket approval or denial for OSI-approved or FSF Free/Libre licenses
90*8fb009dcSAndroid Build Coastguard Worker# * both - The license will be approved if it is both OSI-approved *AND* FSF
91*8fb009dcSAndroid Build Coastguard Worker# * either - The license will be approved if it is either OSI-approved *OR* FSF
92*8fb009dcSAndroid Build Coastguard Worker# * osi-only - The license will be approved if is OSI-approved *AND NOT* FSF
93*8fb009dcSAndroid Build Coastguard Worker# * fsf-only - The license will be approved if is FSF *AND NOT* OSI-approved
94*8fb009dcSAndroid Build Coastguard Worker# * neither - This predicate is ignored and the default lint level is used
95*8fb009dcSAndroid Build Coastguard Workerallow-osi-fsf-free = "neither"
96*8fb009dcSAndroid Build Coastguard Worker# Lint level used when no other predicates are matched
97*8fb009dcSAndroid Build Coastguard Worker# 1. License isn't in the allow or deny lists
98*8fb009dcSAndroid Build Coastguard Worker# 2. License isn't copyleft
99*8fb009dcSAndroid Build Coastguard Worker# 3. License isn't OSI/FSF, or allow-osi-fsf-free = "neither"
100*8fb009dcSAndroid Build Coastguard Workerdefault = "deny"
101*8fb009dcSAndroid Build Coastguard Worker# The confidence threshold for detecting a license from license text.
102*8fb009dcSAndroid Build Coastguard Worker# The higher the value, the more closely the license text must be to the
103*8fb009dcSAndroid Build Coastguard Worker# canonical license text of a valid SPDX license file.
104*8fb009dcSAndroid Build Coastguard Worker# [possible values: any between 0.0 and 1.0].
105*8fb009dcSAndroid Build Coastguard Workerconfidence-threshold = 0.8
106*8fb009dcSAndroid Build Coastguard Worker# Allow 1 or more licenses on a per-crate basis, so that particular licenses
107*8fb009dcSAndroid Build Coastguard Worker# aren't accepted for every possible crate as with the normal allow list
108*8fb009dcSAndroid Build Coastguard Workerexceptions = [
109*8fb009dcSAndroid Build Coastguard Worker    # Each entry is the crate and version constraint, and its specific allow
110*8fb009dcSAndroid Build Coastguard Worker    # list
111*8fb009dcSAndroid Build Coastguard Worker    #{ allow = ["Zlib"], name = "adler32", version = "*" },
112*8fb009dcSAndroid Build Coastguard Worker]
113*8fb009dcSAndroid Build Coastguard Worker
114*8fb009dcSAndroid Build Coastguard Worker# Some crates don't have (easily) machine readable licensing information,
115*8fb009dcSAndroid Build Coastguard Worker# adding a clarification entry for it allows you to manually specify the
116*8fb009dcSAndroid Build Coastguard Worker# licensing information
117*8fb009dcSAndroid Build Coastguard Worker#[[licenses.clarify]]
118*8fb009dcSAndroid Build Coastguard Worker# The name of the crate the clarification applies to
119*8fb009dcSAndroid Build Coastguard Worker#name = "ring"
120*8fb009dcSAndroid Build Coastguard Worker# The optional version constraint for the crate
121*8fb009dcSAndroid Build Coastguard Worker#version = "*"
122*8fb009dcSAndroid Build Coastguard Worker# The SPDX expression for the license requirements of the crate
123*8fb009dcSAndroid Build Coastguard Worker#expression = "MIT AND ISC AND OpenSSL"
124*8fb009dcSAndroid Build Coastguard Worker# One or more files in the crate's source used as the "source of truth" for
125*8fb009dcSAndroid Build Coastguard Worker# the license expression. If the contents match, the clarification will be used
126*8fb009dcSAndroid Build Coastguard Worker# when running the license check, otherwise the clarification will be ignored
127*8fb009dcSAndroid Build Coastguard Worker# and the crate will be checked normally, which may produce warnings or errors
128*8fb009dcSAndroid Build Coastguard Worker# depending on the rest of your configuration
129*8fb009dcSAndroid Build Coastguard Worker#license-files = [
130*8fb009dcSAndroid Build Coastguard Worker    # Each entry is a crate relative path, and the (opaque) hash of its contents
131*8fb009dcSAndroid Build Coastguard Worker    #{ path = "LICENSE", hash = 0xbd0eed23 }
132*8fb009dcSAndroid Build Coastguard Worker#]
133*8fb009dcSAndroid Build Coastguard Worker
134*8fb009dcSAndroid Build Coastguard Worker[licenses.private]
135*8fb009dcSAndroid Build Coastguard Worker# If true, ignores workspace crates that aren't published, or are only
136*8fb009dcSAndroid Build Coastguard Worker# published to private registries.
137*8fb009dcSAndroid Build Coastguard Worker# To see how to mark a crate as unpublished (to the official registry),
138*8fb009dcSAndroid Build Coastguard Worker# visit https://doc.rust-lang.org/cargo/reference/manifest.html#the-publish-field.
139*8fb009dcSAndroid Build Coastguard Workerignore = false
140*8fb009dcSAndroid Build Coastguard Worker# One or more private registries that you might publish crates to, if a crate
141*8fb009dcSAndroid Build Coastguard Worker# is only published to private registries, and ignore is true, the crate will
142*8fb009dcSAndroid Build Coastguard Worker# not have its license(s) checked
143*8fb009dcSAndroid Build Coastguard Workerregistries = [
144*8fb009dcSAndroid Build Coastguard Worker    #"https://sekretz.com/registry
145*8fb009dcSAndroid Build Coastguard Worker]
146*8fb009dcSAndroid Build Coastguard Worker
147*8fb009dcSAndroid Build Coastguard Worker# This section is considered when running `cargo deny check bans`.
148*8fb009dcSAndroid Build Coastguard Worker# More documentation about the 'bans' section can be found here:
149*8fb009dcSAndroid Build Coastguard Worker# https://embarkstudios.github.io/cargo-deny/checks/bans/cfg.html
150*8fb009dcSAndroid Build Coastguard Worker[bans]
151*8fb009dcSAndroid Build Coastguard Worker# Lint level for when multiple versions of the same crate are detected
152*8fb009dcSAndroid Build Coastguard Workermultiple-versions = "deny"
153*8fb009dcSAndroid Build Coastguard Worker# Lint level for when a crate version requirement is `*`
154*8fb009dcSAndroid Build Coastguard Workerwildcards = "allow"
155*8fb009dcSAndroid Build Coastguard Worker# The graph highlighting used when creating dotgraphs for crates
156*8fb009dcSAndroid Build Coastguard Worker# with multiple versions
157*8fb009dcSAndroid Build Coastguard Worker# * lowest-version - The path to the lowest versioned duplicate is highlighted
158*8fb009dcSAndroid Build Coastguard Worker# * simplest-path - The path to the version with the fewest edges is highlighted
159*8fb009dcSAndroid Build Coastguard Worker# * all - Both lowest-version and simplest-path are used
160*8fb009dcSAndroid Build Coastguard Workerhighlight = "all"
161*8fb009dcSAndroid Build Coastguard Worker# List of crates that are allowed. Use with care!
162*8fb009dcSAndroid Build Coastguard Worker# This is meant to control any external dependencies. This is effectively
163*8fb009dcSAndroid Build Coastguard Worker# a minimalist binding library and we try to have none, so you are strongly
164*8fb009dcSAndroid Build Coastguard Worker# encouraged not to add dependencies here.
165*8fb009dcSAndroid Build Coastguard Workerallow = [
166*8fb009dcSAndroid Build Coastguard Worker    # bssl-crypto should be allowed, version appropriately.
167*8fb009dcSAndroid Build Coastguard Worker    { name = "bssl-crypto", version = "=0.2.0" },
168*8fb009dcSAndroid Build Coastguard Worker    # bssl-sys should be allowed, version appropriately.
169*8fb009dcSAndroid Build Coastguard Worker    { name = "bssl-sys", version = "=0.1.0" },
170*8fb009dcSAndroid Build Coastguard Worker]
171*8fb009dcSAndroid Build Coastguard Worker# List of crates to deny
172*8fb009dcSAndroid Build Coastguard Workerdeny = [
173*8fb009dcSAndroid Build Coastguard Worker    # Each entry the name of a crate and a version range. If version is
174*8fb009dcSAndroid Build Coastguard Worker    # not specified, all versions will be matched.
175*8fb009dcSAndroid Build Coastguard Worker    #{ name = "ansi_term", version = "=0.11.0" },
176*8fb009dcSAndroid Build Coastguard Worker    #
177*8fb009dcSAndroid Build Coastguard Worker    # Wrapper crates can optionally be specified to allow the crate when it
178*8fb009dcSAndroid Build Coastguard Worker    # is a direct dependency of the otherwise banned crate
179*8fb009dcSAndroid Build Coastguard Worker    #{ name = "ansi_term", version = "=0.11.0", wrappers = [] },
180*8fb009dcSAndroid Build Coastguard Worker]
181*8fb009dcSAndroid Build Coastguard Worker# Certain crates/versions that will be skipped when doing duplicate detection.
182*8fb009dcSAndroid Build Coastguard Workerskip = [
183*8fb009dcSAndroid Build Coastguard Worker    #{ name = "ansi_term", version = "=0.11.0" },
184*8fb009dcSAndroid Build Coastguard Worker]
185*8fb009dcSAndroid Build Coastguard Worker# Similarly to `skip` allows you to skip certain crates during duplicate
186*8fb009dcSAndroid Build Coastguard Worker# detection. Unlike skip, it also includes the entire tree of transitive
187*8fb009dcSAndroid Build Coastguard Worker# dependencies starting at the specified crate, up to a certain depth, which is
188*8fb009dcSAndroid Build Coastguard Worker# by default infinite
189*8fb009dcSAndroid Build Coastguard Workerskip-tree = [
190*8fb009dcSAndroid Build Coastguard Worker    #{ name = "ansi_term", version = "=0.11.0", depth = 20 },
191*8fb009dcSAndroid Build Coastguard Worker]
192*8fb009dcSAndroid Build Coastguard Worker
193*8fb009dcSAndroid Build Coastguard Worker# This section is considered when running `cargo deny check sources`.
194*8fb009dcSAndroid Build Coastguard Worker# More documentation about the 'sources' section can be found here:
195*8fb009dcSAndroid Build Coastguard Worker# https://embarkstudios.github.io/cargo-deny/checks/sources/cfg.html
196*8fb009dcSAndroid Build Coastguard Worker[sources]
197*8fb009dcSAndroid Build Coastguard Worker# Lint level for what to happen when a crate from a crate registry that is not
198*8fb009dcSAndroid Build Coastguard Worker# in the allow list is encountered
199*8fb009dcSAndroid Build Coastguard Workerunknown-registry = "warn"
200*8fb009dcSAndroid Build Coastguard Worker# Lint level for what to happen when a crate from a git repository that is not
201*8fb009dcSAndroid Build Coastguard Worker# in the allow list is encountered
202*8fb009dcSAndroid Build Coastguard Workerunknown-git = "warn"
203*8fb009dcSAndroid Build Coastguard Worker# List of URLs for allowed crate registries. Defaults to the crates.io index
204*8fb009dcSAndroid Build Coastguard Worker# if not specified. If it is specified but empty, no registries are allowed.
205*8fb009dcSAndroid Build Coastguard Workerallow-registry = ["https://github.com/rust-lang/crates.io-index"]
206*8fb009dcSAndroid Build Coastguard Worker# List of URLs for allowed Git repositories
207*8fb009dcSAndroid Build Coastguard Workerallow-git = []
208*8fb009dcSAndroid Build Coastguard Worker
209*8fb009dcSAndroid Build Coastguard Worker[sources.allow-org]
210*8fb009dcSAndroid Build Coastguard Worker# 1 or more github.com organizations to allow git sources for
211*8fb009dcSAndroid Build Coastguard Worker#github = [""]
212*8fb009dcSAndroid Build Coastguard Worker# 1 or more gitlab.com organizations to allow git sources for
213*8fb009dcSAndroid Build Coastguard Worker#gitlab = [""]
214*8fb009dcSAndroid Build Coastguard Worker# 1 or more bitbucket.org organizations to allow git sources for
215*8fb009dcSAndroid Build Coastguard Worker#bitbucket = [""]
216