Skip to content

Verify geo consent paths on Axum and Fastly - #1659

Draft
prk-Jr wants to merge 42 commits into
fix/1705-us-no-region-strictfrom
test/1518-geo-consent-suite
Draft

prk-Jr wants to merge 42 commits into
fix/1705-us-no-region-strictfrom
test/1518-geo-consent-suite

Conversation

@prk-Jr

@prk-Jr prk-Jr commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Part of #1518. Stacked on #1718 (fix/1705-us-no-region-strict); the earlier identity integration parents are inherited through that branch.

Verify that trusted geography reaches EC lifecycle and both server-side auction paths consistently on Axum and Fastly. One shared location table drives document navigation, EC GET/POST, publisher HTML auctions, /auction, assets and API requests with eight consent representations, for new and returning readers. Tests observe finalized cookies/geo headers, captured bidder OpenRTB and authoritative record liveness separately.

The production correction rejects unusable Fastly country codes before creating GeoInfo. Invalid/sentinel subdivisions are dropped while the valid country survives, matching EdgeZero's platform projection. This preserves valid SDK casing, Fastly's local lookup, and the existing consent policy; no dependency repin is introduced here.

Coverage and review corrections

  • Shared test support supplies raw source/consent inputs and independent policy expectations. The standalone and GPP TCF grants now authorize Purpose 1 alone, so an accidental Purpose 4 requirement cannot hide behind the identity suite's P1+P4 fixture. That identity fixture is preserved.
  • Axum exercises managed native ingress, real protected CloudFront selection, the TS router and finalizer. The production-binary acceptance test shares the matrix's raw auction request and admission/geo/privacy oracle while keeping real processes and HTTP bidder capture independent.
  • Fastly reuses the identity runner with production authenticated reader-IP resolution, real mapped Viceroy geo hostcalls and one held request geo snapshot. Assembly, ingress parsing and header construction share one fixture trust configuration. Geo captures are private to Fastly rather than represented as unmeasured empty bidder lists on Axum.
  • Duplicate and comma-separated forwarding controls now use two distinct mapped locations. Selecting either address therefore contradicts the required Unknown result. Assertions identify the forwarding case, signal and route; authenticated IPv4/IPv6 and forged/missing/duplicate credentials remain covered.
  • Browser cookie state uses the existing identity jar's Max-Age/Expires precedence for both creation and retention. Negative/zero Max-Age, past Expires, positive Max-Age overriding past Expires, and replacement after deletion have dedicated oracle checks. Authoritative record liveness remains a separate observation.
  • Startup readiness remains tied to the owned child's lifecycle event plus /ready; bind collisions retry without accepting another listener. Named upstream diagnostic constants document their dependency source, and timeout messages name the expected readiness marker.
  • The launcher discovers Cargo's actual test artifact, checks the repository's Viceroy pin, generates an owned geo mapping and requires both ignored geo tests to execute. CI invokes the launcher and the CloudFront-enabled Axum suite.

Current policy and producer differences

Country-only US, including a valid US country with an unreadable subdivision, uses the strict US fallback (UsState). Known locations outside the configured regulated jurisdictions remain NonRegulated. Explicit refusal can withdraw an existing identity in Unknown/NonRegulated as well as applicable US locations; a missing signal alone does not. GDPR storage requires effective TCF Purpose 1. Unknown withholds new EC creation even with effective TCF consent. EC GET remains read-only and does not finalize withdrawal.

Auction admission is a separate contract: GDPR/Unknown and requests carrying effective EU TCF require Purpose 1; known non-GDPR traffic without EU TCF can dispatch. Assertions also inspect the geography and privacy fields actually sent to bidders.

Fastly rejects invalid/unassigned country codes and keeps valid country values when a subdivision fails EdgeZero's syntax check. Protected CloudFront rejects the entire malformed assertion instead. The table records those producer differences explicitly. Lowercase country/subdivision policy is case-insensitive, while valid Fastly SDK spelling is retained.

The shared matrix covers 30 Axum locations and 29 Fastly locations (Fastly has no provider selector), eight signals, six request kinds and new/returning readers: 2,880/2,784 exchanges, plus separate seeding. Production-process Axum acceptance uses 29 locations × three signals; the injected provider-error seam is intentionally excluded from that real synchronous CloudFront path.

Preserved response-header exception

