Skip to content

Add shared identity conformance fixtures and Fastly coverage - #1613

Open
prk-Jr wants to merge 21 commits into
baseline/protected-geo-20261110from
feat/1586-identity-conformance
Open

prk-Jr wants to merge 21 commits into
baseline/protected-geo-20261110from
feat/1586-identity-conformance

Conversation

@prk-Jr

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

Copy link
Copy Markdown
Collaborator

Summary

  • Adds a shared identity conformance suite: one set of scenarios that checks an adapter never issues an Edge Cookie (ts-ec) without its stored record, and never drops an existing identity when geo is unavailable.
  • Runs all nine scenarios on Fastly through the real router, the production finalization callback and the full HTML body. Storage, origin and platform metadata are test fixtures, and native controls prove the assertions reject broken results.
  • Adds a CI launcher that fails if the selected adapter's test is missing or runs zero tests, and that refuses adapters that have no runner yet.

Revision status, checked 2026-12-03 12:12 UTC: the maintainer advanced this PR to 71aec397bd, with base baseline/protected-geo-20261110 at 3507c128fb476e430fbcf7694ca0b76b39217911 and EdgeZero ef5cbf308. Earlier signed review correction 476ee189c6 remains in its history. Local/runtime and hosted results below are historical for their named revisions; they do not qualify this later SDK merge. Exact-head CI reports 22 contexts (22 QUEUED); full current-head qualification is assessed separately.

This PR adds tests and test infrastructure only. It changes no production identity behavior and adds identity to no other adapter.

Stacked on #1532 (baseline/protected-geo-20261110), with #1506 carried through the baseline chain (historical cutover baseline cc811fc7aa0d234e447a868af5b8ab4ea359326a). A textual merge trial against the base is clean. Retarget to the appropriate successor after the base merges.

#1615, #1616, #1617, #1627, #1635, #1636, #1637 and #1646 now build on this branch. Earlier trial merges at the then-current heads with siblings #1620, #1622 and #1626 were clean; those observations do not qualify the later SDK merge.

Changes

File Change
.github/workflows/test.yml Run the Fastly conformance suite, the launcher tests and the native rejection controls.
crates/trusted-server-adapter-fastly/src/identity_conformance.rs Run the shared scenarios through the actual Fastly application path with deterministic platform fixtures.
crates/trusted-server-adapter-fastly/src/app.rs Test-only fixture store override for identity routes and finalization.
crates/trusted-server-adapter-fastly/src/main.rs Share the finalization callback between production and the runner; add a test-only identity store seam.
crates/trusted-server-adapter-fastly/src/platform.rs Add a test-only failed geo lookup fixture.
crates/trusted-server-core/src/ec/kv_backend.rs Expose the existing in-memory store behind the test/test-utils gates.
crates/trusted-server-core/src/test_support.rs Expose the conformance test-support module.
crates/trusted-server-core/src/test_support/identity_conformance.rs Shared scenarios, recording/failing store, cookie replay and expiry checks, and rejection controls.
crates/trusted-server-integration-tests/README.md How to run the suite, what it covers, and what it does not (including post-delivery work).
docs/superpowers/specs/2026-11-16-identity-conformance-design.md Approved design, feasibility limits, delivery boundaries and review log.
docs/superpowers/plans/2026-11-16-identity-conformance.md Implementation steps, progress and dependent follow-up work.
scripts/test-identity-conformance.mjs Require the selected adapter's exact conformance test to exist and pass.
scripts/test-identity-conformance.test.mjs Reject unavailable or unknown adapters and missing or zero-test runs.

Closes

Does not close an issue. This is the first slice of #1586, which cannot close until other planned work lands.

#1586 asks for three things. Where each one stands:

