How seismicsystems/enclave works
Seismic enclave runs three deployed components: tdx-init provisions per-boot runtime configuration, the attestation service exposes node evidence and handles peer bootstrap, and the separate custodian protects the network root key. The main flow is operator-supplied bootstrap configuration, validation and config-file generation, followed by attestation-service/custodian cooperation and peer admission. Other documented capabilities include founding-harvest verification, deployment verification, measurement-policy compilation, and canonical manifest rendering. Several subsystem links below rely on README descriptions; unsampled source limits implementation-level detail.
Main entry points: src/server.rs Attestation RPC · src/server.rs Config receiver · lib.rs Quote verification · promote.rs Measurement promotion
Components 25
Boot configuration
- Config receiver
bin/tdx-init/src/server.rs - Init config schema
crates/tdx-init-config/src/domain.rs - Artifact validation
bin/tdx-init/src/manifest.rs - Peer derivation
bin/tdx-init/src/peers.rs - Service config writer
bin/tdx-init/src/writer.rs
Attestation and admission
- Attestation RPC
bin/attestation-service/src/server.rs - Peer bootstrap admission
bin/attestation-service/src/admission.rs - Node join
bin/attestation-service/src/join.rs - Founding harvest
bin/attestation-service/src/harvest.rs - Evidence and policy checks
crates/attestation/src/lib.rs
Key custody
- Custodian service
bin/custodian-service/src/dispatch.rs - Root-key derivation
crates/custodian/src/custodian.rs - Socket client
crates/custodian-ipc/src/client.rs - Socket transport
crates/custodian-ipc/src/server.rs
Measurement and manifests
- Policy compiler
crates/measurement-admission/src/policy.rs - Measurement promotion
crates/measurement-admission/src/promote.rs - Registry reader
crates/measurement-registry-client/src/lib.rs - Network manifest schema
crates/network-manifest/src/lib.rs - Manifest renderer
crates/manifest/src/lib.rs
Relying-party verification
- Quote verification
crates/verify-quote/src/lib.rs - Harvest archive replay
crates/verify-quote/src/archive.rs
Other components
- Operator / deploy
- MeasurementRegistry
- Peer node / client
- Runtime env files
Connections 25
- Operator / deploy → Config receiver: POSTs config
README.md - Config receiver → Init config schema: parses config
bin/tdx-init/src/server.rs - Config receiver → Artifact validation: validates artifacts
bin/tdx-init/src/server.rs - Config receiver → Service config writer: hands off config
bin/tdx-init/src/main.rs - Service config writer → Runtime env files: writes env files
README.md - Config receiver → Peer derivation: checks peer config
bin/tdx-init/src/server.rs - Operator / deploy → Measurement promotion: promotes measurements
README.md - Measurement promotion → Policy compiler: compiles policy
crates/measurement-admission/src/promote.rs - Measurement promotion → MeasurementRegistry: promotes on-chain
README.md - Attestation RPC → Socket client: requests key operations
bin/attestation-service/src/server.rs - Socket client → Socket transport: sends socket requests
crates/custodian-ipc/src/client.rs - Socket transport → Custodian service: dispatches requests
- Custodian service → Root-key derivation: uses key custodian
README.md - Peer node / client → Attestation RPC: requests evidence
README.md - Attestation RPC → Peer bootstrap admission: gates bootstrap
bin/attestation-service/src/server.rs - Peer bootstrap admission → MeasurementRegistry: checks admission
- Peer node / client → Node join: joins network
- Attestation RPC → Founding harvest: serves harvest
README.md - Operator / deploy → Manifest renderer: renders manifest
README.md - Manifest renderer → Network manifest schema: renders schema
README.md - Operator / deploy → Quote verification: verifies node
README.md - Quote verification → Harvest archive replay: archives harvest
crates/verify-quote/src/lib.rs - Quote verification → Attestation RPC: challenges deploy RPC
README.md - Quote verification → Policy compiler: checks policy
- Evidence and policy checks → Attestation RPC: supplies evidence types