Repository navigation
Conversation
Prebid's _pbjs_id_optout disables every user ID module, but only the SharedID provider honored it. Other configured providers still read their vendor cookies, made lookups with the reader's signals and stored the resulting UIDs, which were withheld from auctions but kept. Report the marker as each provider's own cookie opt-out in the coordinator, so page and after-response dispatch skip every lookup and clear the provider's sources, and request egress withholds them. Update the configuration and edge cookie guides and rewrap two module docs.
…ntegration chain
|
Merged #1614's Trusted Server owns the This merge takes #1626's new head ( Checks on this head: no conflict markers; |
Summary
_pbjs_id_optoutwith any value, including empty. Previously a consented reader carrying this cookie could receive SharedID cookies and a mirror, and their IDs could reach bidders. Now SharedID and its consent companion are expired, the mirror is suppressed or expired, every auction EID is withheld, and every configured identity provider treats the marker as its own opt-out: no provider lookup is made and its stored UIDs are cleared._pubcid_optout's existing SharedID-specific scope for unrelated partner IDs.Stacked on #1626. Base:
fix/1555-provider-eid-opt-outsat1ad8ba4c74f7337e1d788c65d4988c4d1371953a.Overlap with #1672: both changes use request-cookie source policy. This PR adds a global opt-out and reusable cookie-presence handling; it does not change alias-aware matching between
pubcid.organdsharedid.orgor close #1672.Changes
ec/coordinator/mod.rsec/sharedid.rs,ec/provider.rs,ec/mod.rsauction/endpoints.rs,publisher.rsec/finalize.rs,ec/mirror.rs,ec/app/route.rsec/admin.rsOpt-out site audit
_pubcid_optoutreader or consumer_pbjs_id_optoutappliessharedid_opted_out/SharedIdRequest::from_requestSharedIdProvider::read_request_cookiesCookieRead::OptedOut, including empty values.handle_auctionpersist_auction_bodyProviderCoordinatorcookie reads and dispatchCookieRead::OptedOutfor every provider before its own cookies are read.handle_publisher_requesthandle_page_bidsThe global request policy also reaches identify, mirror rebuilds and fallback cleanup. EC POST returns an empty mirror; EC GET performs expiry-only cleanup before EC-presence and creation guards. Provider-source alias matching remains unchanged.
Closes
Closes #1703.
Spec
Not a feature; bug fix without a configuration or persisted-schema change.
Test plan
Local checks ran on the committed source. The full CI gates are left to GitHub Actions as requested.
1/empty marker values; removing the marker check fails it.cargo test --locked -p trusted-server-core --lib auction::endpoints::: 63 passed.cargo test --locked -p trusted-server-core --lib publisher_targeting: 2 passed.cargo test --locked -p trusted-server-identity-providers --lib: 135 passed.cargo test-axum --locked --lib identity_conformance: 7 passed.cargo test-fastly --locked identity_conformance: 3 adapter tests and 1 portable core test passed under pinned Viceroy 0.22.0.cargo test --locked -p trusted-server-adapter-axum --features geo-cloudfront --test native_acceptance prepared_prebid_optout_withholds_all_partner_identity -- --exact: passed through the actual Axum binary.cargo clippy-fastly,cargo clippy-axum,cargo clippy-cloudflareandcargo clippy-spin-native.cargo fmt --all -- --check, changed-doc Prettier checks andgit diff --check.Fail-first evidence: the original source ignored the marker in both SharedID readers and delivered stored/body/client EIDs to the bidder. The native navigation regression failed because no SharedID expiry was emitted. An additional EC GET regression reproduced the retained mirror before its correction.
An extra native
cargo clippy --locked -p trusted-server-core -p trusted-server-identity-providers --all-targets --all-features -- -D warningsfails on unchangedtest_support.rs:203(result_large_err, error variant at least 192 bytes). The identical command fails on an untouched archive of the exact #1626 base. No suppression or unrelated fix is included. The target-matched blocking lint gates pass.Self-review
READY TO REQUEST REVIEW. The EC GET mirror-cleanup finding was reproduced and corrected. A misleading TCF-gating diagnostic was also corrected. A later pass found that configured identity providers other than SharedID still looked up and stored vendor IDs for an opted-out reader; the coordinator now treats the marker as every provider's opt-out.
Runtime verification
VERIFIED on the first commit for the supported #1626 flows through the actual local Axum executable, production configuration envelope and local persistent records, with authenticated synthetic forwarding, DE geography and TCF Purposes 1 and 4 granted. No vendor consent gates were configured. No browser, deployed service or live provider was used.
With
_pbjs_id_optout=1, navigation and EC POST emitted:EC POST returned
{"eids":[],"v":1}. Actual bidder requests still occurred, but theiruserobject contained onlyconsent,extandid;user.eidswas absent for both body and cookie EID inputs. The same results passed foryes,0and an empty marker. Fresh opted-out readers received no positive SharedID, companion or mirror cookie. EC GET expired carried cookies with and without an EC; shared adapter tests also cover refused clients.Without the marker, the control issued SharedID, companion and mirror cookies with
Max-Age=31536000, returned a populated EC mirror, and deliveredpubcid.org,other.example.comandunregistered.example.comEIDs to the actual bidder. An unchanged EC GET left cookies alone.Base limitation: #1626 does not yet emit a top-level
sharedIdresponse field, even in the control. Its absence under opt-out is observed, but positive qualification of that field remains on the higher EC-route stack; this PR does not add that feature.Checklist
unwrap(), logging backend, dependency or configuration key.