Skip to content

Verify awaited identity lookups and save /auction body EIDs - #1642

Open
dhruv8sh wants to merge 24 commits into
feat/record-backend-edgezerofrom
feat/providers-awaited
Open

dhruv8sh wants to merge 24 commits into
feat/record-backend-edgezerofrom
feat/providers-awaited

Conversation

@dhruv8sh

Copy link
Copy Markdown
Collaborator

Summary

  • Pins ID-4 and WB-1 on Fastly with tests: a provider that answers within the deadline has its ID in the row and the mirror cookie of the same navigation (including the real ID5 provider); a late one is skipped without delaying the response; identity cookies are set only on navigations.
  • Removes the request-local thread_local for Fastly page lookups: the handler collects them once the response status is known, before finalize, and carries only the results on the EC context.
  • Saves /auction request-body EIDs to the EC row again (ID-8), under browser-ingest rules, in one conditional write to an existing row. /auction is not a page load, so "a page load writes the record once" still holds.

Changes

File Change
crates/trusted-server-adapter-fastly/src/app.rs Page lookups collected in the handler (no NAVIGATION_LOOKUPS thread-local); after-response signals move into EcFinalizeState. Tests: page_lookup_within_the_deadline_reaches_the_record_and_the_mirror_cookie, page_lookup_past_the_deadline_is_skipped_without_delaying_the_response, id5_lookup_reaches_the_minted_record_and_the_mirror_of_the_same_navigation, identity_cookies_are_set_only_on_navigations_and_may_expire_anywhere.
crates/trusted-server-adapter-fastly/src/main.rs, post_delivery.rs Finalize takes the collected results instead of draining lookups itself.
crates/trusted-server-core/src/ec/kv.rs New KvIdentityGraph::commit_auction_ingest: one conditional write to a live row the request read; never creates or recovers a row, no retry.
crates/trusted-server-core/src/ec/finalize.rs, ec/mod.rs, auction/endpoints.rs /auction passes its body EIDs to finalize (fill-missing, consent-gated, SharedID opt-out applied, provider-owned sources protected); cookies still wait for the next navigation. New finalize tests; the endpoint test now expects the EIDs saved.
docs/superpowers/specs/2026-10-30-s2s-eid-collection-design.md, docs/guide/edge-cookies.md, CHANGELOG.md Document /auction body EID persistence (D1, §5.4, §5.5, §12.3), the WB-1 rule, and the Axum deferral.

WB-1 reading: identity cookies are set only on navigation and EC route responses; expiry Set-Cookie headers (withdrawal, mirror revocation) may appear on any response.

Not in this PR:

Closes

Closes #1591

Spec

Spec: server-side identity on every adapter, ID-4, ID-5, WB-1

Test plan

  • cargo test-fastly && cargo test-axum (also test-fastly-reuse, test-cloudflare, test-spin, parity, build-digest, CLI tests)
  • cargo clippy-fastly && cargo clippy-axum (all clippy aliases, including CLI and codegen)
  • cargo fmt --all -- --check
  • JS tests: cd crates/trusted-server-js/lib && npx vitest run (3350 pass; test/trace/collector.test.ts "invalidates capture on checked eviction overflow" times out locally at ~16 s vs 15 s, also on the base branch, with no JS change in this stack)
  • JS format: cd crates/trusted-server-js/lib && npm run format
  • 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: scripts/lint-wasm-clock.sh

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

Fastly already starts provider lookups at navigation, collects them against one shared deadline inside the single finalize bridge and writes their IDs in the page-load write. These tests pin the acceptance criteria: a lookup answering within the deadline reaches the record and the mirror cookie of the same navigation response, one past the deadline is skipped and releases the response at the deadline, the registered ID5 provider puts its UID in the minted record and the mirror of the navigation that mints the EC, and identity cookies are set on navigations but never on subresource, auction or page-bids responses.

Part of #1591 (ID-4, WB-1).

Signed-off-by: dhruv8sh <dhruv8sh@proton.me>
The Fastly navigation parked its in-flight provider batch and its after-response signals in a request-local thread_local for finalize to take. The batch is not Send, so it cannot ride in response extensions. The handler now collects the page-phase lookups once the response status is known, skipping a redirect as before, and the results reach finalize on the EC context. The after-response signals travel in EcFinalizeState. Lookups still start before the origin fetch, so their wait overlaps it, and still complete before EC finalization.

Tests drive routing on the fixture clock so collection can reach the lookup deadline.