The #1532 deferral remains unchanged: a missing-location document whose origin supplies x-geo-country: US and x-geo-region: WY retains those stale headers alongside x-geo-info-available: false.

The probe deliberately uses NonRegulated US/WY: stale geography would allow an auction without consent, while the actual Unknown snapshot must deny it. With Purpose 1, the bidder must receive no device geography. Neither case may create a new EC. A future response-header clearing fix must deliberately update this documented current-behavior assertion.

Verification

Verified review-fix revision: 3b8d911a4, signed locally and GitHub Verified.

  • Required local adapter lint/test matrix, parity, CLI, build/config integrity, JS/docs/script gates, all deadline fixtures, and production startup smoke on all four adapters: passed with the pinned tools.
  • New native fixture/oracle regressions, actual managed Axum matrix, production Axum process acceptance, and both mapped Fastly tests: passed locally and in hosted logs.
  • Nine isolated broken controls rejected at the intended assertions: Purpose 4 required in standalone/GPP document/endpoint auctions (four), incorrect Unknown publisher admission (one), duplicate/list address selection at either end (four). Clean baseline and restored mapped suites passed.
  • CI for the prior verified fix: 34 checks passed across seven completed workflows.
  • The maintainer subsequently merged the Retain provider-local HTTP opt-in in the demo baseline #1533 startup-port test correction into head d765bc4. All eight review-fix files are byte-identical to 3b8d911; formatting, Axum Clippy, the full Axum suite and geo process acceptance pass locally on that head; its CI remains pending. The older green run is historical evidence, not current-head CI.
  • Independent source review of the full merge-base diff and combined fixes: no blocking source findings.

Supplemental native core all-features test lint reports an existing result_large_err at unchanged test_support.rs:207. The exact original PR revision bd707f282 reproduces the same diagnostic. The required target-matched lint gates pass; this unrelated helper is unchanged.

Runtime evidence covers local managed Axum/production-process acceptance, Viceroy, and local Wrangler/Spin startup/deadline fixtures. Live cloud deployment and external publisher-browser qualification remain outside this evidence; the new geo matrix remains Axum/Fastly only.

Integration note

The separate rc/identity integration branch has newer outbound-request records in ApiObservation. Preserve that evidence inside the private Fastly execution result when integrating these fixture corrections; this PR does not merge or change the integration branch.

Remaining #1518 scope

Cloudflare/Spin geography adoption and shipping-runtime suites, remote-provider API/KV failures/timeouts, operator provider/trust documentation, and the decision on Fastly's eventual ctx.geo() adoption remain outside this PR. Page-bids, Didomi, legacy Prebid/APS protocols, DataDome and trace are not new runtime matrix lanes here.

@prk-Jr prk-Jr self-assigned this Nov 24, 2026
@prk-Jr prk-Jr linked an issue Nov 24, 2026 that may be closed by this pull request
7 tasks
@prk-Jr
prk-Jr marked this pull request as ready for review November 24, 2026 15:13
dhruv8sh and others added 7 commits November 24, 2026 20:54
The shared conformance suite gains verify_identity_gates, run by the Axum
and Fastly runners: the configured _pubcid cookie is read and a cookie
named sharedId is not (SID-1); _pubcid_optout stops reading the browser's
SharedID and keeps it out of the bid request (SID-2); Purpose 4 denied with
Purpose 1 granted keeps SharedID out of the record, the response and the
bid request (SID-6, WB-3); Purpose 1 denied expires SharedID and its
companion, and html5 storage gets no server-made SharedID (WB-3); and a
cross-site POST or a GET calls no provider (ID-9). Each case has a control
that shows the capture works. Requests can now turn on an ID5 provider, a
capture bidder and html5 storage, and observations record the exchange's
outbound requests.

The Axum runner adds ID5 within and past the page-lookup deadline (ID-4)
and a withdrawal after a grant whose lookup is slower than the deadline
(ID-9).
…haredID

The Axum provider fixtures use the shared Chrome User-Agent fixture, and
the Purpose 4 gates also check that the EC route answers without sharedId.
Run held after-response tasks before asserting no late UID, and require the within-deadline response to be released before the deadline. Replace the held follow-up test, which passed with or without the withdrawal because follow-ups never run for a newly minted EC, with a grant case and a returning-reader case that has a no-withdrawal control.

Check the status of the Purpose 1 only POST and of the cross-site POST and GET, build the cross-site POST from the control with only its Origin changed, and document what origin_requests counts.

