feat(enclave): add getLuksProvisioningStatus RPC for first-boot wipe progress#196
Merged
Merged
Conversation
…progress
First boot wipes the entire persistent disk to seed dm-integrity tags,
which can take 1h+ and is otherwise an opaque, silent wait. Add a
read-only RPC so the operator CLI can poll it and render a progress bar.
- api.rs: LuksProvisioningStatus type (internally tagged by `state`:
idle / provisioning{bytes_done,bytes_total,eta_seconds?} / error /
unknown) + getLuksProvisioningStatus on the TdxQuoteRpc trait.
- enclave-server: luks_status.rs reads /run/seismic/status/luks.json
(written by seismic-images' setup-persistent-luks) and serves the
latest snapshot. Absent file -> Idle; present-but-unreadable -> Unknown,
so a broken status pipeline never masquerades as "done". Hosted here
because enclave-server is the only node service alive for the whole wipe.
- mock: returns Idle (no real disk).
Scoped deliberately to the wipe; not a general boot-status surface.
samlaf
added a commit
to SeismicSystems/seismic-images
that referenced
this pull request
Jun 30, 2026
…tatus (#35) setup-persistent-luks taps `cryptsetup --progress-json` during the long first-boot provisioning wipe and publishes it to a tmpfs file that enclave-server serves via getLuksProvisioningStatus (operator CLI progress bar). The crypto flags are unchanged -- this only adds the tap. - setup-persistent-luks: parse --progress-json (merged stdout+stderr) -> write /run/seismic/status/luks.json atomically; forward cryptsetup's own logs on to journald. Best-effort throughout -- a status hiccup can never abort the wipe (ERR trap publishes {"state":"error"}); the file is removed on success so the endpoint reads idle. - tmpfiles: create /run/seismic/status (root-owned; world-readable files so enclave-server reads them as the enclave user). - bump enclave pin to the commit adding the getLuksProvisioningStatus RPC this producer feeds. Consumer of this is in SeismicSystems/enclave#196
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
First boot wipes the entire persistent disk to seed dm-integrity tags, which can take 1h+ and is otherwise an opaque, silent wait. Add a read-only RPC so the operator CLI can poll it and render a progress bar.
state: idle / provisioning{bytes_done,bytes_total,eta_seconds?} / error / unknown) + getLuksProvisioningStatus on the TdxQuoteRpc trait.For now this is scoped deliberately to the wipe; not a general boot-status surface. Might eventually expand to a full status/liveness check.