Repository navigation
test(zones): run the candidate node against every pinned prover - #9570
0xrusowsky wants to merge 9 commits into
Conversation
👁️ Cyclops Security Review✅ Reviewed 6d2074a (latest) · Coverage: partial ·
|
| let provider = ProviderBuilder::new_with_network::<TempoNetwork>() | ||
| .connect(&self.l1_rpc_url) | ||
| .await?; |
There was a problem hiding this comment.
Informational · unverified: Proof-request timeout leaves WebSocket connection setup unbounded
The new witness selector is supposed to stop waiting when its configured RPC endpoint stalls. For a WebSocket URL, WitnessShapes::run awaits ProviderBuilder::connect before reaching the 30-second proof timer. The enabled Alloy WebSocket path waits for the initial handshake before returning.
Full finding
The new witness selector is supposed to stop waiting when its configured RPC endpoint stalls. For a WebSocket URL, WitnessShapes::run awaits ProviderBuilder::connect before reaching the 30-second proof timer. The enabled Alloy WebSocket path waits for the initial handshake before returning. A server that accepts one TCP connection and keeps it open without replying to the WebSocket upgrade can therefore hold the CLI indefinitely absent an outer deadline; no eth_getProof request is sent and no timeout error is returned by the command. An isolated Rust test using the exact connection expression and a permanently pending connector confirmed that the command remains pending before the timer can be armed. To reproduce with the full CLI, point it at a loopback socket that accepts the upgrade request and leaves the stream open without replying; assert the command exits on its own deadline. The baseline is the command's 30-second bound for a stalled proof request. Triggering the gap requires control of, or a fault at, the configured WS endpoint and sustaining one open connection; no chain transaction or fee is involved. The deployed scheme, outer job deadline, and resulting job or status impact were not available. Add a connection deadline or an overall command deadline and test a stalled upgrade.
Valid? React with 👍 / 👎.
Motivation
The L1 node ships continuously, while each hardfork pins its Zone prover enclave in
crates/precompiles/src/zone_verifier/pcrs.jsonuntil that fork. Nothing ran a candidate node against those pinned provers, so a change in the witnesses the node serves could reach production unchecked.Solution
The prover E2E publisher gets a
compatsuite, published for every push toreth-auto-bumpand on dispatch. It runs the candidate L1 and Zone nodes against the pinned provers of the active and scheduled forks, each built from itspcrs.jsoncommit, and reports oneTempo Zone Prover Compatstatus that a node release can require. The reth update loop does not wait on it.The new read-only
witness-shapesZone xtask command proves TIP-1028 receive-policy slots of candidate recipients on L1 until one absence proof ends inside an extension node and another at a branch's empty child, and prints both recipients. It needs no key and works on any populated registry (Moderato, mainnet). The suite deposits to them, so the Zone reads both proof shapes, and requires Nitro settlement.The Argo suite and event sensor changes land separately in the internal infrastructure repositories.