Skip to content

Sovereign: build the encrypted backup and recovery-material workflow #2541

Closed as not planned

Description

@VijitSingh97

What's the problem

Parent: #2478 · Milestone: Sovereign UI — post-2.0 · After 2.0.0 GA; not a GA release blocker.

Deliverable

Make backup contents, interruption and one-time recovery material clear without changing the archive contract.

  • Work type: Existing backup redesign.
  • Design references: 07 Maintenance → Backups; setup restore handoff (existing Sovereign mockups attached below; sample data, not runtime evidence).
  • Inventory coverage: S3–S4.

Existing Sovereign mockups

Existing concept images with sample data. The acceptance criteria and validated host/API contracts take precedence over illustrative labels or values.

07 · Maintenance

Sovereign — Maintenance

15 · Setup restore

Sovereign — Setup restore

12 · Setup handoff

Sovereign — Setup handoff

Complete 36-image gallery · Parent: #2478

what it impacts

Dependencies and boundaries

Build on #2514.

Related work: #1854. Existing issues retain ownership of their behavior.

Use the current host/API/schema contract when implementation starts; the design inventory is a baseline, not proof that develop has not changed. Preserve the parent accessibility, privacy, offline and authority rules. Any missing backend capability must be explicit, never represented by fabricated live data.

How I found it

Verification

Exercise failed backup, delayed completion, unavailable control and one-time material handling with fake archives; confirm copy follows #1854 current behavior. Follow #2478's required checks and attach sanitized visual evidence to the implementing PR. This issue does not authorize a live deployment or changes to miners/nodes.

how important is it

Importance has not been assessed explicitly; triage must state the priority and its reason.

acceptance criteria

Acceptance criteria

  • Explain included config/environment/identity keys/dashboard history and applicable wallet material from the current backup contract; blockchains are excluded.
  • Review mining/stack interruption, permissions and unavailable control/appliance-without-login states before creation.
  • Keep queued/running/failed/completed state and allow downloads only after a successful ready result.
  • Preserve one-time passphrase, emergency kit and archive handoff with explicit save acknowledgement; never put recovery secrets in history or telemetry.
  • Explain that restoring belongs to setup/recovery and link there; do not add an unaudited restore action to the normal dashboard.

possible solutions

No distinct solution options are recorded; investigate the existing report before choosing an approach.

Activity

  1. added
    enhancement
    dashboard
    security
    on Sep 22, 2026
  2. pithead-developer commented on Sep 24, 2026

    @pithead-developer
    Contributor

    Investigation brief (operator pre-read, 2026-09-23) — corrected

    still_valid: yes, as a design task — the underlying backup mechanism (#1854/#908) already ships and works; #2541 is the unstarted Sovereign visual/copy pass on top of it. Confirmed against the live issue body (gh issue view 2541): milestone "Sovereign UI — post-2.0", "After 2.0.0 GA; not a GA release blocker", "Build on #2514", and the five ACs quoted in the brief all match.

    Root cause / gap: BackupPanel (dashboard/mining_dashboard/web/static/system/backupview.mjs, class starts at line 59 — the file is 185 lines total) already covers most acceptance criteria — idle→confirm→creating→kit/failed states (phase set at :63, cancel() :69, run() :74, renderConfirm() :88, renderCreating() :104), downloads gated to a successful result only (kit/archive links at :126-127), one-time passphrase with an explicit "I've saved it — close" acknowledgement (:119, :128), and a named unavailable/no-login state (:145-165). Three gaps remain against the AC:

    1. Copy names "config.json, .env, the Tor onion-service keys, and the dashboard database" (backupview.mjs:91, :175) but never calls out wallet-grade material, even though lib/pithead/45-control-backup.sh:24 explicitly flags .env-carried secrets as "a wallet- or remote-access-grade secret."
    2. No link from this panel to setup/recovery for restore — restore only exists in the first-boot wizard (lib/pithead/09-restore-apply.sh, 17-backup-restore.sh:57 stack_backup()); the AC wants a pointer there, not an inline restore action (correctly, none exists).
    3. This issue says to reuse the visual pattern from Sovereign: restyle configuration preview, approval and apply results #2514 (settings review restyle), which is confirmed open with no PR started at all (not merely unmerged) — there is currently no shared Sovereign card component in the checkout to point to; the earlier components.mjs:1044 citation does not exist (that file is dashboard/mining_dashboard/web/static/app/components.mjs, 190 lines, no Card component) and should be dropped until Sovereign: restyle configuration preview, approval and apply results #2514 produces one.

    fix_shape: Sovereign restyle of the existing card + two copy edits (wallet-material callout, restore-points-to-setup link). No state-machine or backend changes.

    evidence_tier: tier-1 (dashboard/tests/frontend/system/backupview.test.mjs, backupnav.test.mjs) is correct — confirmed against docs/dev/testing-strategy.md's own definition of "control plane" (sync-gate/failover backend wiring, e.g. dashboard/tests/service/test_data_service_*.py), which this frontend-only copy/CSS change does not touch, nor build/compose/config-rendering/deploy/merge-mining/Tor/miner paths. tier4-e2e is not required under "tier follows the path" for this fix_shape.

    duplicates_or_blockers: blocked on #2514 (shared review pattern; open, no PR yet — not started); builds on #1854 (closed via #1921, already shipped); #2394 (restore-at-setup secret handoff, still open, confirmed via gh issue view) may affect where the restore link should point.

    rulings_needed: (1) block #2541 on #2514 merging first, or restyle now and reconcile later? Default: block. (2) Bundle the two copy-only fixes into #2541 or split to a pre-Sovereign issue? Default: keep bundled.

    Triage recommendation: stay in Sovereign UI — post-2.0 (the brief's own reasoning already argues this; its "MOVE-sovereign-ui" label was mislabeled — it should read as a stay/confirm verdict). Reason: the issue's own body already states it's after 2.0.0 GA and not a release blocker, and the parent tracker #2478 confirms the whole milestone is "deliberately after 2.0.0 GA." This is a UI polish pass on an already-functional, already-tested flow, unrelated to the Tari fork, security defects, or the GA checklist. Current milestone placement is correct.

    Verify against the code before relying on this; it was written by an investigator, not the implementer.

  3. pithead-developer commented on Oct 21, 2026

    @pithead-developer
    Contributor

    Blocked on #2514. Blocked on #2514, the explicitly required shared settings/review pattern; it remains open with no open implementation PR. Reconnaissance confirmed the existing encrypted-backup flow, and no files were changed or tests run. Resume after #2514 lands, then implement against the parent’s updated four-page design and v2.1.0 configuration model.

    The runner resumes this issue when that one closes.

  4. added
    blocked
    on Oct 21, 2026
  5. pithead-developer commented on Oct 21, 2026

    @pithead-developer
    Contributor

    Blocked (operator, 2026-10-21): v2.1.0 UI work waits for the lean UI spec (#3566), which maps this issue to one of the 4 pages or folds or closes it. That stops rounds being spent on the old 36-screen Sovereign scope. Unblocks when #3566 closes.

  6. pithead-developer commented on Oct 21, 2026

    @pithead-developer
    Contributor

    Rescoped to the lean UI spec #3566 (operator, 2026-10-21): Folded into #2530. Backup becomes the Backup card in Settings with one counted control, Back up now, keeping the encrypted-backup and recovery-material behavior from this issue. Overview shows an attention item until a first backup exists, and the setup hand-off offers it once.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    blockeddashboardenhancementsecurity

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions