Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
0769cbf
feat(axum): add safe diagnostics and trusted proxy metadata
ChristianPavilonis Oct 7, 2026
61fc149
fix(axum): keep diagnostics behind its native runtime feature
ChristianPavilonis Nov 10, 2026
3cb7f85
Merge verified lower-stack fixture lock
ChristianPavilonis Nov 10, 2026
9fa1666
fix(ci): align diagnostic fixture locks with required dependencies
ChristianPavilonis Nov 10, 2026
bee8dc0
Merge corrected lower-stack feature and CI contracts
ChristianPavilonis Nov 10, 2026
3b52b80
fix(axum): separate trusted ingress from retired proxy transport
ChristianPavilonis Nov 10, 2026
ef42131
Merge managed demo logging regression alignment
ChristianPavilonis Nov 10, 2026
5bbff2b
Merge native-only scaffold correction into diagnostics stack
ChristianPavilonis Nov 10, 2026
027e161
Prepare authenticated head facts before stripping forwarded fields
ChristianPavilonis Nov 12, 2026
3708ffa
Carry prepared-router installation through the review stack
ChristianPavilonis Nov 12, 2026
daae624
Merge current parent repairs into PR 409
ChristianPavilonis Nov 12, 2026
31f46bd
Retain callback-scope fixture repair in PR 409
ChristianPavilonis Nov 12, 2026
b8c6566
Merge owned cutover follow-up through PR 409
ChristianPavilonis Nov 13, 2026
e19a032
Merge PR #407 into PR #409 for outbound compatibility stack
ChristianPavilonis Nov 13, 2026
e1350bb
Merge PR #407 into PR #409 for outbound compatibility stack
aram356 Nov 14, 2026
95bdc71
Merge PR #407 into PR #409 for outbound compatibility stack
aram356 Nov 16, 2026
1649953
Merge PR #407 into PR #409 for outbound compatibility stack
aram356 Nov 17, 2026
2aea73c
Merge PR #407 into PR #409 for outbound compatibility stack
aram356 Nov 25, 2026
5a47218
Merge PR #407 into PR #409 for outbound compatibility stack
aram356 Nov 25, 2026
1cd4871
Merge PR #407 into PR #409 for outbound compatibility stack
aram356 Nov 26, 2026
7d085b1
Hold port reservations and lock client connects in the diagnostics tests
aram356 Nov 26, 2026
9c4a2f7
Send the diagnostics tests' requests to the live host's address
aram356 Nov 26, 2026
c317517
Merge PR #407 into PR #409 for outbound compatibility stack
aram356 Nov 26, 2026
d37a57b
fix(axum): address proxy trust and diagnostics review
ChristianPavilonis Nov 30, 2026
3f6d0da
Merge PR #407 forward into PR #409
ChristianPavilonis Nov 30, 2026
381eb66
Document that ForwardedHost is trust-checked only on managed Axum
aram356 Dec 1, 2026
35aa66d
Merge PR #407 into PR #409 for the identity integration chain
aram356 Dec 1, 2026
32e125b
Merge PR #407 into PR #409 for the identity integration chain
aram356 Dec 1, 2026
6fd1f2c
Merge PR #407 into PR #409 for the identity integration chain
aram356 Dec 1, 2026
7674c8d
Merge PR #407 into PR #409 for the identity integration chain
aram356 Dec 3, 2026
d59ec49
Merge local PR #407 fixes into PR #409
aram356 Dec 4, 2026
41e22a4
Describe ForwardedHost per adapter in the handlers guide
aram356 Dec 4, 2026
db3914a
Say the low-level Axum converter also returns fixed JSON parse text
aram356 Dec 4, 2026
164bc8e
Say an all-trusted chain leaves the client unavailable in the Axum guide
aram356 Dec 4, 2026
f2ab54e
Mark the Axum proxy-trust changelog entries as breaking
aram356 Dec 4, 2026
f45fbc1
Validate only the forwarding list members the trust walk reads
aram356 Dec 4, 2026
6431cf5
Merge PR #407 into PR #409 for the identity integration chain
aram356 Dec 4, 2026
2293673
Merge PR #407 into PR #409 for the identity integration chain
aram356 Dec 4, 2026
b273bfe
Merge PR #407 into PR #409 for the identity integration chain
aram356 Dec 4, 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
19 changes: 19 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,25 @@

## Unreleased

### Axum diagnostics and proxy trust

