Skip to content

Collect server-side identity provider EIDs in a single page-load write - #1487

Open
dhruv8sh wants to merge 92 commits into
review/shared-async-ecfrom
feat/s2s-eid-collection-core
Open

dhruv8sh wants to merge 92 commits into
review/shared-async-ecfrom
feat/s2s-eid-collection-core

Conversation

@dhruv8sh

@dhruv8sh dhruv8sh commented Nov 2, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Adds a server-side identity provider framework so Trusted Server can collect provider EIDs (extended IDs) on publisher navigations instead of depending only on browser-side ID modules, which ad blockers and browser privacy features increasingly strip.
  • Stores provider EIDs at full fidelity (source, all UIDs, atype, ext) and serves them unchanged into OpenRTB and Prebid, so bidders see the same shape the provider returned.
  • Collapses every browser-driven Edge Cookie KV write into a single page-load write, so provider lookups, partner syncs and consent changes share one write per navigation and stay inside the KV write budget.
  • Adds a second, after-response collection phase for providers that are too slow for the page budget; their results land in one follow-up write.

This PR registers no provider kinds yet, so none of the provider paths run in production until the vendor PR lands. Follow-up PRs stack on this branch: mirror/pull sync (#1489), then the per-vendor provider implementations (#1488).

Changes

Area Change
ec/eid_types.rs, ec/kv_types.rs, ec/kv.rs, openrtb.rs, ec/prebid_eids.rs Full-fidelity provider EID storage and serving
ec/write_plan.rs, ec/page_load.rs, ec/finalize.rs, publisher.rs One page-load write per browser navigation, built from a write plan
ec/provider.rs, ec/coordinator/*, ec/registry.rs, settings.rs, config.rs, new trusted-server-identity-providers crate, adapter app.rs / main.rs Provider config, validation and a coordinator that runs provider lookups concurrently on publisher navigations within the request deadline
ec/coordinator/after_response.rs, adapter main.rs After-response collection phase and its follow-up write
docs/guide/configuration.md, docs/guide/edge-cookies.md, docs/guide/integrations/prebid.md, trusted-server.example.toml ec.identity_providers configuration docs and example
docs/superpowers/specs/2026-10-30-s2s-eid-collection-design.md Design spec

Collection

  • Two phases. collect = "page" (default) runs before the response within identity_budget_ms (default 200). collect = "after_response" runs after the response is sent within identity_after_response_budget_ms (default 2000).
  • After-response safety. The follow-up phase runs only when the EC existed before this navigation and its row, read after the response, is live and consented. It re-reads the row just before writing and guards the write with that read's generation, so a write from another request in between is not lost.
  • Consent. Lookups need EC consent and EID persistence consent. tcf_vendor_id, when set, is checked only where GDPR applies or a TCF string is present. A KV read failure skips every provider. When a provider's vendor consent is denied, its stored IDs are also withheld from bidders, x-ts-eids and /identify.
  • Refresh state. A provider only sees, and only refreshes, UIDs it wrote itself. Refresh times at or before now are dropped, and generated IDs are kept only for due sources with no live UID.
  • Opt-out memory. A provider opt-out is remembered for 30 days in a new opt_outs field on the row, and the provider is not called again until it lapses. Older builds ignore the field.
  • Rate limits. rate_limit_per_hour is per EC hash, so clearing cookies does not reset it. On Fastly it is enforced per minute with a minimum of one, so values below 60 behave like 60.

Storage and writes

  • Browser IDs never fill provider-owned sources. A source owned by a configured provider is never written from the ts-eids cookie, so an opted-out ID cannot come back from the browser.
  • Batch sync rejects records for provider-owned sources, so batch sync cannot overwrite provider-owned EIDs.
  • UID length limits. Browser, batch and pull ingest keep the 512-byte limit. Provider writes and stored reads allow 1024 bytes, to fit LiveRamp envelopes (about 700 bytes). Reads skip UIDs over the limit instead of failing the whole row.
  • Withdrawal is the one exception to the single write. On any finalized request carrying the EC cookie, a consent withdrawal writes the KV tombstone (with a bounded CAS retry, as on main) and expires the cookie once every tombstone is in place.
  • Full rows. Batch sync reports a write that would exceed the row size cap as row_full and continues.
  • No prune-only writes. A plan whose only change is pruning expired data makes no write.
  • Row size cap is enforced with incremental size tracking.

Behaviour changes from main

  • EC minting needs Fetch Metadata. A new EC is issued only on navigations with Sec-Fetch-Dest: document and Sec-Fetch-Mode: navigate, the same check that permits its row write. Clients that send no Fetch Metadata no longer get a new EC.
  • Browser EIDs are written only on navigations. EIDs in an /auction or page-bids request body go to bidders but are never persisted.
  • A newly minted EC is withheld. It is not sent as user.id and no provider lookup runs for it until a later navigation finds its row.
  • Providers run on Fastly only. An unknown or unsupported provider kind fails startup, and the Axum, Cloudflare and Spin adapters refuse to start with an enabled provider.
  • Rollback risk. Builds older than this PR reject a whole KV row that holds a UID over 512 bytes, so rolling back after LiveRamp envelopes are stored makes those rows unreadable. A config blob that sets the new identity settings cannot be read by an older build either; with the defaults they are omitted.

Cleanup

  • Removed EID resolution, create-if-absent and proxy inputs left unused after the page-load write, along with the snapshot preload for a freshly generated EC.
  • The partner registry is built once per app state and reused by both phases; the core clock is used throughout.
  • ProviderResponse debug output hides the body and any request context.

Closes

Part of #1567 and #1245; #1489 closes #1567. Two spec requirements this PR leaves open are delivered higher in the stack by #1642 (#1591): ID-8, saving /auction body EIDs, and SH-2, removing the per-request thread_local.

Spec

Spec: docs/superpowers/specs/2026-10-30-s2s-eid-collection-design.md, included in this PR.

Test plan

  • cargo test-fastly && cargo test-fastly-reuse && cargo test-axum && cargo test-cloudflare && cargo test-spin
  • All eight clippy aliases (clippy-fastly, -axum, -cloudflare, -cloudflare-wasm, -spin-native, -spin-wasm, -cli, -codegen)
  • cargo fmt --all -- --check
  • Parity tests, native template build-digest test and clippy, scripts/lint-wasm-clock.sh
  • JS tests: cd crates/trusted-server-js/lib && npx vitest run (plus npm run format and npm run lint)
  • Docs format and Markdown prettier check
  • ./scripts/test-cli.sh, domain lint against origin/main, CI Node pin guard, docs-proposal scripts
  • HTML EOF checks (native harness, Axum and Fastly auction controls)
  • Adapter-level tests for the after-response path (needs a registered provider kind; covered end to end in Add identity providers for ID5, LiveIntent, LiveRamp, ConnectID and UID2 #1488)
  • Manual testing via fastly compute serve

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

Add EID value types, an additive KV schema for provider-written EIDs with owner and expiry, EID-level fields on the OpenRTB Eid, and a resolver that serves only live UIDs to auctions, x-ts-eids, identify and the admin auction preview. Auction EIDs merge per (source, inserter, matcher, mm, ext) with first-occurrence UID dedupe. KV writes over 16 KiB are refused.

Signed-off-by: dhruv8sh <dhruv8sh@proton.me>
Top-level document navigations on the publisher route receive a single-use write permit; finalize plans one row change (browser ingest, provider results, prune, size cap) and commits it once without retry. Non-navigation requests and redirects never write, integration proxies no longer mint ECs, and new ECs are created by the page-load write instead of at generation. Withdrawal tombstones only the active EC and keeps the EC cookie when the tombstone does not land; the withdrawal completion marker is the one deliberate extra write.

Signed-off-by: dhruv8sh <dhruv8sh@proton.me>
Add the IdentityProvider/ProviderKind interface and [[ec.identity_providers]] config, response validation, a deadline-bounded LookupTransport over select_until, the IdentityCoordinator with consent, allowlist and budget checks, the trusted-server-identity-providers crate (no kinds yet), and Fastly wiring that dispatches before the origin fetch and collects before the single page-load write.

Signed-off-by: dhruv8sh <dhruv8sh@proton.me>
Signed-off-by: dhruv8sh <dhruv8sh@proton.me>
Signed-off-by: dhruv8sh <dhruv8sh@proton.me>
Orphan recovery minted a new EC ID and then discarded the navigation's provider results because they were looked up under the orphaned ID. Lookups depend on the browser, not the EC ID, and the orphan has no row, so retarget them to the replacement as the spec requires.

Signed-off-by: dhruv8sh <dhruv8sh@proton.me>
Collection that starts after its deadline takes one nonblocking snapshot. A request still in the headers state moved to the body state without reading bytes, which counted as no progress, so a response that had fully arrived was abandoned unread and reported as a timeout. Count entering the body state as progress.

Signed-off-by: dhruv8sh <dhruv8sh@proton.me>
A response body the host already holds can report not ready until the host services async I/O once, so an expired snapshot abandoned identity responses that arrived well before the deadline and reported them as timeouts. Give each pending body one host select capped at 1 ms before abandoning it.

Signed-off-by: dhruv8sh <dhruv8sh@proton.me>
…not fill

Signed-off-by: dhruv8sh <dhruv8sh@proton.me>
Signed-off-by: dhruv8sh <dhruv8sh@proton.me>
@dhruv8sh dhruv8sh self-assigned this Nov 2, 2026
Page-load writes only run on real navigations, which browsers mark with both sec-fetch-dest: document and sec-fetch-mode: navigate. Without the mode header the consent withdrawal scenario never got a write permit, so the EC cookie was kept.

Signed-off-by: dhruv8sh <dhruv8sh@proton.me>
A lookup sends the EC ID to the provider before finalize can decline the EC, so GPC, sale opt-out and unknown-jurisdiction requests must not dispatch. Matches the gate pull sync already applies.

Signed-off-by: dhruv8sh <dhruv8sh@proton.me>
… read

LiveRamp envelopes are about 700 bytes, so the 512-byte limit dropped every one from KV and the auction. Rows written under a higher limit now load with the oversized IDs removed instead of failing as a whole.

Signed-off-by: dhruv8sh <dhruv8sh@proton.me>
@dhruv8sh
dhruv8sh force-pushed the feat/s2s-eid-collection-core branch from 304f395 to 2de6d0d Compare November 3, 2026 14:29
@jwrosewell

Copy link
Copy Markdown
Collaborator

@dhruv8sh, directionally the layout here is not compatible with V2 (the 55 pull requests tracked in #777, merged in order).

This pull request creates one shared trusted-server-identity-providers crate, and #1488 adds eight vendors to it as files. In V2 each identity vendor is a module in a folder of its own at identity/<vendor>, where Lockr already is, with its own named maintainer. A module hands core the identifiers it learned for a request, and the Edge Cookie itself is a module.

The V2 spec is identifier-modules and pluggable-providers, with the folder layout in integrations-crate, all in #1342. The associated pull requests are #1382 (a module hands core its identifiers, starting with the Prebid EID cookie) and #1343 (the Edge Cookie as a module, with the HMAC module built in).

Could you evaluate the V2 spec and those pull requests before progressing this one?

…readable rows

Signed-off-by: dhruv8sh <dhruv8sh@proton.me>
Signed-off-by: dhruv8sh <dhruv8sh@proton.me>
Signed-off-by: dhruv8sh <dhruv8sh@proton.me>
Signed-off-by: dhruv8sh <dhruv8sh@proton.me>
…or gate

Signed-off-by: dhruv8sh <dhruv8sh@proton.me>
Signed-off-by: dhruv8sh <dhruv8sh@proton.me>
Signed-off-by: dhruv8sh <dhruv8sh@proton.me>
Signed-off-by: dhruv8sh <dhruv8sh@proton.me>
Signed-off-by: dhruv8sh <dhruv8sh@proton.me>
@aleksUIX

Copy link
Copy Markdown

Checked 5bf65d1e. The egress filter now drops a provider-owned source when its TCF vendor consent is denied. The regression covers a stored UID with consent denied and granted. That addresses my vendor-consent point by source inspection.

Takes #1526's new head 5fa4461, which brings #1506's repin of EdgeZero to
rc/identity at d063a8e7 and its merge of main's Fastly SDK 0.13.3 upgrade
(#1671). The merge is clean.
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 60de89610, a merge of #1526's new head 5fa44612a. It brings #1506's repin of EdgeZero to rc/identity at d063a8e7 and its merge of main's Fastly SDK upgrade (#1671): fastly 0.13.3, url 2.5.9 and Viceroy 0.22.0. The merge had no conflicts.

ChristianPavilonis added a commit that referenced this pull request Nov 25, 2026
…IDs in a single page-load write

Source: feat/s2s-eid-collection-core at 60de896.
Takes #1526's new head 2fc33e0, 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 4944050bc, a merge of #1526's new head 2fc33e061, 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.

Takes #1526's new head 61fa840, 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 59161a541.

Takes #1526's new head 61fa840, 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.

PR #1526's new head brings its shared async EC review fixes (no block_on in core, store cancellation docs, unboxed BatchSyncWriter, blocking-executor tests), plus the cascaded owner review fixes from #1525.

The merge is textually clean but did not compile, so this link carries two semantic fixes.

crates/trusted-server-core/src/ec/batch_sync.rs: #1526 made the private BatchSyncWriter trait generic-only (no async_trait, no boxing), and #1487 added process_mappings_for_partner taking &dyn BatchSyncWriter. The resolution keeps #1526's unboxed trait and makes process_mappings_for_partner generic over the writer like its callers.

crates/trusted-server-core/src/ec/mod.rs: #1526 added a blocking-executor regression for generate_if_needed that seeds the removed AddCollidingEcKv store and expects a persisted row, and listed persist and collision errors on the method. In #1487 generation never writes KV and holds the row for the page-load write. The resolution keeps #1526's block_on regression on an in-memory graph and asserts the pending row instead, and keeps #1487's error list, since generation can no longer fail on persistence or collisions.

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

Approving so this isn't waiting on me, on the understanding that the comments below get handled before this reaches main.

All five of my earlier requests are fixed, and I checked each against the code and tests: concurrent provider opt-outs are kept, vendor consent applies after the EID merge, providers get the raw IPv6 address, lapsed opt-outs don't renew, and the credential-shaped strings are gone from the branch.

The #1557 snapshot comment is the one I'd hold the merge for. It needs a re-merge or a revert, not a code change in this PR.

Questions:

  • The credential-shaped strings are still reachable at 889159cd6, and GitHub serves that commit by SHA. Were they fake, or have they been rotated?
  • The 6c0bdae31 merge dropped the deadline.rs fix and moved page-phase gather onto EdgeZero's batch client. Every adapter test here uses ScriptedHttpClient, so nothing exercises a real lookup that answers inside identity_budget_ms while the origin is slower. Can #1488 add a Viceroy test for that, with a real kind and a delayed origin?

}

if (existing === value) return;
const previous = existing === undefined ? undefined : lastUpdated(existing);

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.

This branch carries a stale snapshot of #1557

Merge 64674f94c pulled #1557 at 76e1dd5f6 into this branch, so it's part of this diff, and this is still the old same-day tie rule (previous === updated). #1557 has since replaced it in 5d5b07007 because it could keep a stale grant after a withdrawal, or a stale denial after a new grant. That commit also adopts the IAB stub's listener instead of registering a second one. If this merges as is, the old mirror lands in review/shared-async-ec and everything stacked on it, and whoever merges #1557's fixed head later has to get the conflict right or the fix is lost.

The same goes for the other #1557 files in this diff (consent/extraction.rs, cookies.rs, constants.rs, integrations/prebid.rs, sourcepoint/index.ts, its test, and docs/guide/integrations/sourcepoint.md). git diff 59161a541 5d5b07007 over those paths shows 5 files differ. Nothing in this PR's own code reads the mirror cookie.

Either re-merge #1557's current head into the chain the way you re-merge #1526, or revert 64674f94c and pick #1557 up through the base once it lands. Either way, please list #1557 as a dependency in the PR body. While you're in there, the body's Changes table still lists ec/coordinator/after_response.rs, and the file is ec/after_response.rs.

}));
continue;
}
let input = LookupInput {

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.

Minted-EC lookups trust sends_ec_id() but still hand the provider the EC ID

ff43ff545 lets providers with sends_ec_id() == false run on the navigation that mints an EC, before its row exists (the gate at line 493). The safety argument in provider.rs:74-79 is that a failed row write then exposes nothing. But this still builds LookupInput { ec_id: lookup.ec_id, .. } and passes it to generate() and build_request(). A provider that misdeclares and puts ec_id in its request leaks an EC that may never be issued (a redirect, a failed or colliding create), and nothing in core catches it. That's the same leak prk-Jr's round-2 blocker closed for row-less ECs.

Today all eight #1488 kinds return false and none read ec_id, while #1489's PullSyncProvider keeps true and does read it. So the only thing holding this together is each kind's two declarations agreeing.

Suggest making LookupInput::ec_id an Option<&str> that's None when !sends_ec_id(), or at least None on the minted path. Pull sync never runs on the minted path, so it would only unwrap. It's cheaper to change now, before #1488 and #1489 settle on the contract.

assert_eq!(transport.sent.borrow().len(), 1, "should send one request");
}

fn tcf_consent(vendor_consents: Vec<u16>) -> ConsentContext {

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.

Nit: the TCF consent fixture is copied four times

This has the same signature and body as consent_granting_vendors in test_support.rs:142. vendor_denied_consent() in auction/endpoints.rs:809 and vendor_42_denied_consent() in publisher.rs:9714 are both consent_granting_vendors(Vec::new()). Any change to the TcfConsent shape has to hit four places, and a copy that drifts would quietly test a different consent context. Please call crate::test_support::tests::consent_granting_vendors from all three.

PR #1526'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

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 59161a541 to 0fde5ab46:

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

PR #1526'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.
@jevansnyc

Copy link
Copy Markdown
Collaborator

@dhruv8sh a request tied to #1726: can this PR carry the publisher-origin ts-eids strip from #1428, with the default reversed?

Background

A production deployment is returning 400 Request Header Or Cookie Too Large on the TS path. The measurements are in #1726. In short:

  • The publisher origin sits behind an AWS ALB, which rejects any single request header over 16 K. That quota is fixed.
  • TS forwards the browser Cookie header to origin unmodified, so ts-eids (up to about 3.1 KB, more if a second copy exists under another scope) counts against that limit.
  • A logged-in, consented visitor on that deployment has about 870 bytes of headroom with one ts-eids at its cap.

What happened to the strip

Request

  1. Strip ts-eids from publisher-origin requests by default, every copy by exact name. TS is the only reader of that cookie (auction fallback, EID ingestion at finalize, the admin echo), and all of those run at the edge. We know of no deployment whose origin reads it.
  2. Replace the opt-out with an opt-in, for example [ec] forward_eids_cookie_to_origin = true, default false.
  3. Log a warning at config load when the opt-in is set, and say the same in the example TOML and config docs: forwarding adds up to about 3.1 KB to every origin request and can push the Cookie header past the origin's limit, which fails the page.
  4. Keep the __Host-ts-eids-s mirror on the always-strip list, as in Add design spec for server-side identity providers #1428.
  5. Add the regression case from Requests can return 400 when ts-eids makes the Cookie header too large #1726: a jar that fits under a limit without ts-eids and exceeds it with ts-eids reaches origin without the cookie.

If this is easier to land as a small separate change against main instead of inside this stack, say so and we can do it that way.

PR #1526's new head brings #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. 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

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 502210865 to f3c4f9cdb:

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

A large ts-eids cookie can push the Cookie header past the origin's header limit and get the request rejected with a 400 (#1726). Trusted Server reads ts-eids before building the origin request, so EID ingestion is unaffected.

[ec] forward_eids_cookie_to_origin, off by default, restores forwarding for origins that read ts-eids themselves.

Signed-off-by: dhruv8sh <dhruv8sh@proton.me>
@aram356

aram356 commented Dec 4, 2026

Copy link
Copy Markdown
Collaborator

Merged #1614's /_ts/ local answers (48930c270) into this branch as 3f6787219, on top of 76dc59f3f.

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 #1526's new head (66a59abbd), which carries 48930c270 and nothing else new to this branch. It was clean.

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

8 participants