Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
463 commits
Select commit Hold shift + click to select a range
76df6f8
Resolve PR review findings
prk-Jr Apr 30, 2026
2a908d4
Merge branch 'main' into feature/edgezero-pr11-utility-layer-migratio…
prk-Jr Apr 30, 2026
65d1e2d
Fix fmt lint
prk-Jr Apr 30, 2026
73734dd
Rename synthetic_id_cookie_value_is_safe → ec_cookie_value_is_safe
prk-Jr Apr 30, 2026
c23663c
Resolve PR review findings
prk-Jr Apr 30, 2026
ca5585c
Merge branch 'feature/edgezero-pr11-utility-layer-migration-v2' into …
prk-Jr Apr 30, 2026
86bd21e
Resolve PR review findings
prk-Jr Apr 30, 2026
9694980
Merge branch 'feature/edgezero-pr12-handler-layer-types' into feature…
prk-Jr Apr 30, 2026
c17fa27
Address PR review findings
prk-Jr Apr 30, 2026
f797f56
Resolve PR 624 review findings
prk-Jr May 12, 2026
e50068e
Merge main into feature/edgezero-pr12-handler-layer-types
prk-Jr May 12, 2026
cd4c621
Call StreamingBody::finish() to properly terminate chunked response
prk-Jr May 12, 2026
e093d01
Apply cargo fmt formatting
prk-Jr May 12, 2026
bf31cca
Resolve PR 626 review findings
prk-Jr May 12, 2026
f360b82
Apply cargo fmt formatting
prk-Jr May 12, 2026
28205a0
Merge feature/edgezero-pr12-handler-layer-types into PR13
prk-Jr May 12, 2026
611c68f
Merge feature/edgezero-pr13-integration-provider-type-migration
prk-Jr May 12, 2026
3cca51c
Address review Non blocker findings
prk-Jr May 12, 2026
50dc61f
Restore EdgeZero consent KV wiring
prk-Jr May 12, 2026
4bb18cb
Merge EdgeZero PR14 updates into PR15 branch
prk-Jr May 12, 2026
978fbb2
Resolve PR review findings and add startup listen log
prk-Jr May 12, 2026
130de76
Merge feature/edgezero-pr15-remove-fastly-core into PR16
prk-Jr May 12, 2026
6574790
Address PR 628 review findings
prk-Jr May 13, 2026
314575b
Fix .gitignore comment: attribute .edgezero/ to upstream framework
prk-Jr May 13, 2026
bff1adc
Remove unused backend.rs — duplicate DEFAULT_FIRST_BYTE_TIMEOUT alrea…
prk-Jr May 13, 2026
ed77810
Resolve PR review findings
prk-Jr May 13, 2026
547c6f1
Merge feature/edgezero-pr16-axum-dev-server and add Cloudflare aliases
prk-Jr May 13, 2026
b4851c4
Fix integration test failure
prk-Jr May 13, 2026
3df4232
Merge branch 'feature/edgezero-pr16-axum-dev-server' into feature/edg…
prk-Jr May 13, 2026
15206b6
Fix cargo clippy fastly
prk-Jr May 13, 2026
189c57c
Update pr review findings
prk-Jr May 14, 2026
6475490
Resolve PR review findings: Axum fallback method parity and stale cli…
prk-Jr May 14, 2026
a499f93
Add Phase 5 verification plan for PR-18
prk-Jr May 20, 2026
ede4e81
Add route smoke tests for all Cloudflare adapter routes
prk-Jr May 20, 2026
acd3f5d
Fix rustfmt formatting in Cloudflare route smoke tests
prk-Jr May 20, 2026
7efa2ff
Add basic-auth parity tests to Axum and Cloudflare adapters
prk-Jr May 20, 2026
69d3693
Fix unwrap_or and comment inconsistency in basic-auth parity tests
prk-Jr May 20, 2026
75fac49
Add admin key route full path coverage to Axum and Cloudflare adapters
prk-Jr May 20, 2026
e891f5e
Tighten storage-fail assertion and add duplicate context comments
prk-Jr May 20, 2026
72be307
Add cross-adapter in-process parity test suite (Axum vs Cloudflare)
prk-Jr May 20, 2026
4f79021
Fix parity test review issues: expect messages, dead if guard, unused…
prk-Jr May 20, 2026
040a77b
Add error-correlation unit tests for PlatformResponse backend_name
prk-Jr May 20, 2026
1e2979d
Add HTML rewriting golden tests, response size check, and Criterion b…
prk-Jr May 20, 2026
0e4d2ea
Add criterion::black_box to benchmark input for measurement purity
prk-Jr May 20, 2026
24f122f
Add cross-adapter parity and benchmark CI gates for Phase 5 verification
prk-Jr May 20, 2026
99967c8
Add inline comment explaining -- --test flag in benchmark CI step
prk-Jr May 20, 2026
8a509ac
Update Cargo.lock files after adding parity test dependencies
prk-Jr May 20, 2026
c114209
Pin axum/tower/tokio versions in integration-tests to match workspace
prk-Jr May 20, 2026
84cbdfe
Pin tokio to exact workspace version =1.52.3 in integration-tests
prk-Jr May 20, 2026
95fde69
Create parent directory before writing build output config
prk-Jr May 20, 2026
0b2228c
Remove redundant wrong-credentials tests from admin key route coverage
prk-Jr May 20, 2026
fdef759
Fix admin_rotate_unauthenticated_parity: assert both adapters return 401
prk-Jr May 20, 2026
5123bd4
Add clippy gate for integration-tests crate in test-parity CI job
prk-Jr May 20, 2026
641bfde
Extract MAX_GROWTH_FACTOR constant in html_processor growth test
prk-Jr May 20, 2026
d7670aa
Fix trailing blank line in Cloudflare routes test file
prk-Jr May 20, 2026
b6a8894
Add clippy component to test-parity toolchain setup
prk-Jr May 20, 2026
a521479
Use multi_thread tokio flavor for all CF adapter route tests
prk-Jr May 20, 2026
5f91da2
Add first-party route smoke tests to Axum adapter
prk-Jr May 20, 2026
c0f2eec
Strengthen parity test assertions for unauthenticated admin routes
prk-Jr May 20, 2026
161c41e
Document tokio exact pin in integration-tests Cargo.toml
prk-Jr May 20, 2026
611fab8
Add canary routing helpers: parse_rollout_pct, fnv1a_bucket, canary_r…
prk-Jr May 21, 2026
5718303
Add pinned FNV-1a test vector and debug_assert for canary bucket range
prk-Jr May 21, 2026
8ef14ec
Add edgezero_rollout_pct canary routing to Fastly entry point
prk-Jr May 21, 2026
8b8c303
Add edgezero_rollout_pct key to local Viceroy config store
prk-Jr May 21, 2026
76aee4a
Add EdgeZero canary rollout ops runbook
prk-Jr May 21, 2026
a1678dc
Warn when edgezero_rollout_pct key is absent (backward-compat full ro…
prk-Jr May 21, 2026
81d5179
Resolve review findings: canary preconditions, missing-IP log, runboo…
prk-Jr May 21, 2026
9c35fbf
Apply rustfmt formatting
prk-Jr May 21, 2026
b30581c
Merge branch 'main' into feature/edgezero-pr12-handler-layer-types
prk-Jr May 21, 2026
0f36454
Generate plan for spin adapter
prk-Jr May 22, 2026
f9e46dd
Resolve PR review findings: Axum/Fastly parity and stale docs
prk-Jr May 22, 2026
a6e1073
Resolve PR review findings: Axum/Fastly parity and stale docs
prk-Jr May 23, 2026
01fd4c1
Tighten the spin adapter integration plan
prk-Jr May 23, 2026
b29b377
Add Fermyon Spin adapter with EdgeZero rev bump and CI
prk-Jr May 25, 2026
89ab20a
Bump worker-build to ^0.8 for worker 0.8 compatibility
prk-Jr May 25, 2026
d5b745d
Reject digit-leading KIDs in validate_kid
prk-Jr May 27, 2026
4c4f1b6
Fix Spin adapter WASI HTTP proxy and variable encoding
prk-Jr May 27, 2026
951a35c
Merge branch 'feature/edgezero-pr19-spin-adapter' into feature/edgeze…
prk-Jr May 27, 2026
1f86068
Remove legacy route_request test file
prk-Jr May 27, 2026
4757b40
Delete legacy_main, canary routing, and flag plumbing
prk-Jr May 27, 2026
7b9c42a
Add doc comment to edgezero_main
prk-Jr May 27, 2026
83b5803
Delete legacy-only compat functions and error module
prk-Jr May 27, 2026
aaa5bb6
Fix single-item braced import in compat.rs
prk-Jr May 27, 2026
828a8ea
Strip canary tests and unused imports from main.rs
prk-Jr May 27, 2026
50a1569
Remove build_runtime_services from Fastly platform module
prk-Jr May 27, 2026
28ab835
Remove stale legacy references from doc comments
prk-Jr May 28, 2026
4712a5a
Fix residual stale prose references to route_request
prk-Jr May 28, 2026
b1fe218
Remove edgezero_enabled and edgezero_rollout_pct from fastly.toml
prk-Jr May 28, 2026
e77a7ff
Format after legacy cleanup
prk-Jr May 28, 2026
db96c5f
Fix clippy warnings after legacy cleanup
prk-Jr May 28, 2026
dd0c2fc
Format plan document with Prettier
prk-Jr May 28, 2026
58b754a
Resolve PR 624 round-6 review findings
prk-Jr May 28, 2026
62923fd
Merge branch 'main' into feature/edgezero-pr12-handler-layer-types
prk-Jr May 28, 2026
f551544
Resolve PR 626 round-1 review findings
prk-Jr May 28, 2026
2b17d4c
Merge feature/edgezero-pr12-handler-layer-types into PR13
prk-Jr May 28, 2026
1973b5d
Resolve PR 628 round-1 review findings
prk-Jr May 28, 2026
8a83c5e
Merge feature/edgezero-pr13-integration-provider-type-migration into …
prk-Jr May 28, 2026
72ddc42
Resolve PR 635 round-1 review findings
prk-Jr May 28, 2026
5225c01
Merge feature/edgezero-pr14-entry-point-dual-path into PR15
prk-Jr May 28, 2026
746993c
Resolve PR 643 round-2 review findings
prk-Jr May 28, 2026
5f8397c
Merge feature/edgezero-pr15-remove-fastly-core into PR16
prk-Jr May 28, 2026
ed4e225
Fix missing compat::from_fastly_response conversion in edgezero_main
prk-Jr May 28, 2026
e6206a5
Fix dead code and spurious mut from PR15 merge in main.rs
prk-Jr May 28, 2026
5e278d4
Resolve PR 644 round-4 review findings
prk-Jr May 28, 2026
17655cc
Fix Method::from — worker 0.7 implements From<String> not From<&str>
prk-Jr May 28, 2026
e5a36e8
Add compile_error! for cloudflare feature on non-wasm32 targets
prk-Jr May 28, 2026
31862f5
Collapse 13 handler closures into make_handler factory in app.rs
prk-Jr May 28, 2026
70def67
Resolve PR 725 round-1 review findings
prk-Jr May 28, 2026
bee7a39
Merge feature/edgezero-pr18-phase5-verification into spin adapter branch
prk-Jr May 28, 2026
a214f94
Fix Spin publisher HTML processor bypass caused by missing Host header
prk-Jr May 28, 2026
4d10761
Resolve PR 735 round-1 review findings
prk-Jr May 29, 2026
4e51206
Add Spin adapter to public docs and README
prk-Jr May 29, 2026
dc4a7d7
Fix proxy_rebuild_adds_and_removes_params test after tstoken validation
prk-Jr May 29, 2026
254bd2e
Resolve PR review findings: strengthen test assertions and CI gate
prk-Jr May 29, 2026
36e198c
Fix clippy-spin-native failures in app.rs
prk-Jr May 29, 2026
971a7f5
Bound publisher response body size and document interim buffering
prk-Jr Jun 6, 2026
a2af24a
Merge main into feature/edgezero-pr12-handler-layer-types
prk-Jr Jun 7, 2026
acf775a
Add edge_cookie module, test helpers, and integration handle signatures
prk-Jr Jun 7, 2026
78302a2
Fix remaining code review findings from merge
prk-Jr Jun 7, 2026
c229146
Fix cargo fmt lint
prk-Jr Jun 7, 2026
936e721
Resolve merge conflicts from feature/edgezero-pr12-handler-layer-types
prk-Jr Jun 8, 2026
b71da80
Resolve PR 626 round-2 review findings
prk-Jr Jun 8, 2026
6c4b66c
Resolve merge conflicts between PR14 and PR13
prk-Jr Jun 8, 2026
ed065ba
Resolve PR14 round-1 review findings
prk-Jr Jun 8, 2026
04ca534
Update integration-tests lock file to fix CI --locked failure
prk-Jr Jun 8, 2026
63538f5
Update root workspace lock file to match integration-tests versions
prk-Jr Jun 8, 2026
f31ecbf
Resolve merge conflicts and make PR15 compile cleanly
prk-Jr Jun 8, 2026
98dac49
Update integration-tests lock file for getrandom wasm dep and tokio d…
prk-Jr Jun 8, 2026
cfdaf82
Finish tokio removal from trusted-server-core
prk-Jr Jun 8, 2026
cedea8b
Fix stale fastly::Body doc reference in platform/mod.rs
prk-Jr Jun 8, 2026
1c5882b
Merge feature/edgezero-pr15-remove-fastly-core into PR16 (round 2)
prk-Jr Jun 8, 2026
87bbd25
Remove fastly dependency from core via EcKvStore platform trait
prk-Jr Jun 10, 2026
8841e24
Fix adapter tests broken by strict placeholder-secret validation
prk-Jr Jun 10, 2026
02b0605
Address round-4 review findings on Axum dev server PR
prk-Jr Jun 10, 2026
4a2e113
Update integration-tests lock file after fastly removal from core
prk-Jr Jun 10, 2026
18f171b
Merge feature/edgezero-pr16-axum-dev-server into PR17
prk-Jr Jun 10, 2026
8efccb9
Address Cloudflare adapter review findings and fix axum CI wasm target
prk-Jr Jun 10, 2026
d541bbd
Install wasm32-wasip1 target in test-axum CI job
prk-Jr Jun 10, 2026
d9e7217
Merge branch 'feature/edgezero-pr16-axum-dev-server' into feature/edg…
prk-Jr Jun 10, 2026
0be49bb
Merge feature/edgezero-pr17-cloudflare-adapter into PR18
prk-Jr Jun 10, 2026
40e982b
Merge feature/edgezero-pr18-phase5-verification into PR19
prk-Jr Jun 12, 2026
75d85b0
Fix parity-crate clippy violations and bump worker for worker-build 0.8
prk-Jr Jun 12, 2026
79531d6
Merge remote-tracking branch 'origin/main' into feature/edgezero-pr12…
prk-Jr Jun 12, 2026
4fbafd5
Resolve PR14 round-2 review findings
prk-Jr Jun 12, 2026
726301d
Port EC identity lifecycle and EC API routes to the EdgeZero path
prk-Jr Jun 12, 2026
cc9a2e5
Align shared dependency versions in integration-tests lock file
prk-Jr Jun 12, 2026
f8df5b7
Merge feature/edgezero-pr14-entry-point-dual-path into PR15
prk-Jr Jun 12, 2026
32d37db
Resolve PR15 re-review findings
prk-Jr Jun 12, 2026
711dd6c
Document why trusted-server-core still depends on fastly
prk-Jr Jun 12, 2026
47b746e
Merge feature/edgezero-pr15-remove-fastly-core into PR16
prk-Jr Jun 12, 2026
f7e8846
Resolve PR16 round-5 review findings
prk-Jr Jun 12, 2026
4180b9d
Merge branch 'feature/edgezero-pr16-axum-dev-server' into feature/edg…
prk-Jr Jun 12, 2026
fe9951d
Extend per-target build/check aliases to the Cloudflare adapter
prk-Jr Jun 12, 2026
afecb5d
Strip internal fastly-ssl signal from publisher origin requests
prk-Jr Jun 13, 2026
6db27d9
Merge remote-tracking branch 'origin/feature/edgezero-pr17-cloudflare…
prk-Jr Jun 13, 2026
964834f
Fix clippy violations in integration-tests crate
prk-Jr Jun 13, 2026
a5f0e35
Address Phase 5 verification review findings
prk-Jr Jun 13, 2026
86e6d12
Merge feature/edgezero-pr18-phase5-verification into PR19 spin adapter
prk-Jr Jun 13, 2026
7461d88
Derive trusted host and scheme from spin-full-url on the Spin adapter
prk-Jr Jun 13, 2026
7dd15b5
Route all publisher fallback methods on the Spin adapter
prk-Jr Jun 13, 2026
1d01d14
Reject deleting reserved signing params during proxy-rebuild
prk-Jr Jun 13, 2026
8098617
Keep legacy digit-leading KIDs removable via the admin API
prk-Jr Jun 13, 2026
86893a8
Pin worker-build to the locked worker version in the Cloudflare build
prk-Jr Jun 13, 2026
9743550
Demote absent edgezero_rollout_pct log to debug
prk-Jr Jun 13, 2026
7b420cc
Skip canary hashing for degenerate rollout and rename routing predicate
prk-Jr Jun 13, 2026
30002e2
Add unit tests for read_rollout_pct config-store branches
prk-Jr Jun 13, 2026
cbaa4a1
Clarify canary verification logs require debug-level logging
prk-Jr Jun 13, 2026
44e5b80
Reconstruct absolute request URIs for Spin first-party handlers
prk-Jr Jun 13, 2026
699a49a
Enforce a portable KID contract across signing adapters
prk-Jr Jun 13, 2026
a9e3134
Enforce the Spin response-size ceiling on all response paths
prk-Jr Jun 13, 2026
e346514
Align Spin Host with the trusted URI and expose GET /health
prk-Jr Jun 13, 2026
26e5a26
Exclude the Spin crate from build-fastly and check-fastly
prk-Jr Jun 13, 2026
722c6dc
Extract canary dispatch decision into a testable helper
prk-Jr Jun 13, 2026
08168cb
Merge remote-tracking branch 'origin/feature/edgezero-pr19-spin-adapt…
prk-Jr Jun 13, 2026
3715cf5
Restore std::net::IpAddr import after merge with base
prk-Jr Jun 13, 2026
34e1609
Enforce max_buffered_body_bytes on the buffered publisher post-proces…
prk-Jr Jun 14, 2026
17a339c
Compare discovery body bytes when JSON parse fails in parity test
prk-Jr Jun 14, 2026
0dcd6f6
Drop unauthenticated legacy admin aliases and strip Spin synthetic he…
prk-Jr Jun 14, 2026
d5bcd8a
Drop unauthenticated legacy admin aliases on Cloudflare and Fastly
prk-Jr Jun 14, 2026
b00d742
Merge branch 'feature/edgezero-pr18-phase5-verification' into feature…
prk-Jr Jun 14, 2026
706b077
Make the canary runbook honest about production route observability
prk-Jr Jun 14, 2026
6e191e9
Merge branch 'main' into feature/edgezero-pr12-handler-layer-types
aram356 Jun 14, 2026
cf39f2d
Migrate auction format tests to edgezero http types after merge
prk-Jr Jun 15, 2026
609154e
Merge remote-tracking branch 'origin/feature/edgezero-pr12-handler-la…
prk-Jr Jun 15, 2026
4d57b83
Give auction transport failures a consistent error envelope
prk-Jr Jun 15, 2026
023cb2e
Merge remote-tracking branch 'origin/feature/edgezero-pr13-integratio…
prk-Jr Jun 15, 2026
c869faf
Bound the HTML post-processing accumulator by max_buffered_body_bytes
prk-Jr Jun 15, 2026
eeabc24
Correct max_buffered_body_bytes failure status in sample config
prk-Jr Jun 15, 2026
dab40a6
Assert Cloudflare legacy admin alias absence at the route table
prk-Jr Jun 15, 2026
3e6fbd9
Harden Spin request authority against spoofable headers
prk-Jr Jun 15, 2026
5f81e80
Make Fastly route-decision debug logs observable for local canary val…
prk-Jr Jun 15, 2026
50c9e2e
Merge remote-tracking branch 'origin/main' into feature/edgezero-pr14…
prk-Jr Jun 15, 2026
75ad738
Merge remote-tracking branch 'origin/feature/edgezero-pr14-entry-poin…
prk-Jr Jun 15, 2026
96f2bd6
Sync integration-tests lockfile after dropping core wasm js deps
prk-Jr Jun 15, 2026
36a0ba7
Fix EdgeZero fallback asset-route and EC partner parity
prk-Jr Jun 16, 2026
74c51db
Drop legacy admin aliases on Axum to match Fastly and Cloudflare
prk-Jr Jun 16, 2026
67070e8
Harden Spin client-IP trust and centralize request normalization
prk-Jr Jun 16, 2026
17925a7
Make absent rollout_pct fail safe to legacy and fix canary docs
prk-Jr Jun 16, 2026
403de35
Align stale canary docs with fail-safe absent-key behavior
prk-Jr Jun 16, 2026
a1e108f
Merge remote-tracking branch 'origin/main' into feature/edgezero-pr14…
prk-Jr Jun 17, 2026
9785872
Capture EdgeZero device signals before request conversion
prk-Jr Jun 17, 2026
bb180ff
Preserve origin Content-Length for bodiless EdgeZero asset responses
prk-Jr Jun 17, 2026
b0a57ac
Align Publisher Default with the config buffer-cap default
prk-Jr Jun 17, 2026
19a1070
Merge remote-tracking branch 'origin/feature/edgezero-pr14-entry-poin…
prk-Jr Jun 17, 2026
4a4b4b9
Add trusted-server-adapter-cloudflare crate (PR 17) (#644)
prk-Jr Jun 17, 2026
486e62d
Resolve PR16 round-6 review nitpicks
prk-Jr Jun 17, 2026
12859d5
Merge feature/edgezero-pr15-remove-fastly-core into PR16
prk-Jr Jun 17, 2026
b391b86
Sync integration-tests lockfile after merging PR15
prk-Jr Jun 17, 2026
04c0ebb
Merge feature/edgezero-pr16-axum-dev-server into PR18
prk-Jr Jun 17, 2026
3ab0192
Address PR18 review findings: doc drift and test domains
prk-Jr Jun 17, 2026
50524fa
Pin worker-build to the 0.7 series for the Cloudflare local build
prk-Jr Jun 17, 2026
ba07d4b
Run integration request filters on the EdgeZero entry point
prk-Jr Jun 19, 2026
d44074f
Merge remote-tracking branch 'origin/feature/edgezero-pr14-entry-poin…
prk-Jr Jun 19, 2026
a50d293
Merge remote-tracking branch 'origin/feature/edgezero-pr15-remove-fas…
prk-Jr Jun 19, 2026
958464d
Merge remote-tracking branch 'origin/feature/edgezero-pr16-axum-dev-s…
prk-Jr Jun 19, 2026
70380c2
Deny legacy admin aliases locally instead of proxying them
prk-Jr Jun 19, 2026
cb7b6a0
Force-reinstall worker-build when the local copy is on a stale series
prk-Jr Jun 19, 2026
2c57592
Fix integration-tests clippy and legacy-alias parity for local deny
prk-Jr Jun 19, 2026
3ddc3f4
Merge remote-tracking branch 'origin/feature/edgezero-pr18-phase5-ver…
prk-Jr Jun 19, 2026
76f2207
Build integration-test adapter artifacts with the real EC passphrase
prk-Jr Jun 19, 2026
59c4977
Strip client-supplied X-Forwarded-For on the Spin adapter
prk-Jr Jun 19, 2026
b394581
Do not apply the proxy SSRF allowlist to click-redirect rebuilds
prk-Jr Jun 19, 2026
5afb4fe
Merge remote-tracking branch 'origin/feature/edgezero-pr19-spin-adapt…
prk-Jr Jun 20, 2026
848ca9c
Auto-raise Fastly log level under Viceroy via FASTLY_HOSTNAME
prk-Jr Jun 20, 2026
2e1575a
Filter route-decision debug logs at the outer fern Dispatch
prk-Jr Jun 20, 2026
9a83d17
Align canary docs with FASTLY_HOSTNAME log signal and fix-safe snippet
prk-Jr Jun 20, 2026
254c849
Merge origin/main into feature/edgezero-pr16-axum-dev-server
prk-Jr Jun 22, 2026
7f5c89c
Address Cloudflare adapter review findings
prk-Jr Jun 22, 2026
f7a7721
Pin worker-build to ^0.7 in the Cloudflare dev build
prk-Jr Jun 22, 2026
9ac8205
Merge origin/main into feature/edgezero-pr16-axum-dev-server
prk-Jr Jun 23, 2026
87893e0
Merge feature/edgezero-pr16-axum-dev-server into PR18
prk-Jr Jun 24, 2026
f1da325
Ignore nested Cargo target directories
prk-Jr Jun 24, 2026
5d63db3
Resolve PR review routing feedback
prk-Jr Jun 24, 2026
9b97a9d
Merge feature/edgezero-pr18-phase5-verification into PR19
prk-Jr Jun 24, 2026
f379567
Resolve Spin PR review feedback
prk-Jr Jun 24, 2026
d2c6c02
Merge feature/edgezero-pr19-spin-adapter into cutover canary
prk-Jr Jun 25, 2026
194067b
Resolve cutover canary PR review feedback
prk-Jr Jun 25, 2026
5b633d3
Merge feature/edgezero-pr19-cutover-canary into legacy cleanup
prk-Jr Jun 25, 2026
3513e50
Resolve legacy cleanup review findings
prk-Jr Jun 25, 2026
4832db2
Sync integration test lockfile
prk-Jr Jun 25, 2026
784bf6d
Fix integration workflow duplicate job
prk-Jr Jun 25, 2026
9c2e116
Fix integration workflow duplicate job
prk-Jr Jun 25, 2026
2aa7330
Sync integration test lockfile
prk-Jr Jun 25, 2026
09676b2
Merge branch 'feature/edgezero-pr16-axum-dev-server' into feature/edg…
prk-Jr Jun 25, 2026
262d47d
Merge branch 'feature/edgezero-pr16-axum-dev-server' into feature/edg…
prk-Jr Jun 25, 2026
3cae5e9
Merge branch 'feature/edgezero-pr18-phase5-verification' into feature…
prk-Jr Jun 25, 2026
1f5b31b
Merge branch 'feature/edgezero-pr19-spin-adapter' into feature/edgeze…
prk-Jr Jun 25, 2026
1e93245
Merge branch 'feature/edgezero-pr19-cutover-canary' into feature/edge…
prk-Jr Jun 25, 2026
0b41e25
Merge main into legacy cleanup
prk-Jr Jul 3, 2026
cd172cf
Resolve PR #744 review findings
prk-Jr Jul 3, 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
6 changes: 4 additions & 2 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,14 @@ test-axum = ["test", "-p", "trusted-server-adapter-axum"]

# --- Cloudflare adapter (native host + wasm32-unknown-unknown) ---
# Build/check target the WASM runtime (requires the `cloudflare` feature);
# tests and clippy run on the native host.
# tests run on the native host; clippy covers both native test code and the
# production WASM feature.
build-cloudflare = ["build", "-p", "trusted-server-adapter-cloudflare", "--target", "wasm32-unknown-unknown", "--features", "cloudflare"]
check-cloudflare = ["check", "-p", "trusted-server-adapter-cloudflare", "--target", "wasm32-unknown-unknown", "--features", "cloudflare"]
# No --all-features: the `cloudflare` feature has a compile_error! guard on
# non-wasm32 targets. WASM-feature coverage comes from `cargo check-cloudflare`.
# non-wasm32 targets.
clippy-cloudflare = ["clippy", "-p", "trusted-server-adapter-cloudflare", "--all-targets", "--", "-D", "warnings"]
clippy-cloudflare-wasm = ["clippy", "-p", "trusted-server-adapter-cloudflare", "--target", "wasm32-unknown-unknown", "--features", "cloudflare", "--lib", "--", "-D", "warnings"]
test-cloudflare = ["test", "-p", "trusted-server-adapter-cloudflare"]

# --- Spin adapter (native host tests + wasm32-wasip1 target) ---
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: ${{ steps.rust-version.outputs.rust-version }}
target: wasm32-wasip1
target: wasm32-wasip1,wasm32-unknown-unknown
components: "clippy, rustfmt"
cache-shared-key: cargo-${{ runner.os }}

Expand All @@ -41,6 +41,9 @@ jobs:
- name: Run cargo clippy (Cloudflare — native)
Comment thread
prk-Jr marked this conversation as resolved.
run: cargo clippy-cloudflare

- name: Run cargo clippy (Cloudflare — wasm32-unknown-unknown)
run: cargo clippy-cloudflare-wasm

- name: Run cargo clippy (Spin — native)
run: cargo clippy-spin-native

Expand Down
23 changes: 9 additions & 14 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,11 @@ jobs:
AXUM_BINARY_PATH: ${{ env.AXUM_ARTIFACT_PATH }}
CLOUDFLARE_WRANGLER_DIR: ${{ github.workspace }}/crates/trusted-server-adapter-cloudflare
INTEGRATION_ORIGIN_PORT: ${{ env.ORIGIN_PORT }}
VICEROY_CONFIG_PATH: ${{ env.ARTIFACTS_DIR }}/configs/viceroy-legacy.toml
VICEROY_CONFIG_PATH: ${{ env.ARTIFACTS_DIR }}/configs/viceroy.toml
RUST_LOG: info

integration-tests-edgezero:
name: integration tests (EdgeZero entry point)
integration-tests-fastly-ec:
name: integration tests (Fastly EC lifecycle)
needs: prepare-artifacts
runs-on: ubuntu-latest
timeout-minutes: 15
Expand All @@ -137,14 +137,9 @@ jobs:
name: integration-test-artifacts
path: ${{ env.ARTIFACTS_DIR }}

# Exercises the EdgeZero entry point against the same WASM binary by
# pointing Viceroy at a config store with `edgezero_enabled = "true"`.
# Scoped to the container-free EC lifecycle suite (minimal TCP origin), a
# focused parity subset covering Fastly request conversion, config-store
# dispatch, publisher fallback proxying, and end-to-end EC/API wiring on
# the EdgeZero path. The legacy `integration-tests` job above still covers
# the full framework matrix.
- name: Run EdgeZero EC lifecycle tests
# Focused container-free EC lifecycle coverage using the same post-cutover
# Viceroy config as the full integration matrix.
- name: Run Fastly EC lifecycle tests
run: >-
cargo test
--manifest-path crates/trusted-server-integration-tests/Cargo.toml
Expand All @@ -154,7 +149,7 @@ jobs:
env:
WASM_BINARY_PATH: ${{ env.WASM_ARTIFACT_PATH }}
INTEGRATION_ORIGIN_PORT: ${{ env.ORIGIN_PORT }}
VICEROY_CONFIG_PATH: ${{ env.ARTIFACTS_DIR }}/configs/viceroy-edgezero.toml
VICEROY_CONFIG_PATH: ${{ env.ARTIFACTS_DIR }}/configs/viceroy.toml
RUST_LOG: info

browser-tests:
Expand Down Expand Up @@ -201,7 +196,7 @@ jobs:
env:
WASM_BINARY_PATH: ${{ env.WASM_ARTIFACT_PATH }}
INTEGRATION_ORIGIN_PORT: ${{ env.ORIGIN_PORT }}
VICEROY_CONFIG_PATH: ${{ env.ARTIFACTS_DIR }}/configs/viceroy-legacy.toml
VICEROY_CONFIG_PATH: ${{ env.ARTIFACTS_DIR }}/configs/viceroy.toml
TEST_FRAMEWORK: nextjs
PLAYWRIGHT_HTML_REPORT: playwright-report-nextjs
run: npx playwright test
Expand All @@ -220,7 +215,7 @@ jobs:
env:
WASM_BINARY_PATH: ${{ env.WASM_ARTIFACT_PATH }}
INTEGRATION_ORIGIN_PORT: ${{ env.ORIGIN_PORT }}
VICEROY_CONFIG_PATH: ${{ env.ARTIFACTS_DIR }}/configs/viceroy-legacy.toml
VICEROY_CONFIG_PATH: ${{ env.ARTIFACTS_DIR }}/configs/viceroy.toml
TEST_FRAMEWORK: wordpress
PLAYWRIGHT_HTML_REPORT: playwright-report-wordpress
run: npx playwright test
Expand Down
3 changes: 2 additions & 1 deletion CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ cargo fmt --all -- --check
cargo clippy-fastly
cargo clippy-axum
cargo clippy-cloudflare
cargo clippy-cloudflare-wasm
cargo clippy-spin-native
cargo clippy-spin-wasm

Expand Down Expand Up @@ -332,7 +333,7 @@ IntegrationRegistration::builder(ID)
Every PR must pass:

1. `cargo fmt --all -- --check`
2. `cargo clippy-fastly && cargo clippy-axum && cargo clippy-cloudflare && cargo clippy-spin-native && cargo clippy-spin-wasm`
2. `cargo clippy-fastly && cargo clippy-axum && cargo clippy-cloudflare && cargo clippy-cloudflare-wasm && cargo clippy-spin-native && cargo clippy-spin-wasm`
3. `cargo test-fastly && cargo test-axum && cargo test-cloudflare && cargo test-spin`
4. `cargo test --manifest-path crates/trusted-server-integration-tests/Cargo.toml --test parity`
5. JS build and test (`cd crates/trusted-server-js/lib && npx vitest run`)
Expand Down
37 changes: 22 additions & 15 deletions crates/trusted-server-adapter-cloudflare/src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use std::sync::Arc;
use edgezero_core::app::Hooks;
use edgezero_core::context::RequestContext;
use edgezero_core::error::EdgeError;
use edgezero_core::http::{HeaderValue, Method, Request, Response, header};
use edgezero_core::http::{HeaderValue, Method, Request, Response, StatusCode, header};
use edgezero_core::router::RouterService;
use error_stack::Report;
use trusted_server_core::auction::endpoints::handle_auction;
Expand All @@ -24,8 +24,7 @@ use trusted_server_core::publisher::{
PublisherResponse, buffer_publisher_response, handle_publisher_request, handle_tsjs_dynamic,
};
use trusted_server_core::request_signing::{
handle_deactivate_key, handle_rotate_key, handle_trusted_server_discovery,
handle_verify_signature,
handle_trusted_server_discovery, handle_verify_signature,
};
use trusted_server_core::settings::Settings;

Expand Down Expand Up @@ -194,6 +193,20 @@ pub(crate) fn http_error(report: &Report<TrustedServerError>) -> Response {
response
}

fn admin_key_management_not_supported() -> Response {
let body = edgezero_core::body::Body::from(
"Admin key management is not supported on Cloudflare Workers.\n\
Use the Fastly adapter (via Viceroy or deployed) to rotate or deactivate keys.\n",
);
let mut response = Response::new(body);
*response.status_mut() = StatusCode::NOT_IMPLEMENTED;
response.headers_mut().insert(
header::CONTENT_TYPE,
HeaderValue::from_static("text/plain; charset=utf-8"),
);
response
}

/// Builds the local `404 Not Found` returned for legacy `/admin/keys/*`
/// aliases on the Cloudflare adapter.
///
Expand Down Expand Up @@ -383,18 +396,12 @@ fn build_router(state: &Arc<AppState>) -> RouterService {
// letting them fall through would forward the caller's
// `Authorization` header and key-management payload to the origin,
// leaking admin credentials.
.post(
"/_ts/admin/keys/rotate",
make_handler(Arc::clone(&state), |s, services, req| async move {
handle_rotate_key(&s.settings, &services, req)
}),
)
.post(
"/_ts/admin/keys/deactivate",
make_handler(Arc::clone(&state), |s, services, req| async move {
handle_deactivate_key(&s.settings, &services, req)
}),
)
.post("/_ts/admin/keys/rotate", |_ctx: RequestContext| async {
Ok::<Response, EdgeError>(admin_key_management_not_supported())
})
.post("/_ts/admin/keys/deactivate", |_ctx: RequestContext| async {
Ok::<Response, EdgeError>(admin_key_management_not_supported())
})
.post(
"/auction",
make_handler(Arc::clone(&state), |s, services, req| async move {
Expand Down
6 changes: 6 additions & 0 deletions crates/trusted-server-adapter-cloudflare/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ use worker::{Context, Env, Request, Response, Result, event};

#[cfg(target_arch = "wasm32")]
#[event(fetch)]
/// Dispatches an incoming Cloudflare Worker fetch event.
///
/// # Errors
///
/// Returns a Workers runtime error when the fallback error response cannot be
/// constructed.
pub async fn main(req: Request, env: Env, ctx: Context) -> Result<Response> {
if let Ok(config) = env.var("TRUSTED_SERVER_CONFIG") {
app::set_cloudflare_config_json(config.to_string());
Expand Down
14 changes: 6 additions & 8 deletions crates/trusted-server-adapter-cloudflare/src/platform.rs
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,7 @@ fn is_hop_by_hop_response_header(name: &str, connection_tokens: &[String]) -> bo
"upgrade",
];
let lower = name.to_ascii_lowercase();
HOP_BY_HOP.iter().any(|header| *header == lower)
|| connection_tokens.iter().any(|token| *token == lower)
HOP_BY_HOP.iter().any(|header| *header == lower) || connection_tokens.contains(&lower)
}

#[cfg(target_arch = "wasm32")]
Expand Down Expand Up @@ -339,13 +338,12 @@ impl CloudflareHttpClient {
.ok()
.flatten()
.and_then(|v| v.trim().parse::<usize>().ok())
&& claimed_len > MAX_PLATFORM_RESPONSE_BODY_BYTES
{
if claimed_len > MAX_PLATFORM_RESPONSE_BODY_BYTES {
return Err(Report::new(PlatformError::HttpClient).attach(format!(
"origin Content-Length {claimed_len} exceeds \
{MAX_PLATFORM_RESPONSE_BODY_BYTES}-byte response body limit"
)));
}
return Err(Report::new(PlatformError::HttpClient).attach(format!(
"origin Content-Length {claimed_len} exceeds \
{MAX_PLATFORM_RESPONSE_BODY_BYTES}-byte response body limit"
)));
}

let connection_tokens = response_connection_tokens(&resp);
Expand Down
26 changes: 26 additions & 0 deletions crates/trusted-server-adapter-cloudflare/tests/routes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,32 @@ fn all_explicit_routes_are_registered() {
// Basic-auth parity tests
// ---------------------------------------------------------------------------

#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
async fn authenticated_admin_routes_return_501() {
for (path, body) in [
("/_ts/admin/keys/rotate", "{}"),
(
"/_ts/admin/keys/deactivate",
r#"{"kid":"test-key","delete":false}"#,
),
] {
let req = request_builder()
.method("POST")
.uri(path)
.header("authorization", "Basic YWRtaW46YWRtaW4tcGFzcw==")
.header("content-type", "application/json")
.body(edgezero_core::body::Body::from(body))
.expect("should build request");
let resp = route(test_router(), req).await;

assert_eq!(
resp.status().as_u16(),
501,
"{path} should report that Cloudflare key management is unsupported"
);
}
}

#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
async fn admin_route_without_credentials_returns_401() {
let router = test_router();
Expand Down
Loading
Loading