- **Breaking:** Managed Axum hosting now removes raw `Forwarded` and every `X-Forwarded-*`
field before admission, under every proxy policy, including the default no-trust policy.
Use checked metadata in place of those headers. Invalid or unresolved assertions from a
trusted proxy leave the client unavailable; the socket peer is still available separately.
- **Breaking:** On managed Axum, `edgezero_core::ForwardedHost` returns the trust-checked
public host and never reads raw `X-Forwarded-Host`. Without trusted proxy configuration
that is the direct `Host`, or `localhost` when there is none. Fastly, Cloudflare, Spin, and
the low-level `request::into_core_request` converter still return the raw,
client-controlled header.
- **Breaking:** Managed framework path, query, and form parse errors return fixed text with
HTTP 400, and managed `Validated*` extractors return `validation failed` with HTTP 422. JSON
parse errors on bodies carrying the native buffering policy, including those from the
low-level converter, return `invalid JSON payload` without serde detail.

See the [Axum diagnostics guide](docs/guide/axum-diagnostics.md) for migration, readiness
settings, and request records.

### Axum buffered JSON limits and body API

- **Breaking:** On Axum, ordinary `Json` and `ValidatedJson` now default to 2 MiB
Expand Down
22 changes: 13 additions & 9 deletions Cargo.lock

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

4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,15 @@ fern = "0.7"
flate2 = { version = "=1.1.9", default-features = false, features = ["rust_backend"] }
futures = { version = "0.3", features = ["std", "executor"] }
futures-util = { version = "0.3", features = ["alloc", "io"] }
getrandom = "0.4.2"
handlebars = "6"
http = "=1.4.2"
http-body = "1"
http-body-util = "0.1"
httparse = "=1.10.1"
hyper = { version = "=1.12.0", features = ["http1", "server"] }
hyper-util = { version = "0.1", features = ["tokio"] }
ipnet = "2.12"
log = "0.4"
libc = "0.2"
miniz_oxide = { version = "=0.8.9", default-features = false, features = ["simd", "with-alloc"] }
Expand All @@ -90,6 +92,7 @@ simd-adler32 = { version = "=0.3.9", default-features = false }
# file (`<spin.toml dir>/.spin/sqlite_key_value.db`) using the schema
# vendored from spinframework/spin's `crates/key-value-spin/src/store.rs`.
rusqlite = { version = "0.40", default-features = false, features = ["bundled"] }
rustls = { version = "=0.23.46", default-features = false, features = ["std", "tls12", "aws_lc_rs"] }
ryu = "1"
serde = { version = "1", features = ["derive"] }
serde_json = "=1.0.150"
Expand All @@ -113,6 +116,7 @@ tempfile = "3"
toml_edit = "0.25"
thiserror = "2"
tokio = { version = "1", features = ["io-util", "macros", "net", "rt-multi-thread", "signal", "sync", "time"] }
tokio-rustls = { version = "=0.26.4", default-features = false, features = ["tls12", "aws_lc_rs"] }
trybuild = "1"
toml = { version = "1.1" }
tower = { version = "0.5", features = ["util"] }
Expand Down
6 changes: 6 additions & 0 deletions crates/edgezero-adapter-axum/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ axum = [
"dep:http-body",
"dep:hyper",
"dep:hyper-util",
"dep:ipnet",
"dep:getrandom",
"dep:mime",
"dep:reqwest",
"dep:redb",
Expand All @@ -47,10 +49,12 @@ bytes = { workspace = true }
ctor = { workspace = true, optional = true }
futures = { workspace = true }
futures-util = { workspace = true, optional = true }
getrandom = { workspace = true, optional = true }
http = { workspace = true }
http-body = { workspace = true, optional = true }
hyper = { workspace = true, optional = true }
hyper-util = { workspace = true, optional = true }
ipnet = { workspace = true, optional = true }
log = { workspace = true }
mime = { workspace = true, optional = true }
redb = { workspace = true, optional = true }
Expand Down Expand Up @@ -85,6 +89,8 @@ http-body = { workspace = true }
httparse = { workspace = true }
hyper = { workspace = true }
hyper-util = { workspace = true }
rustls = { workspace = true }
serde = { workspace = true }
tempfile = { workspace = true }
tokio = { workspace = true, features = ["io-util", "macros", "net", "rt", "rt-multi-thread", "test-util"] }
tokio-rustls = { workspace = true }
Loading
Loading