#1586 acceptance criterion Status Waiting on
The suite passes on each supported adapter (MVP: Fastly and Axum) Fastly: done in this PR. Axum: not yet #1574 (PR #1646) adds Axum identity storage. Axum already builds and mounts the shared IdentityApp, but has no EC record store at this head (identify, batch sync and admin EC lookup answer 501), so there is nothing to run the suite against yet. #1574's own criteria require running this suite.
Startup fails on an unsupported adapter when identity is configured Not started An "identity enabled" setting. None exists at this head, and #1623 (#1600's shared app, already below this PR) did not add one; it remains planned with #1587. Using today's ec.ec_store instead would break startup for existing Axum, Cloudflare and Spin configs.
SH-5: no adapter calls EC code directly; one shared app runs everywhere Partly in place #1600's shared app is already below this PR (#1623), and Axum mounts IdentityApp. The remaining gap is Fastly: crates/trusted-server-adapter-fastly/src/main.rs still imports and calls ec_finalize_response directly.

#1506 and #1600 (#1623) are already below this PR. Order of the remaining work: #1574 (PR #1646), then the startup check and the SH-5 check. Cloudflare follows in #1588.

Spec

Spec: Identity conformance design

Plan: Identity conformance implementation plan

Both documents include two review rounds. The missing-browser-metadata scenario reflects today's browser gate and must change when #1592 permits absent JA4.

What the suite does not cover

  • Post-delivery work. The suite stops when the finalized response is delivered. Telemetry and EC pull sync are not run, so its release-ordering checks cover writes made during finalization only.
  • Real browser fingerprints. Local Viceroy provides no JA4, so the unmodified build cannot create a fresh identity over local HTTP. Fresh creation on the real ingress needs a deployed service.
  • Other adapters. Axum, Cloudflare and Spin are rejected explicitly by the launcher until their runners exist.

Test plan

Historical results (execution head unrecorded): reported local checks use Rust 1.98.1, Node 24.20.0 and Viceroy 0.21.0. Exact execution SHA and private local receipts are unavailable; current hosted checks are separate.

  • cargo test-fastly && cargo test-fastly-reuse && cargo test-axum && cargo test-cloudflare && cargo test-spin
  • Target-matched adapter clippy aliases, including Cloudflare/Spin WASM, plus cargo clippy-cli && cargo clippy-codegen
  • cargo fmt --all -- --check
  • JS tests: 80 files / 3,299 tests passed, no type errors
  • JS format, full docs format, Markdown outside docs, and changed JS/YAML format
  • Fastly suite (nine scenarios), five launcher tests, and eight native rejection controls
  • Integration parity: 33 tests passed
  • Native template build-digest test and lint
  • WASM clock lint, CI Node pin tests/guard, and URL-host lint against the stacked base
  • Documentation proposal and release producer tests/shellcheck
  • Fastly absolute-deadline network fixtures: six tests passed
  • Cloudflare and Spin deadline fixture builds, lint and runtime probes (Wrangler 4.83.0, wasm-bindgen 0.2.126, Spin 4.1.0)
  • Headless Chrome lifecycle check (below)
  • Historical hosted CI: 25 checks passed on head 2415b7d80; this is not current-head qualification.

Negative controls. Disconnecting finalization made the suite fail the missing-cookie check. Treating missing geo as consent withdrawal made it fail at "should retain the reader's cookie". Both pass again when restored. Native controls also reject late writes, late failures, expired cookies and tombstones counted as live records.

