Skip to content

Proposal: Configure EC lifetime and renew it on eligible visits (DEC-13) - #1655

Open
prk-Jr wants to merge 26 commits into
feat/1598-ec-route-fastlyfrom
proposal/1595-ec-threshold-refresh
Open

prk-Jr wants to merge 26 commits into
feat/1598-ec-route-fastlyfrom
proposal/1595-ec-threshold-refresh

Conversation

@prk-Jr

@prk-Jr prk-Jr commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator

Proposal for DEC-13; off by default. Do not merge until DEC-13 is formally decided and #1595's WB-2/WB-5 returning-reader acceptance wording is updated.

Summary

Make the EC browser-cookie lifetime configurable and offer same-value renewal on every eligible consented Fastly/Axum document visit. ec.max_age_days accepts integers from 1 through 400 and defaults to 365; ec.sliding_refresh defaults to false. Both defaults are omitted from serialized configuration. A custom lifetime affects creation and rotation even with renewal disabled; withdrawal still expires the cookie immediately.

Renewal uses the existing browser, consent, method, status and document rules, including HTML error documents, non-GET navigations and document 304s. Named API routes and configured GET/HEAD assets do not renew. The current finalization must confirm the one-use navigation permit; low-level finalization cannot reuse a prior response's permission. Creation and rotation emit only their existing EC cookie.

Renewal adds no record reads or writes and does not extend record retention. Unread/unavailable records allow renewal; known missing, revoked or failed records and failed navigation writes suppress it. Out-of-band revocation remains unobserved until a request reads the record. Origin ts-ec mutations suppress optional renewal so it cannot undo a deletion or replacement. SharedID, its consent companion and the EID mirror retain independent lifetimes.

Shared response corrections and compatibility

The shared egress helpers change all four adapters with renewal either enabled or disabled:

  • Cookie-bearing responses require whole-response private or no-store; field-qualified private is insufficient. Existing stricter policies and 304 validators are preserved.
  • Configured Set-Cookie appends once without replacing existing cookies.
  • Operator cache headers cannot replace a cookieless origin's field-qualified private policy or restore independent CDN cache directives. This conservative veto is separate from the strict whole-response cookie-storage check.
  • Inactive HTML templates carrying only field-qualified private can receive the existing browser-cache cap, changing their browser freshness with renewal disabled.

Cloudflare and Spin still do not issue or renew EC cookies. Their tests compare omitted, disabled and enabled settings within this revision; they do not claim response parity with the base for the shared corrections above. Fastly and Axum gain optional renewal. Existing record operations, default EC lifetime attributes and WB-1 expiry behavior are preserved.

Upgrade every reader of a shared config store before publishing either new non-default key. Remove the keys and their environment overrides and republish before rolling back to an older binary. Disabling renewal does not shorten cookies already held by browsers.

Spec and stack

Spec: Configurable EC lifetime and sliding expiration, including its independent review log.

Plan: Implementation and verification.

Stacked on feat/1598-ec-route-fastly; the branch also incorporates the sibling mirror lifecycle from #1662. The shared corrections remain in this PR; splitting them into another PR is deferred. Optional Cloudflare/Spin test deduplication also remains deferred so each adapter command retains its coverage.

Closes #1595 after the formal decision and acceptance update above.

Verification

All 34 hosted checks across seven workflows passed on c30ae53ae94401b34d3b35c71d196ccb58783c23. The current head is 2ba6627e70751c4bfc2eef88f814f74fb815dfec, a subsequent maintainer merge changing only the Axum startup-test port allocation. Production code and the documented corrections are unchanged. All affected local checks passed again; current-head CI has 33 successful checks and two required integration jobs pending. Verified conversation closure remains pending those jobs.

Local verification passed all adapter test aliases (including Fastly reusable-sandbox), the native core suite (3,978 passed, 2 ignored), cross-adapter parity, build-digest tests, all eight target-matched clippy aliases, specialized compiler guards, changed-line URL-host lint, JS build and 3,379 tests, formatting, and the required script checks.

Runtime evidence includes Fastly's six real-network deadline cases, all Cloudflare/Spin worker-deadline cases, and production startup smokes for all four adapters. The local Cloudflare fast-deadline case timed out once, then passed unchanged on retry; no thresholds were changed. Cloudflare startup used a freshly built production bundle through the supported artifact override. The new core and actual Axum-router regressions first rejected the original public-cache overwrite, then passed with the conservative veto restored. They exercise cookieless responses, repeated finalization, all supported CDN cache-header variants, and renewal both disabled and enabled. Existing routed renewal tests retain whole-response cookie privacy and 304 validators.

