Repository navigation
Conversation
aram356
marked this pull request as draft
November 13, 2026 09:15
This was referenced Nov 13, 2026
2 tasks
The generated initializer wrote PROOF_ENTERED with std::fs::write, which creates the file before writing the resolved secret. App::ready reads the marker as soon as the path exists, so it could read it empty and fail "nested secret must resolve before readiness marker" (left "", right "secret-A"), as CI saw on PR #514. The secret had already resolved; only the marker was observed half written. The initializer now writes a staged file beside the marker and renames it into place, so the marker appears with its content.
The generated records initializer wrote PROOF_ENTERED with std::fs::write, so App::ready could read the marker after it was created and before "records-ready" was written. It now writes a staged file and renames it into place, as the ordinary proof's initializer does.
The portable module's public documentation linked [`crate::wire`], a private module, so the strict documentation step (RUSTDOCFLAGS=-D warnings cargo doc --offline --locked --workspace --all-features --no-deps) failed with rustdoc::private-intra-doc-links. The doc now names the private wire module in plain text.
The fastly feature now enables edgezero-adapter/store-bindings, which brings edgezero-store-aws and edgezero-store-celld into the Fastly graph with no features selected: only serde, thiserror, url, percent-encoding and web-time. check_geo_dependency_contract.sh still banned those crate names in every portable graph, so "Geo dependency isolation" failed in the app-demo, cli and axum jobs with "native runtime/store/SDK leaked into fastly". The platform graphs now ban only native hosting, runtime and SDK crates. check_native_store_dependency_contract.sh, which this PR extended, proves the store crates' platform builds carry no native runtime. Portable core still may not depend on a store crate, and portable_dependency_checks.test.mjs gains that regression case.
Adding BindingsCmd to the generated CLI's edgezero_cli::args import left the template's list wrapped differently from rustfmt, so a freshly generated workspace failed cargo fmt --check. "Verify generated project builds and fallback TCP policy" in the cli tests job fails on that once the Geo step before it passes. The list now uses rustfmt's layout.
Bring in PR #275's batch cutoff test fix, which advances the test clock when the request arms its own deadline instead of after dispatch, and the AWS emulator proofs' readiness markers from PRs #414 and #510, now published by rename. It also brings in PR #522's fixes for the strict documentation build, the Geo dependency contract's platform graphs and the generated CLI's rustfmt layout.
Bring in PR #510's current head. It carries main's Fastly SDK 0.13.3, Fastly CLI 17.2.0 and fixture download retry, the stack's Fastly SDK 0.13.3 and url 2.5.9 pins, Viceroy 0.22.0 with the readiness repair and its atomic conditional KV insert, the early-response upload drain, the production hosting port reservation and respawn fixes, the AWS emulator proofs' readiness markers and the batch cutoff test fix. It merges without conflicts.
…ection Moving the entry below the first existing Unreleased section avoids a merge conflict with the after-response entries at the top of the integration branch. The entry's content is unchanged.
14 of 17 tasks
PR #524 (outbound mTLS client identities, #523) belongs to no identity epic, and PR #522 (portable DynamoDB and celld record providers on Fastly, #474) is still a draft. #524 is stacked on #522, so both leave together. This commit reverts their net changes. Its tree is rc/identity as it was before #522 (654f546) merged with the current tips of #519, #515, #502, #469 and #536, the branch's remaining lines. #514 and #517 are already inside them. The rebuild merges without conflicts, and the change touches only the 113 paths that #522 and #524 changed against #517. Three files differed from a plain reverse of the two PRs because of the conflict resolutions in 7616c85 and b3a45df. Each keeps the other lines' code and drops only #522's or #524's: - crates/edgezero-adapter-axum/src/cli.rs keeps the capability matrix test's lint expectation and drops #524's client identity test. - crates/edgezero-adapter-fastly/src/request.rs keeps the after-response handle and wrapper and drops #522's deferred portable KV registry. - crates/edgezero-store-aws/src/dynamodb_records_tests.rs drops imports used only by #522's tests. Merging a later tip of #522 or #524 will not restore this code, because git treats their earlier commits as already merged. Bringing them back needs a revert of this commit first.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
rc/identityis the integration branch for server-side identity on every adapter (Platform capabilities for server-side identity on every adapter #468). It carries the ready PRs that Trusted Server's Fastly and Axum MVP needs, joined by history-preserving merges, so Trusted Server can pin one revision and CI can test the combined stack.v0.0.12-rc-identity.202611.1marksb3a45dfb.Included
Started on main
e11ea308; main772c1dacis merged in654f546d, and main144d1782(v0.0.12) arrives through #275's and #469's merges of it. Heads are current at1619078a; earlier heads stay in the history.0e2a58ae27901990cdd7c568b67e78b99750b0e3c317517c2b13a66557fd4eabb81870788bff6ebb690a8d88ctx.geo(), and Axum geo bound from the manifest (#482)a296a067KvStorerecord contract with listing strong within a partition, and DynamoDB and celld providers on Axum (#472, #473)7580806ac12fd631ctx.geo()on Cloudflare and Spin (#480, #486)d6df01e354e7a4b8e4c6647awaitUntil(#478)ea0ee581cdea9260601ae8dbRecordHandle::update(#535)Moved since
1619078aNone.
#463 closed on 2026-11-13; #422 carries its conditional celld record operations, which this branch already has.
#522 and #524 removed (2026-11-27)
1619078aremoves #522 (#474, still a draft) and #524 (#523, outside the identity epics). #524 is stacked on #522, so both leave together. It is one revert commit on top of459bd27d, pushed as a fast-forward.Its tree is this branch before #522 (
654f546d) merged with the current tips of #519, #515, #502, #469 and #536; #514 and #517 are already inside them. That rebuild merges without conflicts, and the commit changes only the 113 paths that #522 and #524 changed against #517. The frozen outbound review files (the #275 requirements spec,outbound-cutover-cases.jsonandreviewed_cases.json.gz) are untouched.A plain reverse of the two PRs conflicts in three files, because
7616c85candb3a45dfbresolved conflicts there. The rebuild keeps the other lines' code and drops only #522's and #524's. The Axum capability matrix test keeps its lint expectation and loses #524's client identity test. The Fastly request path keeps the after-response handle and wrapper and loses #522's deferred portable KV registry. The DynamoDB records tests lose the imports that only #522's tests used.Merging a later tip of #522 or #524 into this branch will not restore their code, because git treats their earlier commits as already merged. Bringing either back needs a revert of
1619078afirst. The sections below describe the branch before this removal.The Fastly SDK 0.13.3 upgrade (2026-11-25)
This branch was pushed five times on 2026-11-25, to
d063a8e7,ba29060f,4e512233,8a7d3e61and459bd27d. Every PR here now carries main's Fastly SDK 0.13.3 upgrade (#529), with Viceroy 0.22.0, the Fastly CLI 17.2.0 upgrade (#531) and the fixture CLI download retry (#534). #275 takes it first, with its own exact pins; #469 merges main itself (8bff6ebb, without conflicts). Each stack PR then merged the PR below it, bottom-up, in a merge commit titledMerge PR #<lower> into PR #<N> for outbound compatibility stack. Apart from #275's merge of main, only #409, #414 and #522 conflicted, each in a lockfile:9ef25ceb.tool-versions,generator.rs, the Fastly adapter guide, the request-fidelity manifest and four lockfiles.tool-versionskeeps this PR's spin 4.1.0 and wasmtime 48.0.2 pins and takes main's fastly 17.2.0 and viceroy 0.22.0;generator.rskeeps this PR's spin tool seed and takes main's fastly and viceroy seeds; the guide keeps this PR's paragraph with main's Viceroy 0.22.0 fixture pin. The lockfiles, merged by package entry, equal this PR's side2aea73c3examples/app-demo/Cargo.lockcargo update -p fastly --precise 0.13.3of this PR's lockba5d3f1cCargo.lockcargo update -p fastly --precise 0.13.3of this PR's locka4473180examples/app-demo/Cargo.lockFix commits on the PRs, each carried up by the merges above it:
32ce59b1fastly,fastly-shared,fastly-sysandlog-fastlypins from=0.13.1to=0.13.3andurlfrom=2.5.8to=2.5.9, in the root manifest and the fixture, app-demo and scaffold pins, with targeted lockfile updates to the v0.0.12 versions. A plain merge of main would leave the exact pins at 0.13.1 and 2.5.8c56df36fpatches/viceroy/0.22.0-body-readiness.patchunchanged and applies to v0.22.0, soVICEROY_PATCH_SHA256stays;VICEROY_REVISIONandVICEROY_LOCK_SHA256name v0.22.0. With the patch, the three named readiness and timeout regressions and all 138 viceroy-lib library tests pass1967c0512830d078,e9c05d64fastly::compute_runtime::products()before an optimizer send, and on a service without Image Optimizer sends an ordinary request marked withFastly-Io-Error; under Viceroy 0.22.0 that abortedimage_optimizer_unavailable_is_typed_on_viceroy(exit 134). The guard returns the sameImageOptimizerUnsupportedfailure whenproducts()reports the product disabled; an enabled product or aproducts()error keeps the SDK's optimizer hostcall. A unit test covers all three casesdbe90854Content-Lengthof at most 8 MiB and the upload is still active,HeaderIodiscards incoming bytes for at most 2 s, and until 250 ms pass without one, before it closes, so a client that writes its whole body before reading gets the 413 instead of a reset. Larger, chunked, bodiless and stalled uploads close at once as before; Fastly, Cloudflare and Spin are unchanged. A regression test writes a 4 MiB declared body without readinge8e1d9cb17a0edf89a985c99, "test(axum): retain early rejection responses during full uploads"3231baf8,494845ab3231baf8restores blocking mode on streams thenative_aws_startupanddynamodb_generated_prooffixtures accept, with #519'saccept_blockinghelpers carried byte for byte.494845abkeeps the port reservation of a host that must fail to start bound until the host is dropped, following #519's reservation change inproduction_hosting.rsbbcb3d0furlto 2.5.9 andform_urlencodedto 1.2.3 in thegeo-kv-prototypelockfilef53d4508urlto 2.5.9 andform_urlencodedto 1.2.3 in thegeo-spin-loaderlockfile39d307feVICEROY_REVISIONandVICEROY_LOCK_SHA256to v0.22.0, as #275 does for the wasm tests jobd8cd85c8wasm32-unknown-unknowntarget before the Viceroy readiness repair builds. Viceroy 0.22.0 rebuilds its component adapter for that target when it builds from a git checkout, and the helper selects the.tool-versionstoolchain throughRUSTUP_TOOLCHAIN, so rustup never added the checkout's targets, andfastly wasm testsand Portable record contracts (Fastly) failed in "Build isolated Viceroy readiness repair". The repair now runsrustup target add wasm32-unknown-unknownfrom inside the checkout first; the CI tooling test fakes rustup and checks the call, and a failed install fails the repair closedThe first push took #524's, #515's, #519's, #502's and #469's tips as the plain merges
d673ed49,0dcdeee3,413bacda,dc93c669andd063a8e7; #514's tip is already indc93c669.For the second push, each stack PR merged the PR below it again to take
d8cd85c8, all without conflicts, and this branch took #524's, #515's, #519's and #502's tips as the plain merges72881525,cd9aecd2,8db868feandba29060f; #514's tip is already here, and #469, which does not carry #275, is unchanged.ba29060fdiffers fromd063a8e7only inscripts/ci_viceroy.sh,scripts/ci_tooling.test.mjsandpatches/viceroy/README.md.The third push fixes two causes of random test failures. #275's
41cdf035makes conditional KV inserts atomic in the Viceroy readiness repair: Viceroy'sObjectStore::insertchecked the Add or if-generation-match precondition and wrote under separate lock acquisitions, so two concurrent conditional inserts could both win, and the Fastly record contract's native race failed at random. The patch now checks the existing entry, the precondition and the write under one write lock, a new Viceroy test races two writers 1,000 times per mode, and the helper, the workflow, the CI tooling test and #522's job (902e2718) follow the new patch digest. The production hosting tests stop losing ports to other tests: #406 (cb306f7c), #407 (fa329cad), #409 (7d085b1f) and #439 (49fb2f48) carry #519's reservation fixes (09b09d9e,d86a5d32) to the code they own, #406's38cf420brespawns a host whose port another listener took, up to 3 attempts, using a per-spawn token on a new/fixture-readyroute, and addsServer::addr(), and #409 (9c4a2f70), #414 (25a28501) and #454 (00091a61) send post-spawn requests toserver.addr(). #519's merge (4960680c) resolves itsproduction_hosting.rsconflict by keeping itsreserved_address()and lock helpers with #406's spawn. Every other PR's commit is its merge of the PR below, without conflicts, and this branch took #519's, #524's, #515's and #502's tips as the plain mergesbeae8601,61215550,bfbba260and4e512233; #514's tip is already here, and #469 is unchanged.The fourth push carries six fix commits. #275's
0e2a58aefixes an intermittent failure ofbatch_cutoff_clamping_preserves_cause_and_observation_boundary: the test advanced its manual clock only afterstart_batch_untilreturned, but that call already dispatches the request, so a refused connect could be observed while the clock still read the start time; the clock now moves when the request arms its deadline timer. #414's2b13a665and #510'sa296a067write the AWS emulator proofs' readiness markers through a staged file and a rename, becausestd::fs::writecreated the file before writing it and the readiness poll could read an empty marker. #522 fixes three of its own steps:2c9ea5ccstops linking the privatewiremodule from public docs for the strict documentation build;510df19dnarrows the Geo dependency check's platform graphs to native hosting, runtime and SDK crates, because #522'sfastlyfeature enablesedgezero-adapter/store-bindingsby design, while core still may not depend on a store crate and a regression case covers that; and3bf8dc0bgives the generated CLI's import rustfmt's layout, which "Verify generated project builds" checks. Every other PR's commit is its merge of the PR below, without conflicts, and this branch took #519's, #524's, #515's and #502's tips as the plain mergescaac19b5,e8591af8,c0b6e267and8a7d3e61; #514's tip is already here, and #469 is unchanged.The fifth push adds #536 (#535),
RecordHandle::update, the bounded re-read and re-plan update for records, which IABTechLab/trusted-server#1660 needs. #536 merges #510's current head (179f0f59, without conflicts) and moves its CHANGELOG section below the Axum JSON section (601ae8db, content unchanged), so this branch takes it as the plain merge459bd27d. On #536's head the 13 update tests passed 50 of 50 runs, the core suite and the Axum and Fastly record contracts passed, and a probe of 4 concurrent updates over 400 rounds lost no update with the atomic conditional insert, against 62 of 400 rounds without it.Trusted Server pins
d063a8e7through IABTechLab/trusted-server#1506, and IABTechLab/trusted-server#1608 takes it with Trusted Server main's Fastly SDK upgrade (IABTechLab/trusted-server#1671).#522 and #524 (2026-11-24)
7616c85cmerges #522 at6fb73849, andb3a45dfbmerges #524 atda7575b5. Both merges resolve conflicts in this branch:7616c85cincrates/edgezero-adapter-fastly/src/request.rsandcrates/edgezero-store-aws/src/dynamodb_records_tests.rs, andb3a45dfbincrates/edgezero-adapter-axum/src/cli.rs.git show --remerge-diffon each shows the resolution.#519 and main (2026-11-23)
#519 (prk-Jr) fixes the macOS-only fixture failures in #503. Its head
d86a5d32also skipped fourproduction_hostingtrusted-proxy tests off Linux, because their local proxy bound 127.0.0.2 and 127.0.0.3.e8cf40ebon #519 runs them everywhere instead: the server checks only its direct peer as a socket fact, so every proxy socket is now 127.0.0.1, and the test proxies write the earlier hop addresses they are given. Each rewritten test was shown to fail under one production mutation of the trust walk. Every change is test code, so the library code Trusted Server pins at9d02d7b3is unchanged and needs no repin.ad28f988merges #519 and654f546dmerges main (#497, the docs eslint bump). Both merges are clean.#509's new tests (2026-11-19)
#509 added one commit,
a5c176e1, with test coverage for guarded writes inside after-response tasks on Axum and Fastly. It changes only four test files, so the library code Trusted Server pins at9d02d7b3is unchanged. #512 merged #509 (953f0031), and #515 merged #512 (da0471b7), both clean. This branch took #515's new head as the plain mergeb4d5ba87, whose tree is identical to #515's.How the record-contract, ClientInfo and after-response lines came in (2026-11-18)
ChristianPavilonis's line on #439 runs
#510 → #454 → #517; #517 also merged #469, #502 and #514 itself. Its tree contains everything this branch had, soef8225d9merged #517. The only conflicts were JA4 lines that #517 refactors on top of #469 (Ja4Selectionin place ofTrustedJa4Header); the merge takes #517's version, and its tree is identical to #517's.prk-Jr's after-response line sat on #406, so it conflicted with the stack above it. The fix is in the PRs: #509 merged #517 (
2620377a), #512 merged #509 (cdc232c8), and #515, which conflicted with #512 in the changelog and the capabilities guide, now stacks on #512 (ec347a2c). This branch took #515's head as the plain merge9d02d7b3, whose tree is identical to #515's. On GitHub the whole line is stack 511, from #499 up to #515; stack 516 was dissolved so #509 could change base.How #502 came in (2026-11-17)
#502 was stacked on #439's earlier head
645703bf, and #439's refreshed head conflicted with it in one place: theManifeststruct's schema validators inedgezero-core'smanifest.rs, where #502 adds the adapter geo placement check and #439 brings #275's Fastly logging check. #502's own merge8cd7af96(Merge PR #439 into PR #502 for outbound compatibility stack) keeps both, after the existing case-unique adapter keys check. This branch then took #502 as a plain merge,b6ada1cc, with no conflicts.How #275's next review repairs came in (2026-11-17)
#275 moved from
b65e7144toea2549fbby adding 16 fix and docs commits (Fastly response handles and progress wakers, retained outbound failures, body checkpoints, harness supervision, CLI target pinning). #422 had added a stock-celld store service (dd1b8907,15bdeef6), which #439 merged incf291a1e. Each stack PR then merged the PR below it, bottom-up, with no conflicts, and this branch took #439's headc02ee549as a plain merge,f84ffbbb.How #275's review repairs came in (2026-11-16)
#275 moved from
e9ffaa8ftob65e7144by adding four commits:4cbabfee: Fastly logging validation and setup failures (Fastly custom runners send no response when the managed logger fails to install #505, Reject Fastly logging endpoint names the logger cannot install when the manifest loads #506).fe32185f: terminal errors and response policies.c7e3ac97: assembly-failure attestation tests.b65e7144: compile-time logging config for hand-written hooks (Compile-timelogging_forfor applications with a hand-writtenHooksimpl #504).Each stack PR merged the PR below it again, bottom-up, in a merge commit titled
Merge PR #<lower> into PR #<N> for outbound compatibility stack. Only #409 conflicted. Its merge resolves the import block of edgezero-core'sapp.rsby keeping both imports: #409'sRouteErrorKindand #275'sRequiredErrorResponseHeaders. This branch then took #439's headc1cec8e7as a plain merge,3d92ee38, with no conflicts.How #275's rewrite came in
#275's head was rewritten at
e9ffaa8f. The stack's conflicts were not resolved here. Instead, each stack PR merged the PR below it, bottom-up, and resolved its own conflicts in its own merge commit, titledMerge PR #<lower> into PR #<N> for outbound compatibility stack. Rungit show --remerge-diffon a PR's merge to see exactly what its resolution changed. This branch then takes #439's head in a single merge.cf8003f1expect, and its byte-bound assertion under #275's record caps03d192fdb3187e1brun_localandrun_ownedstructure, which now owns #275'sAxumOutboundExecutor77fa6772forwarded_content_lengthandingress_buffer;with_transporttakes the executor and the JSON limite1350bb2from_app_with_native_client_factorytakes the executor; dispatch keeps #409'sinto_partsand inserts the executorbd6cb7abf1d85581302697e8with_native_transporttakes the executor; both theexecutorandgeofieldsEdit in this branch's own merge
87174160merged #439's head with two edits where #469 meets #275, andgit show --remerge-diff 87174160shows both. One is still this branch's own:request.rs: #469'singress_ja4_is_not_exposed_even_with_ja4_headerstest gets an executor handleinto_core_request, and the test does not compile without one. #469 targets main, where the function still takes one argument, so the edit cannot live in #469 until it rebases onto #275The other removed
EdgeZeroAxumServicefrom the Axum guide, because #275'scheck_outbound_legacy_api.shrejects the name. That edit now comes from #469 itself (52f4a09f, the suggestion in its review), merged in10166628with no file change. It was the only red check here before.Open points for the owning PRs
request.rsedit aboveNot included
Next on this branch
Each ticket's PR is merged here once it is ready. Every R1b, R2 and R2b ticket's PR is now included; R3 and R4 wait only on their record stores.
Refs #488. Part of #468. Planned in IABTechLab/trusted-server#1559.
Test plan
b6ada1ccthrough history-preserving merges10166628has the same tree as8717416087174160check_outbound_legacy_api.shandcheck_outbound_docs_contract.mjson8717416010166628(IABTechLab/trusted-server#1506 and IABTechLab/trusted-server#1608)10166628cache-restore-seedfailed once on compiler-cache publication and passed on reruncargo fmt --all -- --check,cargo check --workspace --all-targets --features "fastly cloudflare",cargo clippy --workspace --all-targets --all-features -- -D warnings,cargo test --workspace --all-targets3d92ee38f84ffbbb8cd7af96, locally:cargo fmt --all -- --check,cargo clippy --workspace --all-targets --all-features -- -D warnings,cargo test -p edgezero-core,cargo test -p edgezero-adapter-axum --features geo-cloudfront,cargo check --workspace --all-targets --features "fastly cloudflare spin", Fastly lib clippyb6ada1cc, locally: fmt,check_outbound_legacy_api.sh,check_outbound_docs_contract.mjs, workspace clippy, both Fastly clippy runs, the wasm feature check andcargo test --workspace --all-targets2620377a, #512 atcdc232c8and #515 atec347a2c, each locally: fmt, workspace clippy with all features, both Fastly clippy runs, the wasm feature check, workspace tests, both outbound scripts; plus Fastly contract tests under Viceroy, Cloudflare wasm tests in Node and Spin contract tests under Wasmtimeef8225d9has the same tree as #517's head10ed3803, and9d02d7b3the same tree as #515's headec347a2cb4d5ba87has the same tree as #515's headda0471b7; CI on #515 atda0471b710ed38037fb620a7(rc with #519d86a5d32and main), locally on macOS: every host step of test.yml (host-tests) and format.yml (format,adapter-clippy,format-docs), 133 commands, including the Docker AWS emulator step654f546d(rc with #519e8cf40eband main), locally: fmt, workspace clippy, Axum adapter clippy,production_hostingwithaxum,test-utilsand withgeo-cloudfront,test-utils, the Axum integration suite,cargo test --workspace --all-targetsproduction_hosting43 passed, none ignored (was 39 and 4 ignored); workspace 3,122 tests, none failede8cf40eb, locally: the four rewritten tests 10 times, the fullproduction_hostingsuite 30 times, one production mutation per rewritten test459bd27d, and each of the eighteen merges fromb3a45dfbhas the treegit merge-treeprints for it459bd27d1619078ahas the tree of the rebuild of654f546dwith the tips of #519, #515, #502, #469 and #536, and its diff from459bd27dtouches only the 113 paths of #522 and #524cargo metadata --lockedat1619078a1619078a