Skip to content

feat(deploy_tee): genesis pins eth_genesis_hash from the manifest#53

Merged
samlaf merged 2 commits into
mainfrom
genesis-manifest-pin
Jul 2, 2026
Merged

feat(deploy_tee): genesis pins eth_genesis_hash from the manifest#53
samlaf merged 2 commits into
mainfrom
genesis-manifest-pin

Conversation

@samlaf

@samlaf samlaf commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

The ceremony now takes --manifest and pins eth.genesis_hash from it — the value manifest assemble computed offline at deploy time — instead of deriving it from whatever the cohort happens to serve. Each node's reth is then asserted to serve that hash as block 0, so a stale image or wrong genesis fails at ceremony time instead of parking summit in SYNCING forever (summit pinning a hash reth doesn't know produces no error on either side). Failure output lists the whole cohort (✓/✗ per node, unreachable nodes included), so one bad node is distinguishable from a manifest that matches nobody, and a down node doesn't hide the rest. -g becomes a dev-only override; the cohort assertion still runs against the overridden value.

Also fix --node to accept the repeated-flag form: it was nargs="+" only, so --node a.json --node b.json silently replaced a with b and ran the ceremony against a partial cohort — which is how a uniform cohort disagreeing with a stale manifest masqueraded as a single mismatched node during the N=2 bring-up. Both forms now accumulate, duplicates are rejected, and descriptor paths are validated up front.

samlaf added 2 commits July 3, 2026 00:21
The ceremony now takes --manifest and pins eth.genesis_hash from it —
the value `manifest assemble` computed offline at deploy time — instead
of deriving it from whatever the cohort happens to serve. Each node's
reth is then asserted to serve that hash as block 0, so a stale image
or wrong genesis fails at ceremony time instead of parking summit in
SYNCING forever (summit pinning a hash reth doesn't know produces no
error on either side). Failure output lists the whole cohort (✓/✗ per
node, unreachable nodes included), so one bad node is distinguishable
from a manifest that matches nobody, and a down node doesn't hide the
rest. -g becomes a dev-only override; the cohort assertion still runs
against the overridden value.

Also fix --node to accept the repeated-flag form: it was nargs="+"
only, so `--node a.json --node b.json` silently replaced a with b and
ran the ceremony against a partial cohort — which is how a uniform
cohort disagreeing with a stale manifest masqueraded as a single
mismatched node during the N=2 bring-up. Both forms now accumulate,
duplicates are rejected, and descriptor paths are validated up front.
@samlaf samlaf merged commit 00ea786 into main Jul 2, 2026
1 check passed
@samlaf samlaf deleted the genesis-manifest-pin branch July 2, 2026 16:38
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.

1 participant