Signed-off-by: dhruv8sh <dhruv8sh@proton.me>
ID-8 keeps main's behaviour: EIDs in the /auction request body are saved to the record. /auction is not a page load and holds no page-load permit, so the body EIDs go in one conditional write of their own (KvIdentityGraph::commit_auction_ingest) under browser-ingest rules: consent-gated, SharedID opt-out applied, filling only partner UIDs a live row lacks and never a provider-owned source. The row must have been read live; the write never creates or recovers a row and a conflict drops the EIDs without a retry. The request's ts-eids and sharedId cookies are still left to the next navigation, so the endpoint now hands finalize only the body's EIDs.

The navigation's single page-load write is unchanged. Update the S2S EID collection spec, the edge cookies guide and the changelog, which said body EIDs are never stored.

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

Identity cookies are set only on navigation and EC route responses; expiry Set-Cookie headers for a withdrawal or a mirror revocation are allowed on any response. Rename the Fastly test and let it ignore expiries, and say so in the S2S spec. Note in the spec that Axum's after-response follow-up writes (ID-5) are deferred to #1581.

Signed-off-by: dhruv8sh <dhruv8sh@proton.me>
@dhruv8sh dhruv8sh self-assigned this Nov 20, 2026
Signed-off-by: dhruv8sh <dhruv8sh@proton.me>
@dhruv8sh
dhruv8sh added this pull request to stack #1645 November 20, 2026 01:58
Signed-off-by: dhruv8sh <dhruv8sh@proton.me>
Signed-off-by: dhruv8sh <dhruv8sh@proton.me>
Signed-off-by: dhruv8sh <dhruv8sh@proton.me>
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 #1641. 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 9cad92896 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 #1641. 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.

dhruv8sh added a commit that referenced this pull request Nov 24, 2026
Keeps the finalize mirror return and FinalizeRequest from this branch on top of
the base's ineligible-cookie filter, and moves #1642's /auction tests to
FinalizeRequest.
dhruv8sh added a commit that referenced this pull request Nov 24, 2026
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 f654f67ef, a merge of #1641's new head e2f1f6975. It brings the Axum serving line, including #1617's with_finalization and #1613's conformance runner, #1488's hashed-email intake and PageIdentityDispatch, #1489's FinalizeRequest and request time, and #1506's repin of EdgeZero to rc/identity at d063a8e7 with main's Fastly SDK upgrade (#1671). Resolutions:

#1641's new head 739161e 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

aram356 commented Nov 26, 2026

Copy link
Copy Markdown
Collaborator

