Skip to content

Geo with country and region through ctx.geo() on Spin #486

Description

@aram356

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:

Blocks:

Related

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions