Skip to content

Commit 85e20ae

Browse files
committed
feat: update to latest docbox-http abstraction and implement authorizer
logic The docbox-http logic is now in its own shared crate so all of that has been moved out Added a middleware to handle taking the authorized tenant and user from the authorizer context and passing them as the expected user and tenant headers Removed warning for no API key, in this case its not "recommended for security" as the lambda will already have some sort of authorizer sitting in front of it
1 parent 068ed93 commit 85e20ae

38 files changed

Lines changed: 250 additions & 4314 deletions

Cargo.lock

Lines changed: 70 additions & 62 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 8 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,11 @@ members = [
77
]
88

99
[workspace.dependencies]
10-
docbox-core = "0.8.0"
11-
docbox-database = "0.7.0"
12-
docbox-processing = "0.3.0"
13-
docbox-search = "0.7.0"
14-
docbox-secrets = "0.4.0"
15-
docbox-storage = "0.5.0"
16-
docbox-web-scraper = "0.5.0"
10+
dotenvy = "=0.15.7"
11+
12+
# Docbox HTTP layer
13+
docbox-http = "0.6.0"
14+
docbox-core = "0.9.0"
1715

1816
# Futures utilities
1917
futures = "=0.3.31"
@@ -34,34 +32,10 @@ chrono = { version = "=0.4.42", features = ["serde"] }
3432
# AWS configuration
3533
aws-config = { version = "=1.8.12", features = ["behavior-version-latest"] }
3634

37-
# URL parsing
38-
url = "=2.5.7"
39-
40-
# UUID v4 support
41-
uuid = { version = "=1.19.0", features = ["v4", "serde"] }
42-
4335
# Serialization and JSON
4436
serde = { version = "=1.0.228", features = ["derive"] }
4537
serde_json = "=1.0.148"
46-
serde_with = "=3.16.1"
47-
48-
# Mime types, parsing, extension guessing, reverse mime lookup
49-
mime = "=0.3.17"
50-
mime_guess = "=2.0.5"
51-
mime2ext = "=0.1.54"
5238

53-
# HTTP primitives
54-
http = "=1.3.1"
55-
56-
# Validation
57-
garde = { version = "=0.22.1", features = ["derive", "full"] }
58-
59-
# OpenAPI spec generation
60-
utoipa = { version = "=5.4.0", features = [
61-
"url",
62-
"uuid",
63-
"chrono",
64-
"axum_extras",
65-
] }
66-
67-
dotenvy = "=0.15.7"
39+
[patch.crates-io]
40+
docbox-http = { version = "0.6.0", path = "../docbox/packages/docbox-http" }
41+
docbox-core = { version = "0.9.0", path = "../docbox/packages/docbox-core" }

0 commit comments

Comments
 (0)