Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
e867c12
feat(axum): configure buffered JSON body limits
ChristianPavilonis Oct 6, 2026
cb617a3
Merge corrected lower-stack fixture lock
ChristianPavilonis Nov 10, 2026
90b5e6a
Merge corrected lower-stack feature and CI contracts
ChristianPavilonis Nov 10, 2026
4856d95
fix(ci): sync buffered-body fixture MIME dependency locks
ChristianPavilonis Nov 10, 2026
b082ae6
Merge managed demo logging regression alignment
ChristianPavilonis Nov 10, 2026
8a2a0b7
Merge native-only scaffold correction into body-limit stack
ChristianPavilonis Nov 10, 2026
aac2bb8
Carry received-head preparation through buffered body limits
ChristianPavilonis Nov 12, 2026
68584fe
Carry prepared-router installation through the review stack
ChristianPavilonis Nov 12, 2026
a7240d4
Merge current parent repairs into PR 407
ChristianPavilonis Nov 12, 2026
d6f7430
Retain callback-scope fixture repair in PR 407
ChristianPavilonis Nov 12, 2026
6a0c388
Merge owned cutover follow-up through PR 407
ChristianPavilonis Nov 13, 2026
5c012b5
Merge PR #406 into PR #407 for outbound compatibility stack
ChristianPavilonis Nov 13, 2026
77fa677
Merge PR #406 into PR #407 for outbound compatibility stack
aram356 Nov 14, 2026
c92373a
Merge PR #406 into PR #407 for outbound compatibility stack
aram356 Nov 16, 2026
d3188b1
Merge PR #406 into PR #407 for outbound compatibility stack
aram356 Nov 17, 2026
eb501d6
Merge PR #406 into PR #407 for outbound compatibility stack
aram356 Nov 25, 2026
17a0edf
test(axum): retain early rejection responses during full uploads
ChristianPavilonis Nov 10, 2026
d21dcec
Merge PR #406 into PR #407 for outbound compatibility stack
aram356 Nov 25, 2026
b0c7f9c
Merge PR #406 into PR #407 for outbound compatibility stack
aram356 Nov 26, 2026
fa329ca
Hold the reservation for the JSON limit failed-startup check
aram356 Nov 26, 2026
9750b0e
Merge PR #406 into PR #407 for outbound compatibility stack
aram356 Nov 26, 2026
64447b4
Address Axum buffered JSON limit review feedback
ChristianPavilonis Nov 30, 2026
a3ad042
Merge #406 forward into #407
ChristianPavilonis Nov 30, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,22 @@

## Unreleased

### Axum buffered JSON limits and body API

- **Breaking:** On Axum, ordinary `Json` and `ValidatedJson` now default to 2 MiB
(2,097,152 bytes) instead of 8 MiB. Explicit caps above the native ceiling are clamped
for JSON helpers and for generic buffered reads on JSON ingress, including form helpers and
pre-dispatch reads. To accept larger requests, set `EDGEZERO__ADAPTER__JSON_BODY_LIMIT_BYTES`
for standalone hosting or use the fallible `with_json_body_limit_bytes` builder on
`AxumRunOptions` or `AxumDevServer`. Overflow returns typed HTTP 413; malformed JSON
remains 400. Taken streams, forwarding, manual collection, and other providers' defaults
are unchanged.
- `Body` still exposes the same struct and exhaustive `BodyPayload`. The private policy
field changes `Body`'s size and debug output, but there is no source migration for payload
consumers. Policy and cache provenance follow the original body through reconstruction,
even after header or extension edits. Raw payload handoff drops the policy and preserves
exact egress ownership.

### Portable HTTP And Request Lifecycles (PR #275)

The changes below cover [PR #275](https://github.com/IABTechLab/edgezero/pull/275), including its
Expand Down
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ libc = "0.2"
miniz_oxide = { version = "=0.8.9", default-features = false, features = ["simd", "with-alloc"] }
log-fastly = "=0.13.3"
matchit = "0.9"
mime = "0.3"
once_cell = "1"
# 4.2 asserts that no read reference outlives its transaction. That check
# is what caught the `AccessGuard` bug in the axum KV store, so the
Expand Down
2 changes: 2 additions & 0 deletions crates/edgezero-adapter-axum/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ axum = [
"dep:http-body",
"dep:hyper",
"dep:hyper-util",
"dep:mime",
"dep:reqwest",
"dep:redb",
]
Expand Down Expand Up @@ -51,6 +52,7 @@ http-body = { workspace = true, optional = true }
hyper = { workspace = true, optional = true }
hyper-util = { workspace = true, optional = true }
log = { workspace = true }
mime = { workspace = true, optional = true }
redb = { workspace = true, optional = true }
reqwest = { workspace = true, optional = true }
serde = { workspace = true }
Expand Down
4 changes: 2 additions & 2 deletions crates/edgezero-adapter-axum/src/connection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1546,7 +1546,7 @@ mod tests {

#[tokio::test(flavor = "current_thread")]
async fn json_extractor_overflow_reaches_custom_renderer_without_retry_after() {
use edgezero_core::context::DEFAULT_INBOUND_JSON_BYTES;
use crate::run_options::JsonBodyLimit;
use edgezero_core::extractor::Json;

#[edgezero_core::action]
Expand All @@ -1565,7 +1565,7 @@ mod tests {
.body(Body::from("extractor overflow"))
.expect("custom error response")
});
let cap = DEFAULT_INBOUND_JSON_BYTES;
let cap = JsonBodyLimit::DEFAULT.get().get();
let body = serde_json::to_string(&serde_json::json!("x".repeat(cap - 1)))
.expect("valid oversized JSON string");
assert_eq!(body.len(), cap + 1);
Expand Down
Loading
Loading