Description
Summary
Geo with country and region through ctx.geo() on Spin, from a trusted ingress header or a KV- or API-backed provider.
Behavior
ctx.geo() gives country and region. Fastly keeps its existing geo. Axum uses CloudFront geo from #439, bound from EdgeZero's manifest so an application reads ctx.geo() without its own boot profile (EZI-4a). Cloudflare reads its request metadata (EZI-4c). Spin, whose requests carry no geo, reads a trusted ingress header the platform sets or a KV- or API-backed provider (EZI-4s, as IABTechLab/trusted-server#1518 describes for WASM targets).
Acceptance criteria
- A US request on Cloudflare and on Spin reports country and region, and Axum's geo loads with no Trusted Server geo setting
Dependencies
Blocked by:
- Axum: add protected CloudFront Geo metadata provider #432 Axum: add protected CloudFront Geo metadata provider
Blocks:
- Integration-branch revision with the Spin parts #493 Integration-branch revision with the Spin parts (new in this plan)
Related
- Needed by Server-side identity on every adapter trusted-server#1558, server-side identity on every adapter. Planned in wave 15 (after the MVP: Spin); priority P3, size S.
- Requirement EZI-4 in the design.
Activity
Merge #517's line into rc/identity: record contract, geo and ClientInfo