Repository navigation
Review received-head and CI fixture follow-ups to PR 275 - #499
ChristianPavilonis wants to merge 15 commits into
Conversation
Restore isolated CLI activation, supervised progress tooling, raw qualification telemetry and stable evidence identities. Correct empty Spin request framing, nonce fixtures and documentation while preserving outbound limits, deadlines and ownership contracts. Validation: all five primary Rust gates, 2702 workspace tests, 660 harness tests, 38 tooling tests, isolated CLI compilation and the outbound documentation contract. Full four-adapter/demo and hosted qualification gates remain open.
Undo the changes from 14a6ca8, 658f89d, and 410a162 as one history-preserving revert. Preserve b97efec and all existing commits. This is a local comparison baseline; Aram is handling the public cleanup. No remote branch update is part of this commit. The five required Rust gates pass. Broader checks retain a pre-existing parallel fixture logger failure and reproduce the restored Fastly framing-receipt issue. Neither is hidden by this cleanup.
Prepare this change on an owned local follow-up for review. The parent is a temporary local revert baseline; publication and reconciliation onto the actual author-cleaned head are separate steps. Original-commit: 410a162
Prepare this change on an owned local follow-up for review. The parent is a temporary local revert baseline; publication and reconciliation onto the actual author-cleaned head are separate steps. Original-commit: 658f89d
Prepare this change on an owned local follow-up for review. The parent is a temporary local revert baseline; publication and reconciliation onto the actual author-cleaned head are separate steps. Original-commit: 14a6ca8
Brings #275 at e9ffaa8 and the refreshed heads of #499, #460, #406, #407, #409, #414, #422 and #439. Each PR merged the one below it, so this merge has no conflicts. Two edits fit #469 to #275, as #469's open review asks: - #469's ingress JA4 test calls into_core_request with one argument. #275 now passes the Axum outbound executor through that function, so the test gets an executor handle the way the other ingress tests do. - The Axum guide names EdgeZeroAxumService, which #275 removes and check_outbound_legacy_api.sh rejects. The guide now names only AxumDevServer::with_trusted_ja4_header.
|
For the identity integration branch (#495), I pushed |
prk-Jr
left a comment
There was a problem hiding this comment.
Reviewed head 27901990 against base 0e2a58ae (five-file delta: received-head preparation seam in core, the framing-receipt write in the qualification fixture, and the wire-reader test assertions).
Verdict: approve. The preparer is optional and defaults to a no-op. It gets &HeaderMap, so it can't change headers, and it never sees the body, the route or the response. Router clones share it through Arc, as the doc says. The fixture now panics when a framing receipt can't be written, where it used to silently drop qualification evidence. That fits a qualification fixture. The reader test now checks that oversized input fails with the oversize error, so it can't pass on a different error.
Non-blocking
router.rs:367: see the inline note. In this PR no adapter calls the new seam yet.- The PR description is out of date. It says the Files changed view is empty and describes a six-file delta. Since #275 moved, the view shows these five files, and the Fastly lifecycle test change is already in the base. Please refresh the summary and the "reconcile onto the cleaned base" checklist item so later reviewers see the real scope.
Evidence (local, Rust 1.98.1 per .tool-versions)
cargo test -p edgezero-core --test received_head_preparation: 2 passed.- Broken control: I made
RouterService::prepare_received_headskip the callback.received_head_preparation_retains_only_authenticated_fact_without_mutating_headersfailed at its extension assertion, then passed again after restoring the code. - Harness
runners::citests: 18 passed. cargo clippy -p edgezero-core --all-targets --all-features -- -D warningsandcargo fmt --all -- --check: clean.
Limits
- Hosted test/format workflows don't run on this non-
mainbase. - The one failing hosted job,
cache-restore-seed, fails on sccache GHA cache write errors after three attempts. Nothing in this delta touches workflows or scripts. - I didn't run the full workspace, adapter runtime or WASM suites for this delta.
|
|
||
| /// Sets a body-blind preparation callback for structurally validated received heads. | ||
| /// | ||
| /// Managed hosts call it before stripping forwarding fields or provider credentials. |
There was a problem hiding this comment.
Non-blocking: no adapter calls prepare_received_head at this head, so a preparer registered here never runs on Fastly, Cloudflare, Spin or Axum. Further up the stack, only the Axum service wires it in (#409). Consider naming the host that invokes it, e.g. "The Axum managed host calls it…", or saying that adapters which don't sanitize forwarding fields never invoke it. That way an app on another adapter won't count on authenticated facts that never get filled in.
Summary
Current review status
At creation, #275 still points to
14a6ca8bb5a5cbe055a1f725bdab8f42569a3bf0and already contains these changes. This branch has the same source tree, so the PR Files changed view is intentionally empty.The branch contains a local combined revert baseline, followed by three separately reviewed reapplications. The intended three-commit, six-file delta can be inspected now through this explicit comparison:
9c7c2f0...e0f01bc
After Aram's cleanup, we will synchronize our owned baseline with his actual resulting source, merge that baseline forward into this branch, and verify that the PR shows only the intended remaining changes. Merely waiting for the base to change does not guarantee the correct GitHub merge-base diff. Existing author changes must survive that reconciliation.
No force push, direct update to #275, tag move, main merge, image publication or deployment is part of this PR.
Changes
edgezero-coreapp/router and received-head testsPrepared commits:
eb95665f,1ea46af3,e0f01bc0. Their patch IDs match the original changes. Aram's 27 changed-file blobs are unchanged.Closes
None. This draft coordinates review with #275 and does not close that PR or another issue.
Test plan
Current local checks are recorded against head
e0f01bc08fe7bbac8a43c129c2b0d49fae035c73, treeefb75526c878ba0a17779933553cbc2f461ff075.cargo fmt --all -- --checkcargo clippy --locked --workspace --all-targets --all-features -- -D warningscargo test --locked --workspace --all-targetscargo check --locked --workspace --all-targets --features "fastly cloudflare spin"wasm32-wasip2compilation and actual SDK resource testsnet::wire::tests::idle_finish_and_drop_wake_both_collectors_without_fake_connectionsfailed its closed-port connection assertion. The original failed run is retained. One isolated execution of that test passes, but it does not clear the full-suite failure or establish its cause. Harness build, strict harness/fixture lint/format and CLI-only compilation pass.main, so this non-main draft does not automatically receive those runs.Checklist
Current downstream hosted observations include cancelled-host-suite aggregate failures, exact cache misses and missing CLI artifacts. Other checks remain unfinished. These outcomes are retained, not counted as passes; their causes are not resolved by this draft.