For the identity integration branch (#1608), I pushed 85436785d, a merge of #1641's new head 739161ea0. 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 #1641's new head 0a18d37, 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 f2c268ae7, a merge of #1641's new head 0a18d37aa, 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.

Approving. This PR moves Fastly page-phase identity lookup collection out of the NAVIGATION_LOOKUPS thread-local and into the handler. Collection now runs once the response status is known, a redirect drops the batch without waiting, and only the Send results travel on EcContext. After-response work now goes to post-delivery on EcFinalizeState. The PR also adds tests for ID-4 and WB-1 on Fastly, and it saves /auction body EIDs to a live row again (ID-8) through a separate conditional write, commit_auction_ingest.

I traced the following and found no blocking problems:

  • Lifecycle: removing the thread-local leaves nothing that can outlive the request. Detached responses never had page lookups to release. The after_response handoff still runs after apply_edgezero_ec_finalize, which sets the after-response permit, so post-delivery gating is the same as before.
  • /auction ingest gating:
    • It runs only after the consent_allows_ec early return. The updates pass through gate_eid_updates_by_consent (Purpose 1 + 4) and the SharedID opt-out filter.
    • plan_write refuses a non-consented row or a snapshot without a generation. apply_browser_ingest skips provider-owned sources and fills only vacant ones.
    • It writes only for a returning EC with a live, consented row (no create, no orphan recovery), and it does not write when nothing changes.
  • Cookie fallback: the ts-eids cookie fallback still reaches bidders but is no longer put on ec_context, so the cookie is not persisted from /auction.
  • Cookies on /auction: finalize passes now: None on /auction, so no mirror cookie is set there, which matches WB-1.

One non-blocking finding is inline: /auction adds a writer whose write can conflict with an in-flight navigation's page-load write, which the spec text says is unaffected.

Verification

  • Native cargo test -p trusted-server-core --lib -- auction ec::finalize ec::kv: 645 passed at f2c268ae7.
  • Broken control: with the commit_auction_ingest call removed, finalize_saves_auction_body_eids_to_missing_partner_uids and auction_body_eids_reach_context_and_kv fail. finalize_auction_body_eids_never_create_a_row passes either way, as a guard on absence should.
  • The Fastly adapter tests (the new ID-4/WB-1 tests) were not run locally because the local Viceroy is older than the pinned 0.21.0. I rely on CI cargo test, which passes at this head.
  • CI at f2c268ae7: everything passes except local-provider-image, which fails with invalid-envelope must not listen. The base head 0a18d37aa (#1641) fails the same assertion and this PR does not touch that image, so the failure is pre-existing and unrelated.

Comment on lines +271 to +273
and a conflict drops the EIDs without a retry. This does not break "a page load
writes the record once": `/auction` is not a page load, holds no page-load
permit, and the navigation's own write is unchanged. The `/auction` request's

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.

Non-blocking: "the navigation's own write is unchanged" holds for its code path, but /auction is now a writer that can make that write fail.

A navigation plans its page-load update against the generation it read at request start and writes it at finalize, after the origin fetch and the lookup budget. Per D4, a Conflict there is not retried. Suppose an /auction from the previous page (or another tab) fills a missing partner UID inside that window. Its commit_auction_ingest moves the generation, so the navigation's conditional write is dropped, along with that navigation's provider lookup results and cookie ingest. Mirror changes then wait for a later navigation.

The window is bounded because /auction writes only when its body fills a vacant source, so I don't think the code needs to change. Please add a sentence here, e.g. "an /auction save that lands between a navigation's read and its write makes that navigation's write conflict (D4)", so the spec does not claim the navigation is unaffected.

#1641's new head 962572a brings #1539's cf4e815, "Expect the failure router in the native container test". The merge is clean.
@aram356

aram356 commented Nov 26, 2026

Copy link
Copy Markdown
Collaborator

For the identity integration branch (#1608), I pushed 582327226, a merge of #1641's new head 962572ae1, which brings #1539's cf4e815d4, the native container test's failure-router expectation. The merge had no conflicts. It clears local-provider-image, which failed here with "invalid-envelope must not listen".

Takes #1641's new head 04cb794, 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 3b6b8b588.

Takes #1641's new head 04cb794, 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 #1642 against the live head of #1641. I ran focused probes against this revision and left inline notes on the auction write and what the Fastly tests cover.

return;
}
let Some(RowChange::Update { entry, expected }) =
commit.plan(ec_context, commit.ec_id, ec_context.kv_snapshot(), None)

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.

Keep the SharedID migration out of auction ingest. I tested a row with a legacy sharedid.org UID, an auction carrying _pubcid_optout, and a new body EID for an unrelated partner. The CAS saved the unrelated EID and moved the opted-out UID to pubcid.org. It did the same when pubcid.org was provider-owned. drop_opted_out_sharedid_updates filters the incoming EIDs, but plan_write still runs refile_legacy_sharedid on the stored row. Can we leave that migration to navigations and add a regression test that reads back both entries after the auction?

}

#[test]
fn page_lookup_within_the_deadline_reaches_the_record_and_the_mirror_cookie() {

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.

Exercise a successful document response in the ID-4 tests. I ran both deadline tests and the ID5 test under Viceroy 0.22.0. All three passed with /article returning 502: the fixtures script the provider but not the publisher origin. That checks the row and mirror on an error response, and misses a regression that starts provider work after the origin finishes. Could we script a delayed 200 HTML response, assert success, and check the recorded sends for overlap? The late case should distinguish the original cutoff from a fresh budget started after the origin returns.

),
(
"auction API",
browser_request(Method::POST, "/auction", "empty"),

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.

Use admitted requests for the WB-1 API cases. Under Viceroy this test passed with /auction returning 400 for the empty body and /_ts/page-bids returning 403 at the admission check. It would miss a cookie set only on success. Please send valid consented requests with a live row and assert success before checking headers. Include the configured SharedID cookie and its _cst companion in the matcher, while still allowing expiry headers.

Comment on lines 228 to +229
TS-->>B: Auction response + x-ts-eids header when available
TS->>KV: Add missing partner UIDs from request eids[]<br/>+ ts-eids/SharedID cookies (TCF Purpose 1 + 4 under GDPR)
TS->>KV: Add missing partner UIDs from request eids[]<br/>to a live row (TCF Purpose 1 + 4 under GDPR)

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.

Non-blocking: show the CAS before delivery. Fastly awaits the auction write in response finalization, before sending the response. The design spec's §9.1 also still says no other request can write at all; that should refer to the permit-gated navigation write and point to the separate auction CAS in §5.4.

Suggested change
TS-->>B: Auction response + x-ts-eids header when available
TS->>KV: Add missing partner UIDs from request eids[]<br/>+ ts-eids/SharedID cookies (TCF Purpose 1 + 4 under GDPR)
TS->>KV: Add missing partner UIDs from request eids[]<br/>to a live row (TCF Purpose 1 + 4 under GDPR)
TS->>KV: Add missing partner UIDs from request eids[]<br/>to a live row (TCF Purpose 1 + 4 under GDPR)
TS-->>B: Auction response + x-ts-eids header when available

PR #1641's new head brings the cascaded owner review fixes from #1525, #1526, #1488, #1489, #1639, #1531, #1532, #1615, #1637, #1533, #1536, #1535, #1537 and #1538. The merge is clean.
PR #1641'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 3b6b8b588 to d018f789d:

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

PR #1641'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 #1641'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.
PR #1641'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, #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 and #1535's Sourcepoint consent mirror deduplication and consent update coverage. 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 #1646's new head brings the identity chain above #1540 that #1667 did not carry yet: #1566's move of the identity stack onto the native EC stack, #1624's SharedID creation and write-back from the EC record, #1641's lazily opened EC record store in core, #1642's verified identity lookups and saved /auction body EIDs, and #1646's Axum identity through the shared application.

crates/trusted-server-adapter-axum/src/app.rs: #1667 added mtls_auction_provider_fails_startup before Axum's enabled_identity_provider_fails_startup, and #1646 renamed that test to unknown_identity_provider_fails_startup because Axum now runs identity providers. The resolution keeps #1667's mTLS startup test followed by #1646's renamed test.

crates/trusted-server-cli/src/checked_app_config.rs: #1667 extended the adapter doc to say that the Fastly-only split also holds for auction providers that set mtls, and #1646 rewrote it to say that Fastly and Axum run the shared coordinators. The resolution says that Fastly and Axum run identity providers and that only Fastly accepts mtls auction providers. The semantic fix below then replaces that function.

Semantic break in crates/trusted-server-cli/src/checked_app_config.rs and run.rs: #1646 moved the Axum target of ts config push and diff from ProviderlessAppConfig to CheckedAppConfig by making adapter_runs_identity_providers return true for axum, and #1667 placed its reject_auction_mtls check only in ProviderlessAppConfig. The merge compiles, but the CLI then accepts an mtls auction provider for Axum that the Axum adapter refuses at startup. The fix belongs in this link because it is where the two changes first meet. adapter_runs_identity_providers becomes adapter_support, which returns ProvidersAndMtls for fastly, ProvidersOnly for axum and Neither for every other adapter, and push and diff match on it. A new NoMtlsAppConfig adds only the reject_auction_mtls check to CheckedAppConfig, and ProviderlessAppConfig now wraps NoMtlsAppConfig and adds reject_enabled_providers, so the mTLS rejection exists once. validate stays adapter-agnostic on CheckedAppConfig. The tests cover the adapter mapping, an Axum target that rejects an mtls auction provider under auction_providers and accepts an enabled identity provider, a Fastly target that accepts the mtls provider, and Cloudflare and Spin targets that reject both. The CLI paragraph of the auction provider mTLS spec now names NoMtlsAppConfig for Axum.

Cargo.lock matches #1646's new head: next to #1667's, it adds only #1646's trusted-server-identity-providers dependency of the Axum adapter; 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 91455d29a to 70c720a52:

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

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): 720c936a1 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 6317259b5, on top of 720c936a1.

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.

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 #1641's new head brings #1487's change that strips `ts-eids` from publisher-origin requests unless the operator opts in. The merge is clean.
@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 6317259b5 to 6ffb637b7:

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

@aram356

aram356 commented Dec 4, 2026

Copy link
Copy Markdown
Collaborator

Merged #1614's /_ts/ local answers (48930c270) into this branch as 31231d439, on top of 6ffb637b7.

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 #1641's new head (79e231c84), 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

Development

Successfully merging this pull request may close these issues.

Providers in the shared app, awaited before finalization

4 participants