Local fixtures do not establish Safari/ITP retention, deployed-cache behavior or real-CMP qualification. DEC-13 and the acceptance update remain separate merge gates.

@prk-Jr prk-Jr self-assigned this Nov 23, 2026
@prk-Jr prk-Jr linked an issue Nov 23, 2026 that may be closed by this pull request
2 tasks
@prk-Jr prk-Jr changed the title Propose off-by-default EC threshold refresh for DEC-13 Proposal: Off-by-default EC threshold refresh for DEC-13 Nov 23, 2026
@prk-Jr prk-Jr changed the title Proposal: Off-by-default EC threshold refresh for DEC-13 Proposal: Configure EC lifetime and renew it on eligible visits (DEC-13) Nov 23, 2026
@prk-Jr
prk-Jr marked this pull request as ready for review November 23, 2026 18:16
PR #1532 now reads the native Geo profile path from
TRUSTED_SERVER__NATIVE_GEO_PROFILE_FILE instead of TS_NATIVE_GEO_PROFILE_FILE. No file in this PR
uses the old name after the merge, so the merge only takes the rename from
PR #1646. The merge had no conflicts.
@aram356

aram356 commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

For #1532's rename of the native Geo profile variable to TRUSTED_SERVER__NATIVE_GEO_PROFILE_FILE, I pushed 668d5014b here, one merge of this PR's base:

No file in this PR uses the old name after the merge, so it only takes the rename from #1646. The merge had no conflicts.

Correction: through #1566, this merge also carries five #1540 commits that #1566 had not merged before (CloudFront forwarding authentication, AWS ingress and Terraform demo prerequisites, the example deployment gate and the deployment guide). It is not only the rename.

prk-Jr and others added 2 commits November 25, 2026 16:27
Take #1646's WB-1 lifecycle wording in the edge-cookie guide and keep the
sliding-renewal sentences. Port the Fastly sliding test to page lookups on
the EC context. Model admitted clients in the sliding tests now that refused
clients get no navigation permit, and add a refused-client case. Update the
spec's base reference and add its review log.
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
aram356 changed the base branch from feat/1574-axum-shared-identity to feat/1592-ja4-ua-contradiction November 25, 2026 20:11
aram356 added a commit that referenced this pull request Nov 25, 2026
#1655 (b76163b) now sits on #1661 and resolves its Cloudflare route test
conflict with #1661 in its own merge. The merge is clean.
@aram356

aram356 commented Nov 25, 2026

Copy link
Copy Markdown
Collaborator

