Skip to content

feat(deploy_tee)!: split configure into operator-join + bootstrap-genesis#50

Merged
samlaf merged 1 commit into
mainfrom
feat--configure-join-and-bootstrap-genesis
Jul 1, 2026
Merged

feat(deploy_tee)!: split configure into operator-join + bootstrap-genesis#50
samlaf merged 1 commit into
mainfrom
feat--configure-join-and-bootstrap-genesis

Conversation

@samlaf

@samlaf samlaf commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Replaces the hand-written node.toml with flags, and splits founding from joining by CLI audience:

  • seismic-tee configure is now join-only: --peer (a URL or a node descriptor that resolves to http://<public_ip>:7878) supplies [enclave].peers; no more --config/node.toml. genesis_node is always false.
  • seismic-tee-bootstrap configure --genesis <descriptor> configures the one founding node (genesis_node=true, no peers). Founding is an internal act, so it lives on the bootstrap CLI, not the operator CLI — an operator can no longer accidentally found a second network.
  • Both share a deliver_config primitive (build + POST + watch), so the POSTed config and tdx-init contract are identical; only genesis_node/peers differ.
  • configure now honors watch_luks_provisioning's exit code: a node that never reaches ready no longer prints a misleading "NODE CONFIGURED".

The POSTed TOML ([domain]/[enclave]/[network]) and the SEISMIC_ENCLAVE_* env contract are unchanged; tdx-init is untouched. A parallel cohort mode for seismic-tee-bootstrap configure (one genesis + N joiners, POSTed and watched in parallel) is the planned follow-up.

…esis

Replaces the hand-written node.toml with flags, and splits founding from
joining by CLI audience:

- `seismic-tee configure` is now join-only: --peer (a URL or a node
  descriptor that resolves to http://<public_ip>:7878) supplies
  [enclave].peers; no more --config/node.toml. genesis_node is always false.
- `seismic-tee-bootstrap configure --genesis <descriptor>` configures the
  one founding node (genesis_node=true, no peers). Founding is an internal
  act, so it lives on the bootstrap CLI, not the operator CLI — an operator
  can no longer accidentally found a second network.
- Both share a `deliver_config` primitive (build + POST + watch), so the
  POSTed config and tdx-init contract are identical; only genesis_node/peers
  differ.
- configure now honors watch_luks_provisioning's exit code: a node that
  never reaches ready no longer prints a misleading "NODE CONFIGURED".

The POSTed TOML ([domain]/[enclave]/[network]) and the SEISMIC_ENCLAVE_* env
contract are unchanged; tdx-init is untouched. A parallel cohort mode for
`seismic-tee-bootstrap configure` (one genesis + N joiners, POSTed and
watched in parallel) is the planned follow-up.
@samlaf samlaf merged commit 9bf40aa into main Jul 1, 2026
1 check passed
@samlaf samlaf deleted the feat--configure-join-and-bootstrap-genesis branch July 1, 2026 17:13
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