Skip to content

Send EIDs in OpenRTB 2.6 user.eids - #1612

Open
dhruv8sh wants to merge 11 commits into
fix/user-id-requires-rowfrom
feat/openrtb-user-eids
Open

dhruv8sh wants to merge 11 commits into
fix/user-id-requires-rowfrom
feat/openrtb-user-eids

Conversation

@dhruv8sh

Copy link
Copy Markdown
Collaborator

Stacked on #1489. This PR targets feat/s2s-eid-collection-providers and must merge after #1489.

Summary

  • SID-4 of the server-side identity design puts EIDs in the OpenRTB 2.6 user.eids field. Until now every builder wrote only the pre-2.6 user.ext.eids. The bidder driver (standard, prebid-server and aps profiles), the Prebid Server integration and the APS integration now write user.eids.
  • UserExt.eids is removed, so the standard and prebid-server paths can no longer write user.ext.eids; the compiler enforces it. APS is the one downstream that keeps user.ext.eids, alongside user.eids, because the Prebid.js APS adapter these requests mirror has only ever sent EIDs there (evidence below).
  • This is a wire change for operator-configured bidders, so it has a Breaking CHANGELOG entry: an endpoint that reads EIDs only from user.ext.eids stops receiving them.

Changes

File Change
crates/trusted-server-core/src/openrtb.rs Remove UserExt.eids. Add OpenRtbEid alias, From<&Eid>/From<&Uid> conversions to the generated 2.6 types, to_openrtb_user_eids, and the APS-only ApsUserExt { consent, eids }. Conversion tests.
crates/trusted-server-core/src/auction/openrtb.rs Bidder driver fills user.eids; the APS profile also mirrors them through ApsUserExt.
crates/trusted-server-core/src/integrations/prebid.rs Prebid Server request fills user.eids. EID tests check both fields.
crates/trusted-server-core/src/integrations/aps.rs APS request fills user.eids and mirrors user.ext.eids. New no-EID test; wire fixture updated.
crates/trusted-server-core/src/auction/test_support.rs assert_no_user_eids, user_eids and aps_user_eids wire helpers.
crates/trusted-server-core/src/auction/openrtb/tests.rs Per-profile placement and absence tests; exact wire fixtures updated.
crates/trusted-server-core/src/settings.rs Doc comment names user.eids.
CHANGELOG.md Breaking entry under [Unreleased] → Changed.
docs/guide/** ec-setup-guide, edge-cookies, integrations/cookie-forwarding, integrations/prebid and integrations/aps name the new field.

Behaviour notes

  • An empty EID list is now omitted rather than serialized as "eids":[].
  • An EID or UID ext that is not a JSON object is dropped, because OpenRTB requires ext to be an object. Client ingress already drops non-object UID ext, so this only affects malformed stored or provider data.

APS: why it keeps user.ext.eids

The APS request copies the Prebid.js APS adapter (ext.sdk = {"source":"prebid","version":"2.2.0"}, endpoint /e/pb/bid):

  • modules/apsBidAdapter.js has ADAPTER_VERSION = '2.2.0' and builds its body with ortbConverter. It never touches eids or ortb2.user itself and does not use the 2.6→2.5 translator.
  • modules/userId/index.ts writes EIDs into ortb2 at user.ext.eids. Nothing in it writes user.eids.

So APS has only ever received EIDs in user.ext.eids from Prebid.js. That shows what APS is sent, not that it ignores user.eids, so APS gets both fields. Open item: confirm with the APS account team, or from a captured request, which field the /e/pb/bid endpoint reads, then drop the mirror if user.eids is enough.

How the "check both fields" criterion is met

A few EID-absence tests assert on the internal AuctionRequest.user.eids rather than on serialized OpenRTB:

  • auction/endpoints.rs: EidCapturingProvider, used by auction_strips_client_eids_when_ec_identity_denied
  • auction/formats.rs: auction_request.user.eids.is_none()
  • publisher.rs: the withdrawn-reader auction

That is the only EID field on the internal type, and every OpenRTB builder takes both wire fields from it:

  • All three builders fill user.eids from it through to_openrtb_user_eids.
  • UserExt has no eids field, so the standard and prebid-server profiles can't write user.ext.eids.
  • APS's ApsUserExt.eids is a copy of the same converted list.

So None there means neither wire field can appear. Every test of the serialized request checks both fields:

  • assert_no_user_eids in every_profile_omits_both_eid_fields_without_eids (all three profiles), aps_request_omits_eids_when_none and the Prebid no-EID test
  • user_eids, which also asserts user.ext.eids is absent, for standard and prebid-server
  • aps_user_eids, which asserts user.ext.eids equals user.eids, for APS

Closes

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-spin
  • justrust cargo clippy-fastly, clippy-axum, clippy-cloudflare, clippy-cloudflare-wasm, clippy-spin-native, clippy-spin-wasm, clippy-codegen
  • justrust cargo fmt --all -- --check
  • JS tests: cd crates/trusted-server-js/lib && npx vitest run (Node 24.20.0)
  • JS format and lint: npm run format, npm run lint (Node 24.20.0)
  • Docs format: cd docs && npm run format
  • WASM build: cargo build --package trusted-server-adapter-fastly --release --target wasm32-wasip1
  • Manual testing via fastly compute serve
  • Other: prettier --check on root and crate markdown (CHANGELOG)

Checklist

  • Feature PRs: spec linked above, ending in a review log of two or more agent review rounds
  • Changes follow AGENTS.md conventions
  • No unwrap() in production code — use expect("should ...")
  • Uses log macros (not println!)
  • New code has tests
  • No secrets or credentials committed

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 ChristianPavilonis left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 passed
  • eids: 78 passed
  • integrations::aps::tests: 39 passed
  • integrations::prebid::tests: 181 passed
  • auction::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:

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.
@aram356

aram356 commented Nov 19, 2026

Copy link
Copy Markdown
Collaborator

For the identity integration chain (#1608), this PR's base #1489 was ported onto #1506's EdgeZero cutover and #1526's async store, so 8f1a7b20c merges #1489's new head a7262c7db. The one conflict was imports in auction/openrtb/tests.rs.

Three wire-level tests that #1489's port added after this PR branched read user.ext.eids, which this PR leaves absent on the standard profile. So one would fail and two would pass without checking anything. They now use this PR's user_eids and assert_no_user_eids helpers, which also assert that user.ext.eids is absent: auction_drops_vendor_denied_body_eids and auction_strips_client_eids_when_ec_identity_denied in auction/endpoints.rs, and the template-cache reader-identity EID checks in publisher.rs. aps_request_omits_eids_when_none drops transport_timeout_ms, which the cutover removed from AuctionContext. No behavior change.

Checked locally at 8f1a7b20c: cargo fmt, all eight clippy aliases and the core build-digest clippy, scripts/lint-wasm-clock.sh, test-fastly, test-fastly-reuse, test-axum (64), test-cloudflare (66), test-spin (89), parity (33), build-digest (10), host CLI tests (972), docs and Markdown format, and the URL-host lint against #1489, all passing (test-fastly 4,068).

Takes #1489's new head e4ae9ca, which brings #1506's repin of
EdgeZero to rc/identity at 9d02d7b3. The merge is clean, and this PR's tree
changes only by that repin.
@aram356 aram356 mentioned this pull request Nov 19, 2026
20 of 21 tasks
aram356 added a commit that referenced this pull request Nov 19, 2026
The identity integration chain now runs #1489, #1612, #1623, so this PR
takes #1612's head 470f8e1, which sends EIDs in OpenRTB 2.6 user.eids. The
merge is clean, and this PR's tree changes only by #1612's own change.
aram356 added a commit that referenced this pull request Nov 19, 2026
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.
aram356 added a commit that referenced this pull request Nov 19, 2026
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.
Signed-off-by: dhruv8sh <dhruv8sh@proton.me>
Signed-off-by: dhruv8sh <dhruv8sh@proton.me>
@dhruv8sh
dhruv8sh changed the base branch from feat/s2s-eid-collection-providers to fix/user-id-requires-row November 20, 2026 01:50
@dhruv8sh
dhruv8sh added this pull request to stack #1643 November 20, 2026 01:53
@dhruv8sh
dhruv8sh removed this pull request from stack #1643 November 20, 2026 01:53
@dhruv8sh
dhruv8sh added this pull request to stack #1644 November 20, 2026 01:54
aram356 added a commit that referenced this pull request Nov 24, 2026
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.
aram356 added a commit that referenced this pull request Nov 24, 2026
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.
aram356 added a commit that referenced this pull request Nov 24, 2026
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.
aram356 added a commit that referenced this pull request Nov 25, 2026
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 added a commit that referenced this pull request Nov 25, 2026
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.
aram356 added a commit that referenced this pull request Nov 25, 2026
…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.
@aram356

aram356 commented Nov 25, 2026

Copy link
Copy Markdown
Collaborator

For the identity integration branch (#1608), I pushed 983baa76d, a merge of #1640's new head 83f7701c8. It brings #1489's 30-day cap on mirrored UID expiry and the request time passed into finalize, #1488's hashed-email intake and ortb2.user.ext.eids forwarding, and #1506's repin of EdgeZero to rc/identity at d063a8e7 with main's Fastly SDK upgrade (#1671). The merge had no conflicts.

Takes #1640's new head 6085b38, 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

aram356 commented Nov 26, 2026

Copy link
Copy Markdown
Collaborator

For the identity integration branch (#1608), I pushed d88007043, a merge of #1640's new head 6085b38ec, 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.

@prk-Jr prk-Jr left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 User builders (auction/openrtb.rs, integrations/prebid.rs, integrations/aps.rs) now take user.eids from the same consent-gated AuctionRequest.user.eids through to_openrtb_user_eids. No other production code builds an OpenRTB User or reads user.ext.eids from an outbound request. The only remaining user.ext.eids reads are the client-side Prebid.js ortb2 intake (JS) and a mocked debug-metadata fixture, and neither affects the wire.
  • The generated User.eids is skip_serializing_if = "Vec::is_empty", so an EID-denied or EID-less request leaves out both fields. ApsUserExt.eids has the same guard.
  • From<&Eid> / From<&Uid> carry every field (inserter, source, matcher, mm, uids, ext, id, atype). Only a non-object ext is 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 now fix/user-id-requires-row (#1640). Worth updating so the merge order stays clear.
  • 📝 Open item: APS mirror. The APS user.ext.eids mirror remains an open item until someone confirms which field /e/pb/bid reads. The description already tracks this.

Verification

  • cargo test -p trusted-server-core --lib (native, aarch64-apple-darwin) with filters eid openrtb aps: 333 passed. With ec_identity_denied vendor_denied withdraw: 47 passed.
  • Broken control: I emptied the APS ApsUserExt.eids mirror in integrations/aps.rs, and builds_aps_openrtb_request_with_explicit_privacy_policy failed (it calls aps_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).

Takes #1640's new head 1c032cb, which carries #1506's repin of EdgeZero to
rc/identity at 1619078a (8edc50e), a revert that removes EdgeZero 522
(portable Fastly record providers) and 524 (outbound mTLS client
identities).

The merge is clean.
@aram356

aram356 commented Nov 27, 2026

Copy link
Copy Markdown
Collaborator

For the identity integration branch (#1608), I pushed 65c1170b6.

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.

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.

EIDs in OpenRTB 2.6 user.eids; every EID-absence test checks both user.eids and user.ext.eids

4 participants