Repository navigation
Expand file tree
/
Copy pathCargo.toml
More file actions
289 lines (269 loc) · 9.36 KB
/
Copy pathCargo.toml
File metadata and controls
289 lines (269 loc) · 9.36 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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
[workspace]
members = [
".",
"crates/kingfisher-core",
"crates/kingfisher-rules",
"crates/kingfisher-scanner",
]
resolver = "2"
[workspace.package]
edition = "2024"
rust-version = "1.96"
license = "Apache-2.0"
authors = ["Mick Grove <mick.grove@mongodb.com>"]
homepage = "https://github.com/mongodb/kingfisher"
repository = "https://github.com/mongodb/kingfisher"
publish = false
[workspace.dependencies]
anyhow = "1.0"
thiserror = "2.0.18"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
schemars = "1.2"
regex = "1.12"
bstr = { version = "1.12", features = ["serde"] }
smallvec = { version = "1", features = ["const_generics", "const_new", "union"] }
parking_lot = "0.12"
tracing = "0.1"
vectorscan-rs = "0.0.6"
xxhash-rust = { version = "0.8", features = ["xxh3"] }
ignore = "0.4"
walkdir = "2.5"
include_dir = "0.7"
sha1 = "0.11"
sha2 = "0.11"
hmac = "0.13"
base32 = "0.5.1"
base64 = "0.22"
percent-encoding = "2.3"
time = "0.3"
uuid = "1.23"
rand = "0.10"
hex = "0.4"
rustc-hash = "2.1"
http = "1.4"
[package]
name = "kingfisher"
version = "1.105.0"
description = "MongoDB's blazingly fast and accurate secret scanning and validation tool"
edition.workspace = true
rust-version.workspace = true
license.workspace = true
authors.workspace = true
homepage.workspace = true
repository.workspace = true
publish.workspace = true
[package.metadata.deb]
name = "kingfisher"
maintainer = "Mick Grove <mick.grove@mongodb.com>"
depends = "$auto"
section = "utils"
priority = "optional"
assets = [
["target/release/kingfisher", "/usr/bin/kingfisher", "755"]
]
[package.metadata.generate-rpm]
package = "kingfisher"
summary = "MongoDB's blazingly fast and accurate secret scanning and validation tool"
license = "Apache-2.0"
url = "https://github.com/mongodb/kingfisher"
assets = [
{ source = "target/release/kingfisher", dest = "/usr/bin/kingfisher", mode = "755" }
]
[dependencies]
# Library crates
kingfisher-core = { path = "crates/kingfisher-core" }
kingfisher-rules = { path = "crates/kingfisher-rules" }
kingfisher-scanner = { path = "crates/kingfisher-scanner", features = ["validation-all"] }
clap = { version = "4.6", features = [
"cargo",
"derive",
"env",
"unicode",
"wrap_help",
] }
anyhow = "1.0"
bstr = { version = "1.12", features = ["serde"] }
fixedbitset = "0.5"
gix = { version = "0.84", features = ["max-performance-safe", "serde", "blocking-network-client"] }
ignore = "0.4"
petgraph = "0.8"
roaring = "0.11.4"
schemars = "1.2"
serde = { version = "1.0", features = ["derive", "rc"] }
smallvec = { version = "1", features = [
"const_generics",
"const_new",
"union",
] }
tracing = "0.1.44"
indicatif = { version = "0.18", features = ["improved_unicode"] }
rayon = "1.12"
hex = "0.4.3"
vectorscan-rs = "0.0.6"
regex = "1.12.4"
serde_json = "1.0.150"
toon-format = { version = "0.5.0", default-features = false }
url = "2.5.8"
include_dir = { version = "0.7", features = ["glob"] }
strum = { version = "0.28", features = ["derive"] }
sysinfo = "0.39.3"
webbrowser = "1.2.1"
reqwest = { version = "0.13", default-features = false, features = [
"json",
"gzip",
"brotli",
"deflate",
"form",
"query",
"stream",
"rustls",
"blocking",
"multipart",
] }
# gouqi 0.20 exposes reqwest 0.12's Client in its public async constructor.
reqwest_0_12 = { package = "reqwest", version = "0.12.28", default-features = false, features = [
"json",
"rustls-tls",
] }
axum = { version = "0.8", default-features = false, features = ["tokio", "http1"] }
chrono = "0.4.45"
thiserror = "2.0.18"
tokio = { version = "1.52.3", features = ["full"] }
base64 = "0.22.1"
crossbeam-channel = "0.5.15"
indenter = "0.3.4"
serde-sarif = "0.8"
console = "0.16.3"
tempfile = "3.27.0"
http = "1.4.2"
liquid = "0.26.11"
liquid-core = "0.26.11"
flate2 = "1.1"
thousands = "0.2.0"
crossbeam-skiplist = "0.1.3"
tokio-postgres = { version = "0.7", default-features = false, features = ["runtime"] }
# Temporary Git pin: keeps MongoDB SRV validation enabled while using the upstream
# Hickory 0.26 DNS-resolver fix before it is available in a crates.io release.
# TODO: switch back to a crates.io mongodb release once it includes that fix.
mongodb = { git = "https://github.com/mongodb/mongo-rust-driver", rev = "bdddefc50c4794d51d10b944320d42c6eb216b04", default-features = false, features = ["rustls-tls", "aws-auth", "compat-3-0-0", "dns-resolver"] }
mysql_async = { version = "0.37.0", default-features = false, features = ["default-rustls"] }
aws-config = { version = "1.8.18", default-features = false, features = ["default-https-client", "rt-tokio", "credentials-process", "sso"] }
aws-credential-types = "1.2.14"
aws-sdk-sts = { version = "1.107.0", default-features = false, features = ["default-https-client", "rt-tokio"] }
aws-types = "1.3.16"
parking_lot = "0.12.5"
tracing-subscriber = {version = "0.3.23", features = ["env-filter"] }
tracing-core = "0.1.36"
aws-smithy-http-client = "1.1.13"
aws-smithy-runtime-api = "1.12.3"
aws-smithy-types = "1.5.0"
cssparser = { version = "0.37.0", default-features = false }
tl = "0.7.8"
tree_magic_mini = "3.2"
content_inspector = "0.2.4"
rustc-hash = "2.1.2"
bzip2-rs = "0.1.2"
zip = { version = "8.6.0", default-features = false, features = ["deflate", "deflate64", "time"] }
tar = "0.4.46"
lzma-rs = "0.3.0"
asar = "0.3.0"
cfb = "0.14"
rusqlite = { version = "0.40", features = ["bundled"] }
blake3 = "1.8.5"
memchr = "2.8"
memmap2 = "0.9.10"
futures = "0.3.32"
dashmap = "6.2.1"
xxhash-rust = { version = "0.8.15", features = ["xxh3", "const_xxh3"] }
serde_yaml = "0.9.34"
hmac = { workspace = true }
sha1 = { workspace = true }
sha2 = { workspace = true }
humantime = "2.3.0"
path-dedot = "3.1.1"
quick-xml = { version = "0.40.1", features = ["serde", "serialize"] }
rustls = "0.23.40"
tokio-postgres-rustls = "0.14.0"
rustls-native-certs = "0.8.4"
color-backtrace = "0.7.2"
mimalloc = { version = "0.1.52", features = ["override"] }
thread_local = "1.1.9"
bloomfilter = "3.0.1"
uuid = "1.23.3"
rand = "0.10.1"
percent-encoding = "2.3.2"
self_update = { version = "0.44.0", default-features = false, features = ["reqwest", "rustls", "archive-tar", "archive-zip", "compression-flate2"] }
semver = "1.0.28"
globset = "0.4.18"
ipnet = "2.12.0"
gouqi = { version = "0.20.0", features = ["async"] }
oci-client = { version = "0.17", default-features = false, features = ["rustls-tls"] }
walkdir = "2.5.0"
aws-sdk-s3 = { version = "1.137.0", default-features = false, features = ["default-https-client", "rt-tokio"] }
aws-sdk-iam = { version = "1.113.0", default-features = false, features = ["default-https-client", "rt-tokio"] }
aws-sdk-ec2 = { version = "1.232.1", default-features = false, features = ["default-https-client", "rt-tokio"] }
aws-sdk-dynamodb = { version = "1.116.0", default-features = false, features = ["default-https-client", "rt-tokio"] }
aws-sdk-lambda = { version = "1.128.0", default-features = false, features = ["default-https-client", "rt-tokio"] }
aws-sdk-kms = { version = "1.111.0", default-features = false, features = ["default-https-client", "rt-tokio"] }
aws-sdk-secretsmanager = { version = "1.108.0", default-features = false, features = ["default-https-client", "rt-tokio"] }
aws-sdk-sqs = { version = "1.102.0", default-features = false, features = ["default-https-client", "rt-tokio"] }
aws-sdk-sns = { version = "1.104.0", default-features = false, features = ["default-https-client", "rt-tokio"] }
aws-sdk-rds = { version = "1.137.1", default-features = false, features = ["default-https-client", "rt-tokio"] }
aws-sdk-ecr = { version = "1.120.0", default-features = false, features = ["default-https-client", "rt-tokio"] }
aws-sdk-ssm = { version = "1.113.0", default-features = false, features = ["default-https-client", "rt-tokio"] }
gcloud-storage = { version = "1.3.0", default-features = false, features = [
"rustls-tls",
"auth",
"jwt-rust-crypto",
] }
tokei = "14.0.0"
crc32fast = "1.5.0"
bytes = "1.12.0"
tokio-rustls = "0.26.4"
h2 = "0.4.15"
wait-timeout = "0.2"
[dependencies.tikv-jemallocator]
version = "0.7"
optional = true
[target.'cfg(unix)'.dependencies]
libc = "0.2"
[features]
default = ["use-mimalloc"]
use-mimalloc = []
use-jemalloc = ["tikv-jemallocator"]
system-alloc = [] # Darwin-only: force the system allocator
[dev-dependencies]
pretty_assertions = "1.4"
temp-env = "0.3.6"
wiremock = "0.6.5"
git2 = { version = "0.21.0", default-features = false }
rand_chacha = "0.10.0"
testcontainers = "0.27.3"
predicates = "3.1.4"
assert_cmd = "2.2.2"
proptest = "1.11.0"
jsonwebtoken = { version = "10.4.0", default-features = false, features = ["rust_crypto"] }
# Test-only: generate an ephemeral RSA keypair for the RS256 JWT regression test.
# `getrandom` enables `rsa::rand_core::OsRng`; `pem` is on by default for PEM export.
rsa = { version = "0.9.10", features = ["getrandom"] }
[profile.release]
debug = false
strip = true
opt-level = "s" # Optimize for smaller binary size over speed
lto = true # Enable Link Time Optimization
codegen-units = 1 # Optimize for size but slower compilation
panic = "abort" # Remove unwind tables for panics
rpath = false # Don't embed path dependencies
incremental = false
[profile.dev]
opt-level = 0
debug = true
incremental = true
codegen-units = 256
[patch.crates-io]
vectorscan-rs = { path = "vendor/vectorscan-rs/vectorscan-rs" }
vectorscan-rs-sys = { path = "vendor/vectorscan-rs/vectorscan-rs-sys" }
[profile.profiling]
inherits = "release"
debug = true