For the identity integration branch (#1608), I pushed b76163b0c, a merge of #1661's new head fb7793a0e onto this PR's fbe5670ac. This PR now stacks on #1661 instead of #1646, so rc/identity can take both as plain merges, and the merge also brings #1626, #1656, #1661 and #1636, with #1617's health contract below them and #1506's repin of EdgeZero to rc/identity at d063a8e7 with main's Fastly SDK upgrade (#1671). Resolutions:

I changed the base to feat/1592-ja4-ua-contradiction (#1661).

#1661's new head b33c45b brings #1537's b181544, "Accept any Fastly EC
store link name at startup", which #1537's owner merged up through #1539,
#1538 and #1540. The merge is clean.
aram356 added a commit that referenced this pull request Nov 26, 2026
#1655 (dfb8e34) carries #1537's b181544, "Accept any Fastly EC store link
name at startup", through the chain below it. The merge is clean.
@aram356

aram356 commented Nov 26, 2026

Copy link
Copy Markdown
Collaborator

For the identity integration branch (#1608), I pushed dfb8e3449, a merge of #1661's new head b33c45b39. It brings #1537's b181544a0, "Accept any Fastly EC store link name at startup", which #1537's owner merged up through #1539, #1538 and #1540. The merge had no conflicts.

Takes #1661's new head 62543b0, 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 added a commit that referenced this pull request Nov 26, 2026
#1655 (3b79136) carries #1506's repin of EdgeZero to rc/identity at
459bd27d (42e0c46), with PR 275 at 0e2a58ae, the stack's test fixes and
EdgeZero 536's bounded record update, RecordHandle::update, through the
chain below it. The merge is clean.
aram356 added a commit that referenced this pull request Nov 27, 2026
#1655 (8560f8e) 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), through the
chain below it. The merge is clean.
@aram356

aram356 commented Nov 27, 2026

Copy link
Copy Markdown
Collaborator

For the identity integration branch (#1608), I pushed 8560f8e3a.

Takes #1661's new head 5d951a7, 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.

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

Reviewed 8560f8e3a06b against its live base, #1661 at 5d951a783ec1. I am requesting changes because the opt-in renewal can add an EC cookie to a response whose origin cache policy still permits shared storage. The inline comments separate correctness defects from non-blocking cleanup. The existing hosted renewal tests passed, but they do not exercise the field-qualified cache policy.

This review is separate from the policy decision. DEC-13 remains open, and #1595’s WB-2/WB-5 acceptance wording still needs to be updated before merge.

Comment thread docs/guide/configuration.md Resolved
Comment thread docs/guide/configuration.md Resolved

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

Re-review of 8560f8e3a..6398e976d (one commit).

12 of 13 items from my last review are addressed. R8 (sharing the Cloudflare/Spin test matrix) is deferred, which is fine since it was nonblocking. The fix for prior R1 opened a new privacy gap in the operator-header guard; that's R1 inline and the one I'd want fixed first.

Approving so I'm not blocking, on the understanding that you'll handle the inline comments before merging. DEC-13 and the WB gates still apply as merge conditions for the proposal itself.

PR #1661's new head brings the cascaded owner review fixes from #1525, #1526, #1488, #1489, #1639, #1531, #1532, #1615, #1637, #1533, #1536, #1535, #1537, #1538 and #1646.

crates/trusted-server-adapter-axum/tests/native_ec.rs: #1646 added a test that the final operator representation controls identity cookie eligibility, and #1655 added sliding-EC renewal tests at the same place. The resolution keeps all three tests.

crates/trusted-server-core/src/response_privacy.rs: #1646 added a repeated operator pass test, and #1655 added a configured-cookie test at the same place. The resolution keeps both tests.
PR #1662's new head becomes #1655's second base and brings #1662's Fastly EC route, whose finalize returns the mirror decision, with the wave A cascade.

#1655 and #1662 are siblings on #1661, so this is the first PR to hold both sides of their finalize change.

crates/trusted-server-core/src/ec/finalize.rs: #1655 added ec_finalize_response_with_document with a document flag and made ec_finalize_response delegate to it, and #1662 made ec_finalize_response return the mirror decision. The resolution makes ec_finalize_response_with_document return the Option<MirrorCookie>, and ec_finalize_response delegates with document false and returns it.

crates/trusted-server-core/src/ec/app/lifecycle.rs: IdentityApp::finalize keeps #1655's call to ec_finalize_response_with_document with the document flag and binds its result as #1662's mirror.
PR #1662's new head brings wave B: #1506's merge of main ab5c24f (#1501, js_asset_proxy rewriter ordering) and its repin of EdgeZero to rc/identity 8a73c0978806, carried up through the chain. The merge is clean. Cargo.lock changes only the 10 EdgeZero package sources, now at 8a73c097; the codegen crate's nested Cargo.lock is unchanged.
aram356 added a commit that referenced this pull request Dec 1, 2026
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.
@aram356
aram356 changed the base branch from feat/1592-ja4-ua-contradiction to feat/1598-ec-route-fastly December 1, 2026 23:14
@aram356

aram356 commented Dec 1, 2026

Copy link
Copy Markdown
Collaborator

Round 12 identity realignment: rc/identity is now at db7dce634, and EdgeZero is pinned to its rc/identity at 8a73c097. This branch fast-forwarded from 6398e976d to 05c509d95:

The base moved to feat/1598-ec-route-fastly. This PR's new ec_finalize_response_with_document and #1662's mirror cookie change the same function, and the two are siblings, so this PR now merges #1662: ec_finalize_response_with_document returns the Option<MirrorCookie>, ec_finalize_response delegates to it, and IdentityApp::finalize binds the result.

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.
aram356 added a commit that referenced this pull request Dec 2, 2026
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 brings #1506's move of the five auction endpoint test requests from test-publisher.com to publisher.example.com, for the URL-host lint. The merge is clean.
aram356 added a commit that referenced this pull request Dec 2, 2026
It brings #1655's cascade merge of #1506's auction endpoint test host fix.
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.
aram356 added a commit that referenced this pull request Dec 3, 2026
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
@aram356

aram356 commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator

Round 15 identity realignment: rc/identity is now at 391a08578, and EdgeZero is pinned to its rc/identity at ef5cbf308. This branch fast-forwarded from 25397b348 to 7d0cdb2bf:

Each merge message says what it carries and how any conflict was resolved.

prk-Jr and others added 2 commits December 3, 2026 21:36
Keep operator cache vetoes conservative while requiring whole-response privacy for cookies. Add shared-helper and routed regressions, and qualify adapter compatibility and preserved expiry behavior.
Carries #1533's Axum startup-test port fix (779e446) and nothing
else. Owner commits pushed to other chain PRs since round 15 come in
with the next round.
@aram356

aram356 commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator

Cascade of #1533's Axum startup-test port fix (779e44673): 2ba6627e7 merges it into this PR. There were no conflicts and nothing else changed. The fix moves free_loopback_port in crates/trusted-server-adapter-axum/tests/routes.rs below the ephemeral port range, and #1533's note has the details. Owner commits pushed to other chain PRs since round 15 come in with the next round. rc/identity is now 62f8e41e2.

@aram356

aram356 commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator

Merged #1627's runtime KV removal (7c2b84f45) into this branch as 10dd4b84c, on top of 2ba6627e7.

At the maintainer's request, that commit removes the generic runtime KV store trusted_server_runtime_kv. Nothing reads or writes it, and the managed Fastly deploy made every service provision and pay for it. edgezero.toml and the Fastly Hooks::stores() now declare only trusted_server_kv, and RuntimeServices::kv_store() is unavailable on every adapter.

Only that commit was merged, not the base branch's new head. Conflicts were resolved in edgezero.toml, the Fastly Hooks::stores() in app.rs, fastly.toml, the Viceroy template, the integration tests' config.rs, trusted-server.example.toml, docs/guide/architecture.md and docs/guide/edgezero.md. Only trusted_server_kv stays declared, this branch's record-store comment and local seeds are kept, and the runtime-KV lines are dropped. The Axum README and docs/guide/axum-dev.md keep this branch's Axum wording.

Checks on this head: no reference to the removed store remains and cargo fmt --check passes; clippy-fastly, clippy-axum, clippy-cloudflare and clippy-spin-native pass. rc/identity (b9dc3153e) passed the full CI gate list with the removal.

PR #1662's new head brings #1487's change that strips `ts-eids` from publisher-origin requests unless the operator opts in and #1646's fix that preserves filter headers through identity finalization.

crates/trusted-server-core/src/response_privacy.rs: #1655 adds a test
that a configured cookie is appended once without replacing existing
cookies, and #1646 (through #1662) adds a test that the identity-scoped
header pass and the adapter pass share cookie and representation
provenance, both at the top of the test module. #1655's field-level
privacy check merges into #1646's shared `apply_operator_response_headers`
body, so both scopes use it. The resolution keeps both tests, the base's
first.

Semantic fix in crates/trusted-server-adapter-fastly/src/app.rs: #1646
drops the request-filter argument from `apply_terminal_response_effects`
because filter effects now apply before identity finalization. #1655's
EC-route finalization test still passed `None` for it, so the call now
passes only the response. The test applied no filter effects before, so
its behavior is unchanged.
aram356 added a commit that referenced this pull request Dec 3, 2026
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.
@aram356

aram356 commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator

Round 17 identity realignment: rc/identity is now at 0ed862633, and EdgeZero stays pinned to its rc/identity at ef5cbf308. This branch fast-forwarded from 10dd4b84c to 888c5f1b8:

In response_privacy.rs this round's link keeps this PR's new cookie test and #1646's provenance test. This PR's EC-route finalization test drops the filter argument #1646 removed from apply_terminal_response_effects.

Each merge message says what it carries and how any conflict was resolved.

@jevansnyc jevansnyc mentioned this pull request Dec 4, 2026
9 of 15 tasks
@aram356

aram356 commented Dec 4, 2026

Copy link
Copy Markdown
Collaborator

Merged #1614's /_ts/ local answers (48930c270) into this branch as c9efdf780, on top of 888c5f1b8.

Trusted Server owns the /_ts/ namespace (#1740). A request for /_ts or any /_ts/ path that no route handles now gets a local 404 on Fastly, Axum, Cloudflare and Spin, and never reaches the publisher origin. The path is matched after percent-decoding. Paths outside the namespace, such as /_tsx or /articles/_ts/x, still go to the publisher origin, and every routed /_ts/ path answers as before.

This merge takes #1662's new head (1e8c9997f), which carries 48930c270 and nothing else new to this branch. The merge conflicted only in the Spin tests/routes.rs, where both sides add a test at the end of the file. The resolution keeps this branch's tests first and the new /_ts/ test after them.

Checks on this head: no conflict markers; cargo fmt --all -- --check passes; the merge adds exactly #1614's change to this branch's files; it merges cleanly with every lower head in its stack; clippy-fastly, clippy-axum, clippy-cloudflare and clippy-spin-native pass. rc/identity (e72407155) passed the full CI gate list with the change.

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.

ts-ec refresh for returning readers without breaking cacheability

4 participants