Headless Chrome. Real Chrome through the local hostname proxy to the publisher page, with us_privacy=1YNN (Viceroy's default location is a US state that needs a consent signal):

Step Build Result
Fresh visit Unmodified release No ts-ec; consent allowed, refused at the bot gate (ja4=None)
Fresh visit Test build with a fixed JA4 One ts-ec and a live record for the same ID
Reload Test build Same cookie, record still live
GPC (Sec-GPC: 1) Test build Cookie deleted, record tombstoned
Next visit with GPC Test build Nothing created
Existing identity, no geo Test build Cookie and record kept across two visits

The test build differs from the reviewed code only by a one-line fixed JA4 fallback, so this proves the lifecycle mechanics, not the real production ingress. Server-side DataDome protection was disabled in the disposable local config, protected image assets were blocked, and only the HTML document was checked.

The supplemental native core --all-targets --features test-utils clippy run reports the pre-existing result_large_err lint in run_pre_dispatch_hook, reproduced on the unchanged cutover base. This PR does not touch it.

Checklist

@prk-Jr prk-Jr self-assigned this Nov 16, 2026
@prk-Jr prk-Jr linked an issue Nov 16, 2026 that may be closed by this pull request
3 tasks
…al before writes

The Fastly runner now uses the production native request read and prepare,
replacing only the client IP, geo result and JA4-backed device signals that
Viceroy cannot supply. Refused scenarios must stop before any write attempt,
with a native control proving the check rejects one. Docs describe the
failed-geo fixture and record current progress.
@prk-Jr
prk-Jr marked this pull request as ready for review November 17, 2026 05:28
Fastly entry point: serve keeps the base's request-local identity lookup
slot, dropped before and after the request, and sends through this pull
request's with_finalization helper, so the conformance runner and
production share one finalization callback. FinalizeInputs now carries
the app state, and the conformance runner passes the retained app's
state. The runner also drops leftover navigation lookups around each
request, as serve does.

EC store test support: the module opens to the test-utils feature as
this pull request intended. Every test-only double, including the base's
new write-failing store, stays behind cfg(test); only the in-memory store
is shared.

Conformance fixture: the recording store implements the async EcKvStore
trait and awaits the in-memory store. Scenario::verify and the native
rejection-control tests drive store reads and writes with block_on at
their synchronous test boundary, because the adapter runner already
blocks inside the Fastly lifecycle. The conditional-write test checks
the recording store's create-only insert directly, since the base
removed KvIdentityGraph::create_if_absent.

Fastly runner: a document navigation now sends Sec-Fetch-Mode: navigate
next to Sec-Fetch-Dest: document, and a subresource sends no-cors. The
base's page-load write permit requires both headers, as a browser sends
them.

The integration-tests README says post-delivery work now covers the
after-response identity lookups, pull sync among them.
@aram356
aram356 changed the base branch from spec/edgezero-pr275-migration to feat/s2s-eid-collection-providers November 19, 2026 05:37
@aram356

aram356 commented Nov 19, 2026

Copy link
Copy Markdown
Collaborator

For the identity integration chain (#1608), this PR now stacks on #1489, the top of the provider stack, which carries #1506's EdgeZero cutover and #1526's async store. 7611bc936 merges #1489's head a7262c7db, and the base is now feat/s2s-eid-collection-providers.

Area Resolution
Fastly main.rs serve keeps the base's navigation-lookup cleanup around each request, sends through this PR's with_finalization, and keeps the base's post-delivery callback
ec/kv_backend.rs The module is cfg(any(test, feature = "test-utils")) as this PR intends; every test double except InMemoryEcKv, including the base's WriteFailingEcKv, is #[cfg(test)]
Conformance suite RecordingStore implements the async EcKvStore; Scenario::verify, assert_created and the native rejection controls block at their synchronous test boundary, because the Fastly runner already blocks inside the Fastly lifecycle. The Fastly runner passes the app state to FinalizeInputs and drops leftover navigation lookups as serve does

Tests changed beyond the async conversion: identity_conformance_preserves_conditional_write_preconditions drives RecordingStore::insert with EcKvWriteMode::Add twice (Written, then PreconditionFailed), because the provider stack removed create_if_absent. The Fastly runner's document navigation now also sends Sec-Fetch-Mode: navigate, and the subresource scenario sends no-cors, because the provider stack's NavigationPermit requires both destination and mode.

Checked locally at 7611bc936: cargo fmt, all eight clippy aliases and the core build-digest clippy, scripts/lint-wasm-clock.sh, test-fastly, test-fastly-reuse, test-axum (64), test-cloudflare (66), test-spin (89), parity (33), build-digest (10), host CLI tests (972), docs and Markdown format, and the URL-host lint against #1489, all passing (test-fastly 4,066), plus scripts/test-identity-conformance.test.mjs (5), scripts/test-identity-conformance.mjs fastly (all 9 scenarios) and the core identity_conformance tests (9).

Takes #1489's new head e4ae9ca, which brings #1506's repin of
EdgeZero to rc/identity at 9d02d7b3. The merge is clean, and this PR's tree
changes only by that repin.
@aram356 aram356 mentioned this pull request Nov 19, 2026
20 of 21 tasks
Fastly entry point: maybe_identity_graph is gone, as in #1623, so the
conflicting hunk takes #1623's side. The conformance hook that #1613 put at
the top of maybe_identity_graph is dropped with it, and
require_identity_graph keeps #1623's identity-app signature.

Fastly identity app: the test-only conformance hook now sits where the
adapter picks the identity app's EC record store. While a conformance runner
assembles the application, a store named identity-conformance resolves to the
runner's recording fixture instead of a Fastly KV store, so the identity app
holds the fixture for every request. Production builds are unchanged.

Fastly conformance runner: the thread-local holds the recording store rather
than a graph, and the runner installs it around assemble_app instead of
around each navigation. The identity app captures it at assembly and every
request path (EC request state, finalization, identify, batch sync and
post-delivery) reads it through the identity app. The scenarios and their
assertions are unchanged.

Workflow: #1613's conformance steps and #1623's adapter identity guard step
merge without overlap.
Workflow: the Axum job keeps both #1613's native identity conformance
rejection controls step and #1532's protected CloudFront Geo tests step, in
that order, ahead of the finalization harness cleanup step.

Fastly conformance runner: the GDPR fixture geo takes #1532's GeoInfo shape,
converted as #1532 converted the same literal elsewhere. The empty city
becomes None, the continent stays EU, the zero coordinates become a complete
zero pair and the zero metro code stays zero. The scenario still resolves to
Germany, so the GDPR consent gate and every assertion are unchanged.

Fastly identity app: the test-only conformance hook in the identity app's
record-store selection is untouched by #1531 and #1532, so the fixture store
still reaches every request path through the identity app.
@aram356
aram356 changed the base branch from feat/s2s-eid-collection-providers to baseline/protected-geo-20261110 November 19, 2026 06:27
@aram356

aram356 commented Nov 19, 2026

Copy link
Copy Markdown
Collaborator

For the identity integration chain (#1608), this PR now stacks on #1532 (A4), and its base is baseline/protected-geo-20261110. The chain is one line: #1489 ← #1612 ← #1623 ← #1531 ← #1532 ← #1613 ← #1616 ← #1617 ← #1615. It conflicted with #1623 in Fastly main.rs and with #1532 in test.yml, so it takes both.

No test is dropped and no assertion changed. All 9 Fastly scenarios and the 9 native rejection controls run. With the hook temporarily disabled, identity_conformance_fastly fails, which shows the fixture reaches the request path. One doc line was already inaccurate before this port, and I left it: the design doc (line 96) says pull sync opens its own store through require_identity_graph.

Checked locally at c88a7e9a5: cargo fmt, all eight clippy aliases and the core build-digest clippy, scripts/lint-wasm-clock.sh, test-fastly (4,101), test-fastly-reuse (245), test-cloudflare (69), test-spin (89), parity (33), build-digest (10), docs and Markdown format, and the URL-host lint against #1532, all passing. Also passing: node --test scripts/test-identity-conformance.test.mjs (5 of 5), node scripts/test-identity-conformance.mjs fastly, the core identity_conformance controls (9 of 9) and #1623's adapter_identity_guard (9 of 9).

Two failures are macOS-only:

  • test-axum gives 95 passed and 1 failed. The failure is Extract native prepared startup on the demo baseline #1531's managed_ingress_ignores_direct_spoof_and_isolates_two_gateway_clients, which binds 127.0.0.2, an address macOS does not route.
  • The first host CLI run had two real-Chrome tests time out waiting for the browser to exit. Both passed alone, and the whole script then passed (972).

Takes #1532's new head fdfad29, which carries #1531's fix that ignores the
two-source ingress acceptance test outside Linux. The merge is clean, and this
PR's tree changes only by that attribute.
Takes #1532's new head a557a4e, which carries #1531's change that runs the
ingress acceptance test from 127.0.0.1 only. The merge is clean, and this PR's
tree changes only by that test change.
aram356 added a commit that referenced this pull request Nov 25, 2026
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 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 8cca89421, a merge of #1532's new head 96e21b06a. It brings the identity chain below, including #1488's hashed-email intake and #1489's mirrored UID expiry cap, and #1506's repin of EdgeZero to rc/identity at d063a8e7 with main's Fastly SDK upgrade (#1671). The merge had no conflicts.

Takes #1532's new head a509c93, 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 edd3c5637, a merge of #1532's new head a509c9348, 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.

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

Summary

This PR adds a shared identity conformance fixture in core test support: RecordingStore, the Scenario contract, and rejection-control tests. It also adds a Fastly runner that drives the production prepare step, the router and the shared with_finalization callback. It also adds a Node launcher that refuses to report success when no tests ran, plus CI wiring. I found no blocking issues. The two non-blocking notes below cover extra CI time and a documented limit on what the suite checks.

Cross-cutting / body-level findings

  • 🤔 The launcher step runs identity_conformance_fastly a second time — cargo test-fastly in the step before already runs identity_conformance_fastly. The launcher step runs it again, and the only thing it adds is the guard against a vacuous pass. This is acceptable, but it costs extra CI time.
  • 📝 The suite stops at response delivery — The documentation says the suite stops at response delivery, so post-delivery writes such as pull sync are not checked. The limit is stated openly. Nothing in the diff tries to steer the reviewer.
  • 📝 Points checked during review — These points hold up:
    • The production path still uses the same finalize closure through with_finalization.
    • The test-only seams compile out of production builds: the fixture_store override and RequestGeo::fail_lookup.
    • The kv_backend test_support module is now built under test-utils, and each fake that is not reused is still gated to cfg(test).
    • The launcher's --list and pass-count checks hold up when the test-fastly alias runs several packages.
    • The new CI steps run after Node is set up. The native core command uses the host target, which is correct because there is no global build target.

CI Status

  • integration tests: PASS
  • integration tests (Fastly EC lifecycle): PASS
  • Fastly response diff script: PASS
  • cargo test (cross-adapter parity): PASS
  • HTML EOF runtime (Fastly): PASS
  • CLAUDE.md symlink guard: PASS
  • ts dev lint domains (changed lines): PASS
  • format-typescript: PASS
  • cargo test (ts CLI, native) (ubuntu-latest): PASS
  • cargo check (cloudflare native + wasm32-unknown-unknown): PASS
  • cargo test: PASS
  • browser integration tests: PASS
  • trace runtime and browser acceptance: PASS
  • CI Node pin guard: PASS
  • cargo check/build/test (spin native + wasm32-wasip1): PASS
  • docs-proposal scripts: PASS
  • cargo fmt: PASS
  • format-docs: PASS
  • release scripts: PASS
  • vitest: PASS
  • cargo test (axum native): PASS
  • prepare integration artifacts: PASS
  • worker-deadlines (cloudflare): PASS
  • worker-deadlines (spin): PASS
  • cargo test (ts CLI, native) (macos-latest): PASS

Takes #1532's new head aae1099, 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 90e9d4f53.

Takes #1532's new head aae1099, 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 this PR against baseline/protected-geo-20261110 at aae1099f7f. No merge blockers for the Fastly suite and shared fixtures. The Fastly conformance wrapper and native rejection controls passed in CI on this head. The inline notes distinguish what the suite verifies today from coverage it does not yet provide. Dogfooding on deployed ingress and the remaining #1586 work are outside this approval.

// thread left in the request-local slot.
drop(take_navigation_lookups());
let delivery = with_finalization(&inputs, |finalize| {
FastlyService::new(&self.retained.app).run_request_with_hooks_for_test(

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.

R1. Optional follow-up: exercise the registry-aware dispatch path. This invokes the real finalizer through the no-store test entry point, but serve attaches it through send_request_with_registries_and_hooks. The separate PR integration test checks cookie expiry on consent withdrawal, so removing the production callback entirely should already fail CI. If the registry path needs fixture coverage, EdgeZero exposes run_request_with_registries_and_hooks_for_test; using it would bring dispatch setup closer to production without claiming to exercise serve itself.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This remains an optional follow-up. The correction in 476ee18 keeps the existing runner and describes its scope precisely: it uses the shared production finalizer, but does not claim to run serve or its registry construction. The separate withdrawal integration coverage remains. All required local gates pass; no runtime code changed. I am leaving this thread open rather than claiming the registry-aware path is now exercised.

PR #1532's new head brings its Axum Geo withholding on 401 responses and native KV selection tests, plus the cascaded owner review fixes from #1525, #1526, #1488, #1489, #1639 and #1531. The merge is clean.
PR #1532'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 90e9d4f53 to da7865ed0:

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

aram356 and others added 3 commits December 1, 2026 20:10
PR #1532'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 #1532'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 and #1639's pull reserve boundary check and wording. 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 #1540's new head brings the identity chain's commits since #1667 last merged it at afc4f5d, including the EdgeZero repins up to rc/identity ef5cbf30, which renames Fastly backends to ez_b31v2_* and moves the yanked pin-project-lite, chacha20 and spin, main's #1501, #1525's plain HTTP opt-in for auction providers, and this round's owner commits on #1535, #1613, #1616, #1617, #1625, #1627, #1635, #1637 and #1639.

Cargo.toml and crates/trusted-server-adapter-axum/Cargo.toml: #1667 pinned EdgeZero at d063a8e7, and the chain now pins rc/identity ef5cbf30, which keeps the client certificate API #1667 uses. The files merge cleanly to the chain's pin, so #1667 no longer carries its own.

crates/trusted-server-core/src/auction/mod.rs: #1501 from main, which the chain carries, moved the APS provider test literal into the shared aps_provider_map helper, and #1667 added `mtls: false` to that literal. The resolution calls the helper and adds `mtls: false` to it.

docs/guide/auction-orchestration.md: #1525 reworded the endpoint and allow_insecure_http rows of the provider field table, and #1667 added the mtls row below them. The resolution keeps #1525's rows followed by #1667's mtls row.

docs/guide/configuration.md: #1525 added the allow_insecure_http row to the provider field table and the plain HTTP warning after the loopback exception, and #1667 added the mtls row and the note that an mtls provider needs an https endpoint. The resolution keeps #1525's table with #1667's mtls row last, and #1525's warning followed by #1667's note.

docs/guide/error-reference.md: #1616's owner commit replaced "TLS is always verified" with the adapter and platform TLS policy wording, and #1667 added the outbound client identity bullet after it. The resolution keeps #1616's wording followed by #1667's bullet.

crates/trusted-server-core/src/auction/plan.rs (semantic fix): #1525's 23e4bdd removed the local is_false helper from plan.rs and serializes allow_insecure_http through crate::settings::is_false, and #1667's mtls field still named the local helper. The mtls field now uses crate::settings::is_false too.

crates/trusted-server-adapter-axum/tests/native_ec.rs (semantic fix): #1536's 9d41f0f added an APS ProviderConfig literal to the Axum native EC tests, and #1667 added the required mtls field to ProviderConfig. The literal now sets `mtls: false`.

Cargo.lock matches #1540's new head: next to #1667's, it changes only the EdgeZero package sources (d063a8e7 to 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 476ee189c to 71aec397b:

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

PR #1532'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 71aec397b to 792892f87:

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 7d84105bb, on top of 792892f87.

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 #1532's new head (f34c85bb5), 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.

Identity conformance suite that runs against each adapter, Fastly and Axum first

4 participants