Repository navigation
Conversation
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).
…feat/1581-axum-identity-acceptance
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.
|
For the identity integration branch (#1608), I pushed
I changed the base to |
|
For the identity integration branch (#1608), I pushed |
|
Round 12 identity realignment:
The base moved to 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.
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 #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.
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
|
Round 15 identity realignment:
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.
|
Cascade of #1533's Axum startup-test port fix ( |
…tegration chain
…tegration chain
|
Merged #1627's runtime KV removal ( At the maintainer's request, that commit removes the generic runtime KV store Only that commit was merged, not the base branch's new head. Conflicts were resolved in Checks on this head: no reference to the removed store remains and |
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)`.
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.
|
Round 17 identity realignment:
This round's link merges #1666's new head. The identity conformance helpers keep #1666's Each merge message says what it carries and how any conflict was resolved. |
…ntegration chain
|
Merged #1614's Trusted Server owns the This merge takes #1718's new head ( Checks on this head: no conflict markers; |
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
/ready; bind collisions retry without accepting another listener. Named upstream diagnostic constants document their dependency source, and timeout messages name the expected readiness marker.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: USandx-geo-region: WYretains those stale headers alongsidex-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.Supplemental native core all-features test lint reports an existing
result_large_errat unchangedtest_support.rs:207. The exact original PR revisionbd707f282reproduces 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/identityintegration branch has newer outbound-request records inApiObservation. 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.