Repository navigation
Conversation
The bidder, Prebid Server and APS request builders now write resolved EIDs to user.eids instead of user.ext.eids (SID-4). No downstream needs the pre-2.6 placement, so user.ext.eids is no longer written. Non-object EID and UID extensions are dropped because OpenRTB requires ext to be an object. Wire tests now check both fields: EID-presence tests assert user.eids is set and user.ext.eids is absent, and EID-absence tests assert neither field is present. Signed-off-by: dhruv8sh <dhruv8sh@proton.me>
Signed-off-by: dhruv8sh <dhruv8sh@proton.me>
Signed-off-by: dhruv8sh <dhruv8sh@proton.me>
The Prebid.js APS adapter (version 2.2.0, /e/pb/bid), which these requests mirror, builds its body with ortbConverter from ortb2 data, and Prebid's User ID module puts EIDs in ortb2 user.ext.eids. APS has therefore only ever seen EIDs there, so APS requests now carry them in both user.eids and user.ext.eids through an APS-only ApsUserExt. Other builders still cannot write user.ext.eids. Signed-off-by: dhruv8sh <dhruv8sh@proton.me>
ChristianPavilonis
left a comment
There was a problem hiding this comment.
Summary
Moves resolved EIDs to OpenRTB 2.6 user.eids, retaining the legacy user.ext.eids mirror only for APS. No blocking correctness or security issues found in this PR's delta against its stacked base.
Reviewed commit 0787fd56db65806a5fd3f54e54d4652a6ed8583b against merge base 7bb9e741dd7e3256a2f74c385d30a5a973922570 (feat/s2s-eid-collection-providers).
Verification
Native focused tests passed using cargo test -p trusted-server-core --lib <filter> --locked -j 2:
openrtb: 103 passedeids: 78 passedintegrations::aps::tests: 39 passedintegrations::prebid::tests: 181 passedauction::orchestrator: 99 passed
These test selections overlap. cargo fmt --all -- --check and git diff --check 7bb9e741dd7e3256a2f74c385d30a5a973922570...0787fd56db65806a5fd3f54e54d4652a6ed8583b also passed.
Checked the production transport and current upstream PBS Go/Java EID conversion paths. Live PBS/APS endpoints and local WASM execution were not exercised; consent-denial and wire serialization were verified through separate existing tests rather than a combined end-to-end request.
CI Status
No required checks were reported for this branch. All 24 reported checks passed:
- integration tests: PASS
- trace runtime and browser acceptance: PASS
- integration tests (Fastly EC lifecycle): PASS
- browser integration tests: PASS
- cargo test (ts CLI, native) (macos-latest): PASS
- format-typescript: PASS
- cargo test (cross-adapter parity): PASS
- HTML EOF runtime (Fastly): PASS
- vitest: PASS
- ts dev lint domains (changed lines): PASS
- cargo test (axum native): PASS
- CLAUDE.md symlink guard: PASS
- prepare integration artifacts: PASS
- cargo check (cloudflare native + wasm32-unknown-unknown): PASS
- cargo test (ts CLI, native) (ubuntu-latest): PASS
- release scripts: PASS
- cargo check/build/test (spin native + wasm32-wasip1): PASS
- docs-proposal scripts: PASS
- CI Node pin guard: PASS
- format-docs: PASS
- cargo test: PASS
- worker-deadlines (cloudflare): PASS
- cargo fmt: PASS
- worker-deadlines (spin): PASS
The OpenRTB tests keep this pull request's EID helper imports alongside the base's scripted-client imports for the provider round-trip tests. The base's wire-level auction tests now read EIDs where this pull request writes them. The vendor-denied body EID test and the EC identity denied test in the auction endpoint, and the template cache reader-identity test in the publisher, read user.eids through the shared user_eids and assert_no_user_eids helpers instead of user.ext.eids, since the standard profile no longer writes the extension field. The APS no-EID test drops the transport_timeout_ms field that the base removed from AuctionContext.
|
For the identity integration chain (#1608), this PR's base #1489 was ported onto #1506's EdgeZero cutover and #1526's async store, so Three wire-level tests that #1489's port added after this PR branched read Checked locally at |
The base is #1623's head 78e1f2f, which carries #1612 and #1506's repin of EdgeZero to rc/identity 9d02d7b3. The tree is the base plus this pull request's own changes against its previous base branch. The cutover, the EdgeZero pin and the closed #1605 reconciliation commits that this branch carried come from the base: EdgeZero stays pinned to rc/identity 9d02d7b3 by rev, and the RC tag pin, its Cargo.lock, the #1605 changelog lines, its S3 direct-client patch, its Chrome version pin, its cache harness target-root change, its browser-collector poll fixture and its boxed pre-dispatch test helper are dropped in favor of the base. Axum startup: main runs EdgeZero's run_production_app_with_initializer with the native prepared-store initializer. EdgeZero installs the logger at EDGEZERO__LOGGING__LEVEL as it does on the base, so the adapter's SimpleLogger, its RUST_LOG parsing and its owns_logging override are not revived, and the parse_log_level tests go with them. EdgeZero validates the hosting settings before it installs that logger, so a fatal startup error that finds no logger goes to standard error instead of being dropped, as it was visible before. Axum app: the base's shared identity app, its local identify and batch-sync answers and its enabled-provider rejection stay as they are. The router built by the initializer goes through routes_with_settings, so the production path builds the same IdentityApp and rejects enabled providers the same way. Hooks::routes returns the empty pre-initialization router, Hooks::stores declares the config and secret stores, and every router carries an empty native store snapshot in state. Axum platform: the environment-backed config and secret stores are removed and request services read the immutable prepared snapshots. Tests and harnesses: the route startup test, the integration and EOF harnesses and the smoke script use the prepared local config map and EDGEZERO__SECRETS__ values. The startup, native acceptance and smoke processes set EDGEZERO__LOGGING__LEVEL in place of RUST_LOG, and the provider script drops its unused RUST_LOG value. Docs: the README, the Axum guide and the native RC guide describe the production runner, its fatal invalid host, port and log level values, and the workspace EdgeZero pin 9d02d7b3 in place of the RC tag. Cargo.lock: the base lock plus the 29 packages that the native AWS provider features add, at the same versions as this pull request's own lock.
The tree is the ported #1531 plus this pull request's own changes against #1531's previous head. EdgeZero stays pinned to rc/identity 9d02d7b3 by rev from the base, so the v0.0.12-rc-axum.202611.3 tag pin and its Cargo.lock are dropped. The pinned EdgeZero carries the geo-kv and celld-kv features, geo_capability_for and the EDGEZERO__ADAPTER__GEO settings, so the KV Geo wiring is kept. Axum startup: main keeps the hosting-option capture, the TS Geo profile and the typed hosting errors, and runs EdgeZero's run_production_app_with_options_and_initializer. EdgeZero installs the logger, as on the base, so the adapter's SimpleLogger and RUST_LOG parsing are not revived and the parse_log_level tests go with them. A hosting option failure is captured before any logger exists, so it goes through the same standard-error fallback as other early startup failures. Admitted errors: the pinned EdgeZero has no App::set_admitted_error_response_finalizer, so the initializer no longer installs one. The base's finalize middleware already renders handler errors and finalizes them, and it now applies the request's managed Geo, so the oversized-body test keeps its Geo headers and framework status. The native RC guide says an error EdgeZero renders outside the router carries no Geo or TS headers. Axum middleware: the finalize middleware reads the managed Geo outcome before dispatch and keeps the base's handler-error rendering. Core: the base's Sourcepoint TCF mirror consent test moves to the optional GeoInfo fields. Cargo.lock: no package is added; the adapter gains derive_more, serde and toml edges, and edgezero-store-celld gains the edges of its kv feature. APS tests: #1612 and this pull request each add a test after the APS wire shape test, aps_request_omits_eids_when_none and builds_aps_partial_geo_without_missing_detail. Both are kept unchanged.
Brings #1613, which now carries dhruv8sh's spine on #1489 (#1639, #1640, #1612, #1628 and the core identity app from #1623), the native prepared startup (#1531) and the protected native Geo (#1532), into the certificate-check statement for every outbound HTTPS request. Fastly post-delivery tests: the PR's EC ID parameter on the returning-reader helpers stays, and the helpers open the local identity store through the core identity app as the base does. The returning-reader state loads its snapshot for the given EC ID from that app. The PR's certificate-check pull helper builds the identity app from its settings to seed, read and remove its row, because require_identity_graph now takes the identity app instead of the settings. Core config, settings, docs and the example config merge without conflict. Cargo.lock is the base's.
Brings the identity integration chain, now carrying dhruv8sh's spine (#1639, #1640, #1612, #1628 and the core identity app from #1623), the native prepared startup (#1531), the protected native Geo (#1532), the identity conformance suite (#1613) and the certificate-check statement (#1616), into the uniform health and startup-failure contract, and applies the contract to the native production runner the same way the PR applies it to the cutover's runner. Axum startup: Hooks::routes keeps returning the empty pre-initialization router and declaring the stores, and the prepared-store initializer still builds the real router. initialize_native now splits its store reads, settings validation and router build into prepare_native. When that fails, it logs the base's single safe diagnostic ("Trusted Server initialization failed: ...", the top context only) and installs the PR's failure router, so the process listens with /health at 200 and /ready and every supported route at the fixed 503, instead of returning an error. Invalid config extraction limits still fail the initializer. Hosting, Geo profile, provider preparation (including a missing local config file), ingress and bind failures still stop the process before it listens. startup_error_router is reachable from the initializer and takes the failure as a Debug value it never reads. Axum router: the base's snapshot state, received-head preparer, middleware and core identity app mount stay. The PR's probe hook wraps the trace hook in place of the base's explicit /health route. Spin router: the base's identity app mount stays, and the explicit /health route and its helper go as the PR has them, because the probe hook answers liveness. Tests: the Axum binary settings-failure test keeps the base's prepared local config and the PR's probe assertions, and also requires the initialization failure log and no startup failure exit. The startup tests for a missing secret, a short passphrase and a tampered envelope, and the native acceptance cases for an empty config map, each missing secret, an invalid origin and a short passphrase, move from an exit before listening to the failure router: liveness 200, /ready and the page 503 with the fixed body, the same diagnostic and no secret in the log. A missing config file and the Geo profile cases keep expecting the exit. The absent-stores unit test keeps its error on prepare_native and checks the failure router through initialize_native. Readiness waits in the startup and native acceptance fixtures and the integration fixture poll /ready, because liveness stays up after a caught failure; the integration fixture keeps the base's workspace ownership and early exit check. The restart test checks /ready, not /health, to show the initialized state is retained. Startup tests that read configured response headers or managed Geo headers from /health read them from the unknown-hash TSJS route, because probes bypass the response middleware, and the managed Geo test checks that the liveness probe carries no Geo header. Scripts: smoke-axum.sh keeps the base's prepared config directory, isolated environment, legacy poison values and bounded teardown, runs the PR's probe cases, including the malformed envelope, invalid settings and hostile cases, and expects the base's initializer diagnostics with a 503 on the listener the base gives the positive case. The provider acceptance script waits for /ready and observes the config snapshot and secret semantics through the authenticated /_ts/admin/eids echo, because the /health probe now bypasses authentication and configured response headers; its selected provider failure cases still exit before listening. Docs: the Axum README, the axum-dev guide, the native prepared startup guide and main.rs describe the failure router for store read, settings and state failures and the exit for hosting and provider preparation failures. Cargo.lock is the base's.
Brings in, through #1636 (cf1102c): - dhruv8sh's spine on #1489: #1639 (738ba34), #1640 (46530d8), #1612 (36e35f8), #1628 (384a481) and #1623 (6fd236e). - #1531 (47411de) and #1532 (4d17086, which renames the native Geo profile variable to TRUSTED_SERVER__NATIVE_GEO_PROFILE_FILE). - #1613 (2415b7d), then #1616 (c142e87), #1617 (b91770e) and #1615 (255c390), restacked on #1613. - #1635 (06b4044), restacked on #1615, and #1636 (cf1102c). Each conflict was resolved in the PR that sits higher. This merge is clean.
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. The merge had no conflicts. 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. 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 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.
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. The merge also brings the 12 #1646 commits this PR lacked, from 48a43ae to 461aa0d: dhruv8sh's page-phase lookup and /auction EID work (48a43ae, 82fe088, 1d0a74f, 838586e and his chain merges a061c01, ecf16e8, e1d23a0, edcf4c5 and 9a020e1), the merge 9cad928 of #1641 into #1642, and prk-Jr's "Merge providers-awaited into shared identity" (4ffbaf8) and "Restore Fastly auction browser gating" (461aa0d). Edge cookies guide: a conflict is the request lifecycle paragraph. The merge takes #1646's sentences on positive identity cookies, core expiries and /auction body EIDs, and keeps this PR's closing sentences on the default ec.sliding_refresh = false flow and sliding renewal. Fastly adapter tests: 82fe088 from #1646 removed the navigation-lookups thread-local and the page-lookups argument of apply_edgezero_ec_finalize, since the handler now collects page lookups onto the EC context. This PR's sliding_ec_renews_held_publisher_identity_before_terminal_privacy test drops its two take_navigation_lookups calls and passes no page lookups to finalize. Its configuration has no record store or providers, so no lookups were collected before either, and its assertions are unchanged. 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. 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). Cloudflare route tests: both PRs add a test at the end of the file. The merge keeps both, this PR's sliding_ec_configuration_preserves_unsupported_platform_responses and #1661's ec_route_creates_no_record_whatever_the_bot_management_ja4. Fastly sliding EC test: #1617, which now sits below this PR, answers GET /health through the router's probe hook as an operational response, which carries no EC state. This PR's sliding_ec_renews_held_publisher_identity_before_terminal_privacy routes /health through the router and expected EC state on every path but the unsupported EC route, so it now also accepts the liveness probe without EC state. Its check that /health issues no renewal cookie is unchanged. 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. Settings: this PR's MaxAgeDays and #1488's HashedEmailSource are both added before Ec in settings.rs; the merge keeps both. This PR's head moves to fbe5670, its merge of #1646's aa31559, which models admitted clients in the core sliding tests, finalizes them with the store gate and adds refused_client_gets_no_renewal_or_record_io, and adds the proposal's review log. Taken as the change from the old head 668d501, the new head would replay #1646 commits the base already carries in rebuilt form. The merge takes only fbe5670's own resolution, the change from a plain merge of 668d501 and aa31559 to fbe5670: the sliding tests and the proposal apply cleanly, and its Fastly sliding test port is the one this merge already made.
…1622 into rc/identity #1622 (244ca26) now carries the whole chain, each PR merging the one below it: - #1506 (c197404) repins EdgeZero to rc/identity at d063a8e7, which carries EdgeZero main's Fastly SDK 0.13.3 upgrade through every EdgeZero PR here, and merges Trusted Server main's upgrade (#1671): fastly 0.13.3, url 2.5.9 and Viceroy 0.22.0. - #1614, #1525, #1526, #1487 and #1488 take it in turn. #1488 also adds b2d4bfd, which records known UID hashes with a setter. - #1489, the identity spine (#1639, #1640, #1612, #1628 and #1623), #1531 and #1532. - The Axum serving line: #1613, #1616, #1617, #1615, #1635, #1637 and #1627, chained, with #1627's b958107 decoding the Spin discovery document with Response::json and #1627's merge of #1625, which brings #1625's Wrangler pin into the chain. - The held line on #1627: #1533, #1534, #1536, #1535, #1537, #1539, #1538, #1540, #1566, #1624, #1641, #1642 and #1646. #1646 keeps its own shared after-response runner in ec::app::lookups. - #1636 (72096cd) on #1646 (b5a5f62), draining Axum after-response identity tasks on SIGTERM through #1646's shared runner. - The EC route line on #1636: #1626 (067531e), which merges #1636, the draft #1656, #1661, #1662 and #1622, and through #1622's merge of it, #1620's round-6 head. Each conflict was resolved in the PR that sits higher. This merge is clean. Since the last update the chain also takes #1488's hashed-email intake (a610152 and 9104fd3) and its POST, body and header options for the status call (f063a76), #1627's split of the generic runtime KV store into trusted_server_runtime_kv (4d0c1a2), #1646's gate on identity writes for rejected clients (aa31559) its native container test of the failure router (4f4c036) and that test's header check on an ordinary route (71a573a), #1626's withholding of a mirrored UID while another source owner is opted out (d07f789), and #1617's description of the Axum startup failure router (6d174a8) and of the startup failures that still exit before listening (4c07cad). #1636 no longer sits in the Axum serving line; it arrives through #1626, which merges it on top of #1646. Its new head adopts #1646's after-response runner in place of the one rc/identity took with cf1102c. Cloudflare guide: #1627's merge of #1625 now keeps both #1625's tool version clause and #1627's TRUSTED_SERVER_RUNTIME_KV binding in the smoke paragraph, and fixes #1625's smoke script test for #1617's Python floor and Worker build, and #1537's merge fixes its ts stub for #1537's storage template step, so this merge needs no resolution.
|
For the identity integration branch (#1608), I pushed |
Source: feat/openrtb-user-eids at 983baa7.
|
For the identity integration branch (#1608), I pushed |
prk-Jr
left a comment
There was a problem hiding this comment.
Summary
Moves outbound EIDs from user.ext.eids to the OpenRTB 2.6 user.eids field for the standard, prebid-server and aps driver profiles and for the Prebid Server and APS integrations. APS alone keeps a user.ext.eids copy. Removing UserExt.eids makes the compiler enforce that no other request writes the old field. No blocking issues found, so I'm approving.
Reviewed head d88007043 against merge base 6085b38ec (fix/user-id-requires-row, #1640).
What I checked:
- All three outbound
Userbuilders (auction/openrtb.rs,integrations/prebid.rs,integrations/aps.rs) now takeuser.eidsfrom the same consent-gatedAuctionRequest.user.eidsthroughto_openrtb_user_eids. No other production code builds an OpenRTBUseror readsuser.ext.eidsfrom an outbound request. The only remaininguser.ext.eidsreads are the client-side Prebid.jsortb2intake (JS) and a mocked debug-metadata fixture, and neither affects the wire. - The generated
User.eidsisskip_serializing_if = "Vec::is_empty", so an EID-denied or EID-less request leaves out both fields.ApsUserExt.eidshas the same guard. From<&Eid>/From<&Uid>carry every field (inserter,source,matcher,mm,uids,ext,id,atype). Only a non-objectextis dropped, which OpenRTB requires and which the conversion tests cover.- The CHANGELOG Breaking entry and the guide updates match the wire change. No guide still says server-side EIDs go out in
user.ext.eids.
Non-blocking
- 📝 PR description says the wrong base. It says this is stacked on #1489 and targets
feat/s2s-eid-collection-providers. The actual base is nowfix/user-id-requires-row(#1640). Worth updating so the merge order stays clear. - 📝 Open item: APS mirror. The APS
user.ext.eidsmirror remains an open item until someone confirms which field/e/pb/bidreads. The description already tracks this.
Verification
cargo test -p trusted-server-core --lib(native, aarch64-apple-darwin) with filterseid openrtb aps: 333 passed. Withec_identity_denied vendor_denied withdraw: 47 passed.- Broken control: I emptied the APS
ApsUserExt.eidsmirror inintegrations/aps.rs, andbuilds_aps_openrtb_request_with_explicit_privacy_policyfailed (it callsaps_user_eids). Restored afterwards. - I did not exercise live Prebid Server or APS endpoints, or WASM runtime execution.
CI Status
All 25 reported checks at d88007043 PASS, including cargo test, cargo test (axum native), cargo test (cross-adapter parity), the Cloudflare and Spin checks, cargo fmt, vitest, format-docs, format-typescript, the integration and browser tests, HTML EOF runtime (Fastly), worker-deadlines (cloudflare/spin) and ts dev lint domains (changed lines).
|
For the identity integration branch (#1608), I pushed Takes #1640's new head 1c032cb, which carries #1506's repin of EdgeZero to rc/identity at 1619078a (8edc50e), a revert that removes IABTechLab/edgezero#522 (portable Fastly record providers) and IABTechLab/edgezero#524 (outbound mTLS client identities). The merge is clean. |
Summary
user.eidsfield. Until now every builder wrote only the pre-2.6user.ext.eids. The bidder driver (standard,prebid-serverandapsprofiles), the Prebid Server integration and the APS integration now writeuser.eids.UserExt.eidsis removed, so thestandardandprebid-serverpaths can no longer writeuser.ext.eids; the compiler enforces it. APS is the one downstream that keepsuser.ext.eids, alongsideuser.eids, because the Prebid.js APS adapter these requests mirror has only ever sent EIDs there (evidence below).user.ext.eidsstops receiving them.Changes
crates/trusted-server-core/src/openrtb.rsUserExt.eids. AddOpenRtbEidalias,From<&Eid>/From<&Uid>conversions to the generated 2.6 types,to_openrtb_user_eids, and the APS-onlyApsUserExt { consent, eids }. Conversion tests.crates/trusted-server-core/src/auction/openrtb.rsuser.eids; the APS profile also mirrors them throughApsUserExt.crates/trusted-server-core/src/integrations/prebid.rsuser.eids. EID tests check both fields.crates/trusted-server-core/src/integrations/aps.rsuser.eidsand mirrorsuser.ext.eids. New no-EID test; wire fixture updated.crates/trusted-server-core/src/auction/test_support.rsassert_no_user_eids,user_eidsandaps_user_eidswire helpers.crates/trusted-server-core/src/auction/openrtb/tests.rscrates/trusted-server-core/src/settings.rsuser.eids.CHANGELOG.md[Unreleased]→Changed.docs/guide/**ec-setup-guide,edge-cookies,integrations/cookie-forwarding,integrations/prebidandintegrations/apsname the new field.Behaviour notes
"eids":[].extthat is not a JSON object is dropped, because OpenRTB requiresextto be an object. Client ingress already drops non-object UIDext, so this only affects malformed stored or provider data.APS: why it keeps
user.ext.eidsThe APS request copies the Prebid.js APS adapter (
ext.sdk = {"source":"prebid","version":"2.2.0"}, endpoint/e/pb/bid):modules/apsBidAdapter.jshasADAPTER_VERSION = '2.2.0'and builds its body withortbConverter. It never toucheseidsorortb2.useritself and does not use the 2.6→2.5 translator.modules/userId/index.tswrites EIDs intoortb2atuser.ext.eids. Nothing in it writesuser.eids.So APS has only ever received EIDs in
user.ext.eidsfrom Prebid.js. That shows what APS is sent, not that it ignoresuser.eids, so APS gets both fields. Open item: confirm with the APS account team, or from a captured request, which field the/e/pb/bidendpoint reads, then drop the mirror ifuser.eidsis enough.How the "check both fields" criterion is met
A few EID-absence tests assert on the internal
AuctionRequest.user.eidsrather than on serialized OpenRTB:auction/endpoints.rs:EidCapturingProvider, used byauction_strips_client_eids_when_ec_identity_deniedauction/formats.rs:auction_request.user.eids.is_none()publisher.rs: the withdrawn-reader auctionThat is the only EID field on the internal type, and every OpenRTB builder takes both wire fields from it:
user.eidsfrom it throughto_openrtb_user_eids.UserExthas noeidsfield, so thestandardandprebid-serverprofiles can't writeuser.ext.eids.ApsUserExt.eidsis a copy of the same converted list.So
Nonethere means neither wire field can appear. Every test of the serialized request checks both fields:assert_no_user_eidsinevery_profile_omits_both_eid_fields_without_eids(all three profiles),aps_request_omits_eids_when_noneand the Prebid no-EID testuser_eids, which also assertsuser.ext.eidsis absent, forstandardandprebid-serveraps_user_eids, which assertsuser.ext.eidsequalsuser.eids, for APSCloses
Closes #1583
Spec
Spec: server-side identity on all adapters, SID-4 (plan task T2 of #1558)
Test plan
justrust cargo test-fastly,justrust cargo test-fastly-reuse,justrust cargo test-axum,justrust cargo test-cloudflare,justrust cargo test-spinjustrust cargo clippy-fastly,clippy-axum,clippy-cloudflare,clippy-cloudflare-wasm,clippy-spin-native,clippy-spin-wasm,clippy-codegenjustrust cargo fmt --all -- --checkcd crates/trusted-server-js/lib && npx vitest run(Node 24.20.0)npm run format,npm run lint(Node 24.20.0)cd docs && npm run formatcargo build --package trusted-server-adapter-fastly --release --target wasm32-wasip1fastly compute serve--checkon root and crate markdown (CHANGELOG)Checklist
unwrap()in production code — useexpect("should ...")logmacros (notprintln!)