Signed-off-by: dhruv8sh <dhruv8sh@proton.me>
This brings in 1f054c6 from #1488, which forwards ortb2.user.ext.eids
from the Prebid config into the auction EIDs, and a99dd66, a62601b,
d1eb75f and 394892b from #1489, which cap mirrored UID expiry at 30
days from the UTC day start and pass the request time into finalize. They
arrive through the chain's merges into #1639, #1640, #1612, #1628, #1623,
#1531, #1532, #1533, #1534, #1536, #1535, #1537, #1539, #1538, #1540,
#1566, #1624, #1641, #1642 and #1646, with #1646's move of the request
time into IdentityApp::finalize. It also brings d5276ee, which publishes
the native AWS runtime files without GNU mv -T, and Christian's merge
5597d3e of #1538 into #1540, through #1566's merge.

The base now also carries the Axum serving line (#1613, #1616, #1617, #1615,
#1635, #1637 and #1627), which #1533 merged, and #1627's b958107, which
decodes the Spin discovery document with Response::json, and #1627's merge
of #1625 (006b45e), which pins Wrangler for the Cloudflare smoke and CI.

This PR already carries #1646's head 461aa0d, so the merge adds only
#1646's new merge 166944769 of #1642 and the chain below it, including the
identity conformance check that now strips the mirrored UID's exp.

It also brings b2d4bfd from #1488, which records the known UID hashes
on lookup results with a setter, so the provider IDs the write planner
logs are not derived from them.

Restacking on the Axum serving line conflicts in the Axum startup tests,
where #1617 waits for /ready, since liveness stays up after a caught
initialization failure, and this PR rewrites the wait to retry a port
collision and to require the child's own ready lifecycle event.

Axum startup tests: wait_ready keeps this PR's collision retry and
lifecycle check, then probes #1617's /ready and returns the /health
response once the child is ready.

The fixture drains each child's output through this PR's log readers, so
#1617's assert_serves_failure_router reaps the stopped child and reads
those captured logs instead of collecting the pipes, which the readers
already own.

The base now also carries #1506's repin of EdgeZero to rc/identity at
d063a8e7 and its merge of main's Fastly SDK 0.13.3 upgrade (#1671): fastly
0.13.3, url 2.5.9 and Viceroy 0.22.0.

This PR now stacks on #1661 instead of #1646, so rc/identity can take both
as plain merges. #1661 sits on #1656 and #1626, which sit on #1646, so the
merge also brings #1626 (provider opt-outs and legacy EID expiry on Fastly
and Axum), #1656 (the configurable Edge Cookie browser gate) and #1661
(refusing EC creation when a trusted JA4 contradicts the User-Agent).

Fastly identity conformance fixture: #1661 records each scenario's runtime
TLS JA4 through a RuntimeTlsJa4 middleware in place of derived device
signals, takes the User-Agent from the scenario and drops the browser flag.
This PR adds geo consent requests with their own trusted client IP settings
and no browser device signals. The merge assembles the conformance app with
#1661's middleware and keeps this PR's geo_configured flag and
producer_settings. It sends the scenario's User-Agent unless the API request
supplies one, and inserts the scenario's JA4 only for requests without a geo
consent exchange, because this PR derived device signals only for those.

The base now also carries #1627's 4d0c1a2, which renames the generic
runtime KV store to trusted_server_runtime_kv, #1488's a610152 and
9104fd3, which add hashed-email intake for the LiveRamp and ID5
identity providers, #1646's aa31559, which gates identity writes for
rejected clients, and #1626's d07f789, which withholds a mirrored UID
while another source owner is opted out.

Fastly conformance JA4: the rebuilt #1661 merge supplies a trusted Python
JA4 behind the Chrome User-Agent for #1646's known non-browser API
requests, and this PR inserts the scenario's JA4 only without a geo
consent exchange, with its producer_settings. The merge keeps both: a
known non-browser request gets the Python JA4, any other request the
scenario's JA4 unless it is a geo consent exchange.

This PR's head moves to e8015ca, its clean merge of #1646's aa31559,
which the base already carries, so it adds no change beyond the base.

