Repository navigation
Conversation
#517 (10ed380) tops ChristianPavilonis's line on #439: - #510, the KvStore record contract with DynamoDB and celld providers on Axum (#472, #473); - #454, portable KV-backed geo; - #514, country and region through ctx.geo() on Cloudflare and Spin (#480, #486); - #517, the portable ClientInfo contract with its Fastly, Axum, Cloudflare and Spin mappings (#475, #90, #91, #92, #485). #517 also merged #469 and #502 itself, so its tree contains everything this branch had. The only conflicts were JA4 lines that #517 refactors on top of #469; this merge takes #517's version, and its tree is identical to #517's.
The workspace now pins url =2.5.9 for main's Fastly SDK 0.13.3 upgrade (#529), and this loader resolves edgezero-core from the workspace, so its lockfile no longer satisfied the manifests after the merge. A targeted `cargo update -p url --precise 2.5.9` moves url to 2.5.9 and form_urlencoded to 1.2.3, matching the v0.0.12 lockfiles.
|
For the identity integration branch (#495), I pushed
|
|
For the identity integration branch (#495), I pushed |
|
For the identity integration branch (#495), I pushed |
PR #524 (outbound mTLS client identities, #523) belongs to no identity epic, and PR #522 (portable DynamoDB and celld record providers on Fastly, #474) is still a draft. #524 is stacked on #522, so both leave together. This commit reverts their net changes. Its tree is rc/identity as it was before #522 (654f546) merged with the current tips of #519, #515, #502, #469 and #536, the branch's remaining lines. #514 and #517 are already inside them. The rebuild merges without conflicts, and the change touches only the 113 paths that #522 and #524 changed against #517. Three files differed from a plain reverse of the two PRs because of the conflict resolutions in 7616c85 and b3a45df. Each keeps the other lines' code and drops only #522's or #524's: - crates/edgezero-adapter-axum/src/cli.rs keeps the capability matrix test's lint expectation and drops #524's client identity test. - crates/edgezero-adapter-fastly/src/request.rs keeps the after-response handle and wrapper and drops #522's deferred portable KV registry. - crates/edgezero-store-aws/src/dynamodb_records_tests.rs drops imports used only by #522's tests. Merging a later tip of #522 or #524 will not restore this code, because git treats their earlier commits as already merged. Bringing them back needs a revert of this commit first.
Summary
ctx.geo()coverage with Cloudflare request metadata and Spin lookup against an explicitly pinned KV dataset.Stacked on #454 (
feature/kv-geoip), which already includes #502. The portable KV reader and Axum foundation are supplied by those parents.Integration note: a current
git merge-treecomparison with #496 reports conflicts in Axum response conversion, Cloudflare/Spin contracts, and core error/extractor code. These siblings need reconciliation when integrated.Changes
edgezero-adapter-spinedgezero-coreedgezero-adapter-axumexamples/geo-kv-prototypeexamples/geo-spin-loaderSpin defaults to off. KV selection requires a declared store, generation/hash pin, authenticated-header reader mode, and a Spin credential-variable name. A trusted proxy must replace and authenticate the original visitor IP; it does not need to supply geography. Both roots and the selected path are verified on each request. Geo errors remain application policy inputs and do not independently grant permission or select HTTP status. No automatic fallback is added.
Closes
closes #480
closes #486
This PR targets
feature/kv-geoip, so merging it into that branch does not automatically close the linked issue(s); close them manually or upon default-branch integration.Test plan
Historical author-reported local verification below (original head unrecorded unless an explicit SHA is given). These results, counts, timings and negative controls were not rerun in this audit, and their underlying local logs were unavailable; checked boxes retain the original report. At the current head
ec0b912b, all 29 reported hosted checks are passing.cargo test --workspace --all-targets(3,058 passed; nine ignored)cargo clippy --workspace --all-targets --all-features -- -D warningscargo fmt --all -- --checkcargo check --workspace --all-targets --features "fastly cloudflare spin"examples/app-demo(68 tests + three WASM checks), 32 native feature combinations, 199 tooling tests, generated consumer, and isolated serial harness (679 passed; four ignored)Additional diagnostic: native
cargo build --workspace --all-targets --all-featurescannot link Fastly SDK host imports on ARM64. The same failure is reproduced on unchanged base925fe019; the supported Fastly WASM suite passes all 362 tests using the prescribed CI runner.Checklist
CLAUDE.mdconventions{id}syntaxedgezero_coreKvRegistryLocal synthetic runtime evidence does not qualify hosted proxy protection, external backend permissions/propagation, geography accuracy or production capacity. Spin SDK reads materialize values before core validates size; guest deadlines do not certify host-side cancellation. The request-local cache repeats manifest/root reads, so operators must qualify backend latency and capacity. Publication assumes one operator per generation; ordinary read-before-write is not a distributed lock.