feat(deploy_tee): seismic-tee status + configure progress bar for LUKS wipe#45
Merged
Conversation
…S wipe Add `seismic-tee status --node <descriptor>`: polls enclave-server's getLuksProvisioningStatus (:7878) and renders a progress bar for the first-boot LUKS wipe — the long (1h+), otherwise-opaque phase. `configure` now watches the same wipe by default after POSTing (--no-wait to skip); ctrl-C stops watching without affecting the node, since the POST already landed. The shared poller (status.watch_luks_provisioning) is conservative about `idle`: it treats idle as "done" only after seeing provisioning, and otherwise waits a short grace for the wipe to start before concluding none is in progress (covers fast-unlock restarts). Connection-refused is treated as enclave-server still coming up, not an error. Renders an in-place bar on a TTY, plain lines otherwise. This watches the wipe only — it is not a node-readiness gate. Tests cover the formatters (incl. bytes_total=0 indeterminate and bar clamping) and the JSON-RPC request/parse path.
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.
Add
seismic-tee status --node <descriptor>: polls enclave-server's getLuksProvisioningStatus (:7878) and renders a progress bar for the first-boot LUKS wipe — the long (1h+), otherwise-opaque phase.configurenow watches the same wipe by default after POSTing (--no-wait to skip); ctrl-C stops watching without affecting the node, since the POST already landed.The shared poller (status.watch_luks_provisioning) is conservative about
idle: it treats idle as "done" only after seeing provisioning, and otherwise waits a short grace for the wipe to start before concluding none is in progress (covers fast-unlock restarts). Connection-refused is treated as enclave-server still coming up, not an error. Renders an in-place bar on a TTY, plain lines otherwise. This watches the wipe only — it is not a node-readiness gate.Tests cover the formatters (incl. bytes_total=0 indeterminate and bar clamping) and the JSON-RPC request/parse path.
What it looks like
When posting a config to a node from the CLI, output now looks like:
with the progress bar getting updated on every poll every 5s.