-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathCargo.toml
More file actions
316 lines (288 loc) · 11.3 KB
/
Cargo.toml
File metadata and controls
316 lines (288 loc) · 11.3 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
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
[workspace]
resolver = "2"
members = [
# Application crates
"crates/temps-cli",
# Library crates
"crates/temps-core",
"crates/temps-entities",
"crates/temps-migrations",
"crates/temps-database",
"crates/temps-queue",
"crates/temps-auth",
"crates/temps-git",
"crates/temps-presets",
"crates/temps-logs",
"crates/temps-deployer",
"crates/temps-projects",
"crates/temps-domains",
"crates/temps-proxy",
"crates/temps-providers",
"crates/temps-query",
"crates/temps-query-postgres",
"crates/temps-query-s3",
"crates/temps-query-redis",
"crates/temps-query-mongodb",
"crates/temps-deployments",
"crates/temps-backup",
"crates/temps-notifications",
"crates/temps-monitoring",
"crates/temps-mcp",
"crates/temps-analytics",
"crates/temps-audit",
"crates/temps-config",
"crates/temps-geo",
"crates/temps-analytics-events",
"crates/temps-routes",
"crates/temps-analytics-funnels",
"crates/temps-analytics-session-replay",
"crates/temps-infra",
"crates/temps-error-tracking",
"crates/temps-analytics-performance",
"crates/temps-status-page",
"crates/temps-static-files",
"crates/temps-import-types",
"crates/temps-import",
"crates/temps-import-docker",
"crates/temps-captcha-wasm",
"crates/temps-webhooks",
"crates/temps-email",
"crates/temps-dns",
"crates/temps-vulnerability-scanner",
"crates/temps-kv",
"crates/temps-blob",
"crates/temps-log-aggregator",
"crates/temps-otel",
"crates/temps-environments",
"crates/temps-screenshots",
"crates/temps-embeddings",
"crates/temps-plugin-sdk",
"crates/temps-wireguard",
"crates/temps-agent",
"crates/temps-external-plugins",
"examples/example-plugin",
"examples/lighthouse-plugin",
"examples/indexnow-plugin",
"examples/google-indexing-plugin",
]
[workspace.package]
version = "0.1.0"
edition = "2021"
license = "Apache-2.0"
authors = ["Temps Contributors"]
repository = "https://github.com/gotempsh/temps"
homepage = "https://github.com/gotempsh/temps"
[workspace.dependencies]
# ============================================================================
# Async Runtime & Concurrency
# ============================================================================
tokio = { version = "1.47.1", features = ["full"] }
tokio-util = { version = "0.7", features = ["codec"] }
futures = "0.3.31"
futures-util = "0.3.31"
async-trait = "0.1.68"
async-stream = "0.3"
# ============================================================================
# Serialization & Deserialization
# ============================================================================
serde = { version = "=1.0.228", features = ["derive", "rc"] }
serde_derive = "1.0"
serde_json = "1.0.140"
serde_yaml = "0.9"
serde_urlencoded = "0.7.1"
serde_bytes = "0.11.17"
serde_path_to_error = "0.1.20"
serde_test = "1.0.177"
serde-transcode = "1.1.1"
serde-vars = "0.2.0"
# ============================================================================
# Error Handling & Logging
# ============================================================================
anyhow = "1.0.86"
thiserror = "2.0.17"
log = "0.4"
tracing = "0.1.40"
tracing-subscriber = { version = "0.3.18", features = ["env-filter", "std", "fmt", "registry"] }
# ============================================================================
# Date/Time & UUID
# ============================================================================
chrono = { version = "0.4.38", features = ["serde"] }
uuid = { version = "1.10.0", features = ["v4", "v5", "fast-rng", "macro-diagnostics"] }
# ============================================================================
# Database - ORM & Migrations
# ============================================================================
sea-orm = { version = "1.1.14", features = [
"sqlx-sqlite",
"sqlite-use-returning-for-3_35",
"sqlx-postgres",
"runtime-tokio-rustls",
"macros",
"with-chrono",
"with-json",
"with-uuid",
"debug-print",
"mock"
] }
sea-orm-migration = { version = "1.1", features = [
"sqlx-sqlite",
"sqlite-use-returning-for-3_35",
"sqlx-postgres",
"runtime-tokio-rustls"
] }
sqlx = { version = "0.8.6", features = ["postgres", "runtime-tokio"] }
rusqlite = { version = "0.32.0", features = ["bundled", "trace"] }
# ============================================================================
# HTTP Framework & Web Server
# ============================================================================
axum = { version = "0.8", features = ["multipart", "form", "ws"] }
axum-macros = "0.5.0-alpha.1"
tower = { version = "0.5", features = ["util"] }
tower-http = { version = "0.6.2", features = ["cors", "fs", "catch-panic", "trace"] }
tower-cookies = "0.11"
cookie = "0.18"
http = "1.3.1"
http-body-util = "0.1"
hyper = { version = "1.5.2", features = ["full"] }
# ============================================================================
# HTTP Client
# ============================================================================
reqwest = { version = "0.12.15", features = ["json", "stream", "multipart"] }
# ============================================================================
# API Documentation (OpenAPI/Swagger)
# ============================================================================
utoipa = { version = "5.4.0", features = ["axum_extras", "debug"] }
utoipa-swagger-ui = { version = "9.0.2", features = ["axum", "vendored"], default-features = false }
schemars = { version = "0.8", features = ["preserve_order"] }
# ============================================================================
# Cryptography & Security
# ============================================================================
argon2 = "0.5"
aes-gcm = "0.10.3"
totp-rs = "5.7.0"
sha2 = "0.10.9"
base64 = "0.22"
hex = "0.4.3"
# ============================================================================
# TLS & Certificate Management
# ============================================================================
instant-acme = "0.7.2"
rcgen = { version = "0.13.2", features = ["x509-parser"] }
rustls = { version = "0.23", default-features = false, features = [
"ring",
"std",
"tls12",
"logging",
"aws_lc_rs"
] }
rustls-platform-verifier = "0.5"
webpki-roots = "0.26"
# ============================================================================
# Reverse Proxy (Pingora)
# ============================================================================
pingora = { version = "0.8.0" }
pingora-core = { version = "0.8.0", features = ["openssl", "connection_filter"] }
pingora-proxy = { version = "0.8.0" }
prometheus = "0.14"
# ============================================================================
# External Service Integrations
# ============================================================================
# Cloud Storage (S3/MinIO)
aws-sdk-s3 = "1.112.0"
aws-config = { version = "1.6", features = ["rustls", "rt-tokio"] }
# Caching (Redis)
redis = { version = "0.28.2", features = ["tokio-comp", "connection-manager"] }
# Email (SMTP)
lettre = { version = "0.11.11", features = ["tokio1", "tokio1-rustls-tls", "smtp-transport", "tokio1-native-tls"] }
# Git Providers (GitHub, GitLab)
octocrab = "0.49.5"
# ============================================================================
# Container Management (Docker)
# ============================================================================
bollard = { version = "0.20.1", features = ["buildkit", "buildkit_providerless", "chrono", "json_data_content"] }
# ============================================================================
# Scheduling & Background Jobs
# ============================================================================
cron = "0.15.0"
# ============================================================================
# String & URL Utilities
# ============================================================================
url = "2.5.4"
urlencoding = "2.1"
slug = "0.1.6"
regex = "1.11"
# ============================================================================
# Compression & Archive
# ============================================================================
flate2 = "1.0"
tar = "0.4"
zip = "2.2"
zstd = "0.13"
# ============================================================================
# CLI Framework
# ============================================================================
clap = { version = "4.4", features = ["derive", "env"] }
# ============================================================================
# System & Utilities
# ============================================================================
bytes = "1.11.1"
libc = "0.2"
rand = "0.8"
sysinfo = "0.29.0"
tempfile = "3.12.0"
once_cell = "1.20"
notify = "6.1"
# ============================================================================
# User Agent & Analytics
# ============================================================================
woothee = "0.13.0"
# ============================================================================
# Testing
# ============================================================================
# Using git version for security fixes:
# - Uses astral-tokio-tar instead of vulnerable tokio-tar (RUSTSEC-2025-0111)
# - Compatible with bollard 0.19.x
testcontainers = "0.27.1"
[profile.release]
codegen-units = 1
opt-level = 3
[profile.dev]
opt-level = 0
debug = true
incremental = true
codegen-units = 16
[profile.dev.package."*"]
opt-level = 2 # Optimize dependencies
# ============================================================================
# Dependency Overrides - Security Fixes
# ============================================================================
# Known vulnerabilities from transitive dependencies (blocked on upstream):
#
# 1. CVE-2025-53605: Protobuf 2.28.0 (MEDIUM severity)
# - Path: pingora → prometheus 0.13.4 → protobuf 2.28.0
# - Fix: Requires prometheus to upgrade to 0.14+ (which uses protobuf 3.7.2+)
# - Status: Waiting for pingora to update prometheus dependency
# - Mitigation: protobuf is used internally by Prometheus metrics, not exposed to untrusted input
#
# 2. GHSA-mc8h-8q98-g5hr: remove_dir_all 0.5.3 (LOW severity)
# - Path: nixpacks → tempdir → remove_dir_all 0.5.3
# - Fix: Requires nixpacks to update to use tempfile instead of deprecated tempdir
# - Status: Tracked in nixpacks repository (nixpacks 1.41.0 is latest, still uses tempdir)
# - Mitigation: TOCTOU race condition, low impact in our usage
#
# 3. GHSA-xxx: libcrux-intrinsics 0.0.3 (HIGH severity, dev-dependency only)
# - Path: testcontainers → russh → libcrux-ml-kem → libcrux-intrinsics 0.0.3
# - Fix: Requires russh to upgrade libcrux dependencies
# - Status: Dev-dependency only, zero production impact
#
# 4. GHSA-xxx: astral-tokio-tar 0.5.6 (HIGH severity, dev-dependency only)
# - Path: testcontainers → astral-tokio-tar 0.5.6
# - Fix: No upstream fix available
# - Status: Dev-dependency only (testcontainers), zero production impact
#
# Previously resolved:
# - atty 0.2.14: RESOLVED in Pingora 0.7.0 (upgraded to clap 4.5)
# - idna 0.2.3: RESOLVED by upgrading check-if-email-exists 0.9 → 0.11
# - lru 0.12.5: RESOLVED by upgrading aws-sdk-s3 (new version dropped lru 0.12)
#
# All remaining items are transitive dependencies from third-party crates that we
# cannot directly patch without forking. Monitoring upstream for updates.