Axum lib.rs: the base now carries #1636, through #1626's merge of it, whose
after_response_drain_tests module sits where this PR adds its
geo_conformance module. The crate keeps both test modules.
@aram356
aram356 changed the base branch from feat/1574-axum-shared-identity to feat/1592-ja4-ua-contradiction November 25, 2026 20:11
aram356 added a commit that referenced this pull request Nov 25, 2026
#1659 (c4d2ce7) now sits on #1661 and resolves its Fastly conformance
fixture conflict with #1661's JA4 middleware in its own merge. The merge is
clean.
@aram356

aram356 commented Nov 25, 2026

Copy link
Copy Markdown
Collaborator

For the identity integration branch (#1608), I pushed c4d2ce72a, a merge of #1661's new head fb7793a0e onto this PR's e8015cae4. This PR now stacks on #1661 instead of #1646, so rc/identity can take both as plain merges, and the merge also brings #1626, #1656, #1661 and #1636, #1646's 4f4c03689, 71a573a08 and new merge b5a5f62f8, which strips the mirrored UID's exp in the identity conformance check, and #1506's repin of EdgeZero to rc/identity at d063a8e7 with main's Fastly SDK upgrade (#1671). Resolutions:

I changed the base to feat/1592-ja4-ua-contradiction (#1661).

#1661's new head b33c45b brings #1537's b181544, "Accept any Fastly EC
store link name at startup", which #1537's owner merged up through #1539,
#1538 and #1540. The merge is clean.
aram356 added a commit that referenced this pull request Nov 26, 2026
#1659 (2362e1e) carries #1537's b181544, "Accept any Fastly EC store link
name at startup", through the chain below it. The merge is clean.
@aram356

aram356 commented Nov 26, 2026

Copy link
Copy Markdown
Collaborator

For the identity integration branch (#1608), I pushed 2362e1e7c, a merge of #1661's new head b33c45b39. It brings #1537's b181544a0, "Accept any Fastly EC store link name at startup", which #1537's owner merged up through #1539, #1538 and #1540. The merge had no conflicts.

Takes #1661's new head 62543b0, which carries #1506's repin of EdgeZero to
rc/identity at 459bd27d (42e0c46): PR 275 at 0e2a58ae, the stack's test
fixes and EdgeZero 536's bounded record update, RecordHandle::update.

The merge is clean.
aram356 added a commit that referenced this pull request Nov 26, 2026
#1659 (20a0e55) carries #1506's repin of EdgeZero to rc/identity at
459bd27d (42e0c46), with PR 275 at 0e2a58ae, the stack's test fixes and
EdgeZero 536's bounded record update, RecordHandle::update, through the
chain below it. The merge is clean.
@aram356

aram356 commented Nov 26, 2026

Copy link
Copy Markdown
Collaborator

For the identity integration branch (#1608), I pushed 20a0e558f, a merge of #1661's new head 62543b0f7, which brings #1506's repin of EdgeZero to rc/identity at 459bd27d (42e0c46c7): EdgeZero #275 at 0e2a58ae, the EdgeZero stack's test fixes and EdgeZero #536's bounded record update, RecordHandle::update. The merge had no conflicts.

@aram356
aram356 changed the base branch from feat/1592-ja4-ua-contradiction to fix/1705-us-no-region-strict December 1, 2026 23:14
@aram356
aram356 added this pull request to stack #1721 December 1, 2026 23:14
@aram356

aram356 commented Dec 1, 2026

Copy link
Copy Markdown
Collaborator

Round 12 identity realignment: rc/identity is now at db7dce634, and EdgeZero is pinned to its rc/identity at 8a73c097. This branch fast-forwarded from ba66774e5 to 5fb81908f:

The base moved to fix/1705-us-no-region-strict (#1718), so the geo-consent suite runs on the consent policy that #1717 and #1718 set. Please check the updated oracle and fixtures named in the merge message: country-only US is UsState("US"), and NonRegulated and Unknown honor explicit refusals. The #1613 follow-up from #1717's description is applied to verify_country_only_consent_rules. EdgeZero 8a73c097 also renamed the busy-port bind error to address in use, which the port-collision retry now matches.

Each merge message says what it carries and how any conflict was resolved.

PR #1718's new head brings #1535's owner fix that keeps mirrored GPP consent through transient CMP not-ready states (#1678), #1535's move of the consent-update test host to publisher.example.com for the URL-host lint and #1540's allow-domain marks on the deployment guide's reference links. The merge is clean.
PR #1662's new head brings #1535's owner fix that keeps mirrored GPP consent through transient CMP not-ready states (#1678), #1535's move of the consent-update test host to publisher.example.com for the URL-host lint and #1540's allow-domain marks on the deployment guide's reference links. The merge is clean.
aram356 added a commit that referenced this pull request Dec 2, 2026
It brings #1535's owner fix that keeps mirrored GPP consent through transient CMP not-ready states (#1678), #1535's and #1540's URL-host lint fixes, and #1622's move of the new GPP bridge tests into its split test file, carried up to every tip: #1653, #1654, #1655, #1622, #1660, #1666, #1659, #1709, #1710, #1713 and #1557. #1503 is already contained. The octopus tree is the conflict-free union of the tips.
PR #1718's new head brings #1506's move of the five auction endpoint test requests from test-publisher.com to publisher.example.com, for the URL-host lint. The merge is clean.
PR #1662's new head brings #1506's move of the five auction endpoint test requests from test-publisher.com to publisher.example.com, for the URL-host lint. The merge is clean.
aram356 added a commit that referenced this pull request Dec 2, 2026
It brings #1659's cascade merge of #1506's auction endpoint test host fix.
PR #1662's new head (14749b9) moves the consent-string comment in identity_conformance.rs from above route_json back to verify_ec_route_fixture, the function it describes.

crates/trusted-server-core/src/test_support/identity_conformance.rs: #1666 added its fixture helpers between that comment's old place and route_json. The resolution keeps #1666's helpers and drops the comment there, so it appears once, above verify_ec_route_fixture.
PR #1718's new head brings #1506's repin of EdgeZero to rc/identity ef5cbf30, which renames Fastly backends to ez_b31v2_* and moves the yanked pin-project-lite, chacha20 and spin, #1625's shared Wrangler installer for CI, #1639's pull reserve boundary check and wording, #1613's conformance doc alignment, #1616's certificate policy and pull-sync fixture corrections, #1617's preserved startup diagnostics and hardened runtime checks, #1635's complete startup evidence in native fixtures, #1637's shared readable non-Unicode Geo fixture, #1627's Spin store reads and retained runtime coverage, #1535's Sourcepoint consent mirror deduplication and consent update coverage, #1636's stronger after-response body and drain checks, #1626's enforcement of stored and carried provider opt-outs, #1656's strict browser gate wording, #1661's grouped QUIC JA4 fixture and #1662's consent-string comment on the EC route fixture.

crates/trusted-server-adapter-axum/tests/startup.rs: #1635's owner commit fb7fc9b moved connected_to_listener into the shared listener fixture module and renamed ServerFixture::assert_logs_hold_no_secrets to stop_and_assert_no_secret_logs. #1659 added geo_consent_fixture_retries_an_occupied_port next to the old local connected_to_listener. The resolution keeps #1659's test without the local function. #1659's new test and its geo_consent_runtime_axum test, which is gated on geo-cloudfront, called the old method name, so they now call stop_and_assert_no_secret_logs; the method behaves the same.

Cargo.lock changes only the EdgeZero package sources (now ef5cbf30) and the yanked pin-project-lite, chacha20 and spin; the codegen crate's nested Cargo.lock is unchanged.
PR #1662's new head brings #1506's repin of EdgeZero to rc/identity ef5cbf30, which renames Fastly backends to ez_b31v2_* and moves the yanked pin-project-lite, chacha20 and spin, #1625's shared Wrangler installer for CI, #1639's pull reserve boundary check and wording, #1613's conformance doc alignment, #1616's certificate policy and pull-sync fixture corrections, #1617's preserved startup diagnostics and hardened runtime checks, #1635's complete startup evidence in native fixtures, #1637's shared readable non-Unicode Geo fixture, #1627's Spin store reads and retained runtime coverage, #1535's Sourcepoint consent mirror deduplication and consent update coverage, #1636's stronger after-response body and drain checks, #1626's enforcement of stored and carried provider opt-outs, #1656's strict browser gate wording and #1661's grouped QUIC JA4 fixture. The merge is clean. Cargo.lock changes only the EdgeZero package sources (now ef5cbf30) and the yanked pin-project-lite, chacha20 and spin; the codegen crate's nested Cargo.lock is unchanged.
aram356 added a commit that referenced this pull request Dec 3, 2026
PR #1503 at 1d51b78: Add ts ec show and ts ec eids admin diagnostic commands
PR #1653 at f217902: Clarify and verify the Axum local config handoff
PR #1654 at e4e68bb: Verify pending record writes drain within shutdown grace
PR #1655 at 7d0cdb2: Configure EC lifetime and renew it on eligible visits (DEC-13)
PR #1659 at bd707f2: Verify geo consent paths on Axum and Fastly
PR #1660 at 87c52cd: Retry an after-response write that loses its CAS
PR #1666 at b1d7062: Verify identity gates and provider deadlines on Axum
PR #1710 at 3d33359: Apply pull-sync consent checks to identify
PR #1557 at 3982143: Carry Sourcepoint TCF consent to Trusted Server
PR #1667 at f9ac6bb: Present a client certificate on auction providers that set mtls
PR #1607 at b3a0b09: Send the resolved client IP to the publisher origin
PR #1709 at 635f06a: Keep the EC out of bid request IDs and gate user.id on EID consent
PR #1713 at e5f4d05: Apply consent rules to first-party click redirects
PR #1622 at dd2ee39: Report CMP consent to the EC route and merge its answer into Prebid
@aram356

aram356 commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator

Round 15 identity realignment: rc/identity is now at 391a08578, and EdgeZero is pinned to its rc/identity at ef5cbf308. This branch fast-forwarded from 255b7d370 to bd707f282:

Each merge message says what it carries and how any conflict was resolved.

Use Purpose 1-only grants, browser cookie expiry and mapped forwarding
controls to distinguish the consent and ingress contracts. Share fixture
expectations and trust settings while keeping Fastly geo captures private.

Preserve the deferred response-header behavior and existing production
policy. Run the native geo rejection controls in CI.
@prk-Jr
prk-Jr marked this pull request as draft December 3, 2026 16:14
Carries #1533's Axum startup-test port fix (779e446) and nothing
else. Owner commits pushed to other chain PRs since round 15 come in
with the next round.
Carries #1533's Axum startup-test port fix (779e446) and nothing
else. Owner commits pushed to other chain PRs since round 15 come in
with the next round.
@aram356

aram356 commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator

Cascade of #1533's Axum startup-test port fix (779e44673): d765bc486 merges it into this PR. There were no conflicts and nothing else changed. The fix moves free_loopback_port in crates/trusted-server-adapter-axum/tests/routes.rs below the ephemeral port range, and #1533's note has the details. Owner commits pushed to other chain PRs since round 15 come in with the next round. rc/identity is now 62f8e41e2.

@aram356

aram356 commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator

Merged #1627's runtime KV removal (7c2b84f45) into this branch as 1641671df, on top of d765bc486.

At the maintainer's request, that commit removes the generic runtime KV store trusted_server_runtime_kv. Nothing reads or writes it, and the managed Fastly deploy made every service provision and pay for it. edgezero.toml and the Fastly Hooks::stores() now declare only trusted_server_kv, and RuntimeServices::kv_store() is unavailable on every adapter.

Only that commit was merged, not the base branch's new head. Conflicts were resolved in edgezero.toml, the Fastly Hooks::stores() in app.rs, fastly.toml, the Viceroy template, the integration tests' config.rs, trusted-server.example.toml, docs/guide/architecture.md and docs/guide/edgezero.md. Only trusted_server_kv stays declared, this branch's record-store comment and local seeds are kept, and the runtime-KV lines are dropped. The Axum README and docs/guide/axum-dev.md keep this branch's Axum wording.

Checks on this head: no reference to the removed store remains and cargo fmt --check passes; clippy-fastly, clippy-axum, clippy-cloudflare and clippy-spin-native pass. rc/identity (b9dc3153e) passed the full CI gate list with the removal.

PR #1718's new head brings #1487's change that strips `ts-eids` from publisher-origin requests unless the operator opts in and #1646's fix that preserves filter headers through identity finalization. The merge is clean.
PR #1662's new head brings #1487's change that strips `ts-eids` from publisher-origin requests unless the operator opts in and #1646's fix that preserves filter headers through identity finalization. The merge is clean.
PR #1666's new head brings its identity-gate conformance suite, run on Axum
and Fastly, with TCF fixtures that set Purposes 1 and 4 separately and API
observations that record every outbound request.

crates/trusted-server-core/src/test_support/identity_conformance.rs: #1659
split `tcf_consent_cookie` into a `tcf_cookie_with_purposes(u8)` helper that
writes a raw purpose byte, and #1666 split it into a public
`tcf_purposes_cookie(purpose_one, purpose_four)`. The resolution keeps
#1666's helper and drops `tcf_cookie_with_purposes`, because
`tcf_purposes_cookie` serves both of its callers: `tcf_consent_cookie` and
the geo-consent Purpose 1 only cookie. #1659's `IdentityJar::apply_cookies`
change merges unchanged.

crates/trusted-server-adapter-fastly/src/identity_conformance.rs: #1659
wraps the API observation in an `Execution` that also carries finalized
headers and captured bids, and #1666 replaces the observation's
`origin_requests` count with the `outbound` request records. The resolution
keeps #1659's `Execution` and builds its observation with #1666's
`outbound` records.

Semantic fix in crates/trusted-server-core/src/test_support/geo_consent.rs:
#1659's Purpose 1 only cookie now comes from `tcf_purposes_cookie(true,
false)`, which encodes the same 0x80 purpose byte as the removed
`tcf_cookie_with_purposes(0x80)`.
aram356 added a commit that referenced this pull request Dec 3, 2026
PR #1503 at 6a8797e: Add ts ec show and ts ec eids admin diagnostic commands
PR #1557 at a435778: Carry Sourcepoint TCF consent to Trusted Server
PR #1607 at 07086f2: Send the resolved client IP to the publisher origin
PR #1627 at 5b7fc3d: Wire declared stores and document unsupported Axum KV
PR #1636 at d838931: Drain Axum after-response identity tasks on SIGTERM
PR #1653 at 5b86d9b: Clarify and verify the Axum local config handoff
PR #1654 at be495b3: Verify pending record writes drain within shutdown grace
PR #1655 at 888c5f1: Configure EC lifetime and renew it on eligible visits (DEC-13)
PR #1659 at 7b1d4a7: Verify geo consent paths on Axum and Fastly
PR #1660 at 64a1baa: Retry an after-response write that loses its CAS
PR #1667 at 1359722: Present a client certificate on auction providers that set mtls
PR #1709 at bc43a3e: Keep the EC out of bid request IDs and gate user.id on EID consent
PR #1710 at dc728a1: Apply pull-sync consent checks to identify
PR #1713 at ffa7597: Apply consent rules to first-party click redirects
PR #1722 at 070e2b0: Use applicable GPP sections from the CMP instead of header sections

PR #1666 at 4720b0b (Verify identity gates and provider deadlines on Axum) arrives through #1659, and PR #1622 at c878e6e (Report CMP consent to the EC route and merge its answer into Prebid) arrives through #1722. Every other chain PR arrives through the tips above. The tree is the conflict-free union of these tips and carries no resolution of its own.
@aram356

aram356 commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator

Round 17 identity realignment: rc/identity is now at 0ed862633, and EdgeZero stays pinned to its rc/identity at ef5cbf308. This branch fast-forwarded from 1641671df to 7b1d4a7c1:

This round's link merges #1666's new head. The identity conformance helpers keep #1666's tcf_purposes_cookie(purpose_one, purpose_four), which serves both callers of this PR's tcf_cookie_with_purposes(u8), and the Fastly runner keeps this PR's Execution with #1666's outbound records. No test or assertion was dropped: the four conformance files hold 32 tests, 24 from this PR plus 27 from #1666 minus the 19 they share.

Each merge message says what it carries and how any conflict was resolved.

@aram356

aram356 commented Dec 4, 2026

Copy link
Copy Markdown
Collaborator

Merged #1614's /_ts/ local answers (48930c270) into this branch as c172f69ab, on top of 7b1d4a7c1.

Trusted Server owns the /_ts/ namespace (#1740). A request for /_ts or any /_ts/ path that no route handles now gets a local 404 on Fastly, Axum, Cloudflare and Spin, and never reaches the publisher origin. The path is matched after percent-decoding. Paths outside the namespace, such as /_tsx or /articles/_ts/x, still go to the publisher origin, and every routed /_ts/ path answers as before.

This merge takes #1718's new head (a378b0c87), which carries 48930c270 and nothing else new to this branch. It was clean.

Checks on this head: no conflict markers; cargo fmt --all -- --check passes; the merge adds exactly #1614's change to this branch's files; it merges cleanly with every lower head in its stack; clippy-fastly, clippy-axum, clippy-cloudflare and clippy-spin-native pass. rc/identity (e72407155) passed the full CI gate list with the change.

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Verify EdgeZero geolocation adoption in EC and auction consent paths

4 participants