Repository navigation
Conversation
ChristianPavilonis
left a comment
There was a problem hiding this comment.
Reviewed 83e447d05 against main (db36dc0ec).
Approving so I'm not blocking, on the understanding that you'll handle the comments before merging. The field mapping checks out against iab_gpp 0.1.2 for every supported section, including the three without GPC (VA, UT, FL).
R1 · Nonblocking: please add a CHANGELOG entry. Out of the diff, so here instead of inline. Operators will see this: US-state readers whose GPP refuses sharing, targeted ads or known-child consent, or sets GPC, stop getting a new EC, and a held EC is expired on the next request. Recent user-visible fixes (#1516, #1493, #1429) added a ### Fixed bullet under [Unreleased]. One referencing #1695 would do.
Question, not blocking: Prebid's MSPA activity controls deny more cases than this does (for example any applicable under-13 value, including 2, and PersonalDataConsents == 2). This follows #1695's narrower rule. Do we want Prebid parity later?
Reminder, as you noted: ec/consent_update.rs:480 on rc/identity still reads us_sale_opt_out, so RC tests won't compile until that's renamed.
Checks: cargo test -p trusted-server-core --lib consent:: (125 passed), native clippy on core, rustfmt.
PR #1714 moves from main onto PR #1662's branch, the top of the identity chain trunk. PR #1662's head brings the identity integration chain as of round 12 wave A. The merge is textually clean. crates/trusted-server-core/src/ec/consent_update.rs (merged clean, failed to compile): the chain's consent-update snapshot test reads the decoded US opt-out through the old GppConsent.us_sale_opt_out field, which #1714 renames to us_opt_out. The resolution renames that one test reader. The test's opt-out snapshot sets sale opt-out, so its expectation is unchanged.
dhruv8sh
left a comment
There was a problem hiding this comment.
Summary
This PR widens the GPP US signal from sale_opt_out only to any explicit sale, sharing or targeted-advertising opt-out, a known-child NoConsent, or an asserted GPC subsection, across UsNat v1/v2 and all 16 state sections. It also renames GppConsent::us_sale_opt_out to us_opt_out. The aggregation logic is correct and consistent with the existing "any refusal wins, otherwise a decodable section means Some(false)" rule. The generated-fixture tests are thorough: each one checks the decoded field by name, so a bit-offset mistake can't pass silently. One policy concern is worth confirming before merge: known-child NoConsent now also counts as an explicit EC withdrawal.
Non-blocking
🤔 thinking / ⛏ nitpick
- Known-child
NoConsentnow triggers EC withdrawal for every user — see inline atcrates/trusted-server-core/src/consent/gpp.rs:365 - Missing blank line between test functions — see inline at
crates/trusted-server-core/src/consent/gpp.rs:919
👍 praise
- Fixture generator asserts the decoded field by name — see inline at
crates/trusted-server-core/src/consent/gpp.rs:804
Cross-cutting / body-level findings
- 🏕 Stale
sale_opt_outwording inconsent/mod.rstests:ec_allowed_us_state_gpp_no_sale_opt_out(line 1436) and the assertion messages at lines 1449 and 1467 still describe the signal assale_opt_out=false/true, but the field is now the aggregateus_opt_out. Renaming them, e.g. toec_allowed_us_state_gpp_no_us_opt_outand "GPP US opt-out=false should allow EC", would keep the tests consistent with the rename this PR already made todecodes_us_opt_out_not_opted_out.
One octopus merge of the round 12 tips into rc/identity c3e3366. It is a single octopus because the RC already holds every sibling's old head, so each tip's new head merges in alongside the others rather than as a chain of merges. The tree is the automatic merge of the RC and all tips, with no resolution: every tip pair, their union and the merge into the RC are clean. Tips, in parent order after the RC: - PR #1503 at 4225024 - PR #1653 at 4bd4903 - PR #1654 at 95cf3e8 - PR #1655 at 05c509d - PR #1622 at afe5217 - PR #1660 at c1a05d7 - PR #1666 at 108b122 - PR #1659 at 5fb8190 - PR #1709 at 6d152f6 - PR #1710 at dcceeee - PR #1713 at cae7801 - PR #1557 at 302e972 PR #1659 sits above PR #1718, so it carries PR #1714, PR #1717 and PR #1718.
|
Round 12 identity realignment:
The base moved from Each merge message says what it carries and how any conflict was resolved. |
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.
PR #1662's new head brings #1662's consent-string comment on the EC route fixture, plus #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.
|
Round 15 identity realignment:
Each merge message says what it carries and how any conflict was resolved. |
|
Cascade of #1533's Axum startup-test port fix ( |
…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 |
|
Round 17 identity realignment:
Each merge message says what it carries and how any conflict was resolved. |
|
Addressed the body-level feedback from both approved reviews in eb7a187ee.
All required local gates passed, including fresh production startup smokes on all four adapters; all 34 hosted checks passed on this commit. The 334-case before/after fixture comparison is byte-identical. Rustdoc completed with existing documentation warnings; this does not claim live CMP/vendor qualification. |
…ntegration chain
|
Merged #1614's Trusted Server owns the This merge takes #1662's new head ( Checks on this head: no conflict markers; |
Summary
Honor the explicit US GPP refusal signals specified by #1695. Sale, sharing, targeted-advertising, known-child
NoConsentand supported GPC signals contribute toGppConsent.us_opt_out; both EC creation and explicit withdrawal consume that aggregate.Under configured US-state consent rules, a decoded refusal prevents a new Edge Cookie and expires a held EC. The existing EC eligibility gate also withholds EC/partner identifiers and browser EIDs from server-side auctions before the separate TCF/GDPR filter.
Policy and rollout
Known-child value
1(NoConsent) participates without an independent age check. If a CMP encodes this value for an adult reader, it causes the same refusal and withdrawal under the configured US-state rules. Publishers should check their CMP's actual encoding before upgrading. The Prebid guide and Unreleased changelog now document this consequence.This implements #1695's explicit-refusal rule, not every Prebid MSPA activity control. Known-child values
0(Not Applicable) and2(Consent) are not refusals here; invalid value3retains the dependency's existing NotApplicable behavior. Broader activity-control parity needs a separate policy/spec decision.Stack and review corrections
feat/1598-ec-route-fastly(8f96b3512111c159aecd6d8a5b57ee77d0b404c1). This PR is part of the identity stack.ec/consent_update.rstest reader tous_opt_out; the earlier outstanding-migration note no longer applies.Validation
eb7a187ee6026165f2a7ede319130715cb233323(signed; GitHub Verified).No deployment or live CMP/vendor qualification is claimed. Rustdoc completes with 31 existing documentation warnings.
Closes #1695