Skip to content

feat(tdx-init)!: require [network] manifest in InitConfig#197

Merged
samlaf merged 1 commit into
seismicfrom
tdx-init-require-network-manifest
Jun 30, 2026
Merged

feat(tdx-init)!: require [network] manifest in InitConfig#197
samlaf merged 1 commit into
seismicfrom
tdx-init-require-network-manifest

Conversation

@samlaf

@samlaf samlaf commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

network was Option, so a POST without [network] was accepted (200) — but enclave-server hard-requires network-manifest.json at startup (it derives network_id and binds every attestation to it) and is fatal without it. The node then crash-looped at boot, with the cause visible only in journalctl.

Make network required so toml::from_str rejects a manifest-less POST with 400 at deploy time — loud and actionable — instead of a silent boot-time crash-loop. server and writer drop their if let Some(..) guards and validate/write the manifest unconditionally.

The deploy CLI (seismic-tee configure) merges the network-wide manifest into the per-node config at POST time, so [network] is always present on the wire.

`network` was Option<NetworkConfig>, so a POST without [network] was
accepted (200) — but enclave-server hard-requires network-manifest.json at
startup (it derives network_id and binds every attestation to it) and is
fatal without it. The node then crash-looped at boot, with the cause
visible only in journalctl.

Make `network` required so toml::from_str rejects a manifest-less POST with
400 at deploy time — loud and actionable — instead of a silent boot-time
crash-loop. server and writer drop their `if let Some(..)` guards and
validate/write the manifest unconditionally.

The deploy CLI (seismic-tee configure) merges the network-wide manifest
into the per-node config at POST time, so [network] is always present on
the wire.
@samlaf samlaf requested a review from cdrappi as a code owner June 30, 2026 14:46
@samlaf samlaf merged commit e6675eb into seismic Jun 30, 2026
5 of 6 checks passed
@samlaf samlaf deleted the tdx-init-require-network-manifest branch June 30, 2026 15:01
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