Skip to content

Port backup, restore and support-bundle to Rust #722

Open

Description

@pithead-developer

What's the problem

backup, restore and support-bundle (roughly 270 lines of Bash) handle operator data and secrets redaction.

What it impacts

Operators backing up or restoring a rig and anyone sharing a support bundle.

How I found it

Function map of rigforge.sh at ea41133; redaction vectors relate to #690.

How important is it

Low to medium; data-handling correctness matters more than speed.

Acceptance criteria

  • With RIGFORGE_IMPL=rust, the three verbs match Bash argv handling, output, archive contents and exit status, and make test-suite passes unchanged.
  • A native test shows the support bundle redacts the same secrets as Bash, using shared vectors.
  • PARITY.md updated. make check passes.

Possible solutions

  • Native tar and gzip crates versus shelling out to tar; options only.

Activity

  1. added this to the v1.20.0 milestone on Nov 17, 2026
  2. added
    enhancement
    refactor
    P4-code-health
    size:M
    on Nov 17, 2026
  3. pithead-developer commented on Nov 26, 2026

    @pithead-developer
    ContributorAuthor

    Blocked on #706. Blocked on rigforge#706 (Add the RIGFORGE_IMPL dispatcher, unit-level selection, parity CI job and ledger). Why: every acceptance criterion of #722 is written against a surface only #706 creates. AC1 needs the three verbs to run natively "with RIGFORGE_IMPL=rust" and make test-suite to pass unchanged under it — that dispatcher, the env-hook contract for the Rust binary and the RIGFORGE_IMPL=rust parity CI job are #706's deliverables; #706 is OPEN, states it "Blocks every port slice", and carries operator-hold (never picked or merged by the runner, nor any PR linked to it). Nothing on develop mentions RIGFORGE_IMPL and the Rust crates are a --version stub. AC3 needs the PARITY.md ledger (docs/dev/rust-port/PARITY.md) updated; the file is also only created by #706 and does not exist. Building my own dispatcher or ledger would duplicate held #706's design and collide with sibling slices #721/#723, which were already returned blocked on #706 for exactly this reason (PR #804 likewise stage/blocked). AC2 nuance: its "shared vectors" point at rigforge#690 (log-line redactor with a shared test-vector file), also open with needs-triage + operator-action — no vector file exists in the tree and support-bundle redaction is still inline jq paths in rigforge.sh; when #706 lands, #690 (or an explicit ruling that this slice defines the vector file) is still needed for AC2. Finished so far: full prerequisite survey (issue graph #669/#706/#690, develop state, crate stubs, verb dispatch and redaction code paths); deliberately edited nothing, opened no branch or PR, so no parallel mechanism exists. Unblocks when: the operator lifts or sequences #706 (owner's 2026-11-24 order on #669 builds #706 second, right after the merged #705); the runner resumes this session on #706's close, and AC2 should re-check rigforge#690.

    The runner resumes this issue when that one closes.

  4. added
    blocked
    on Nov 26, 2026
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

    P4-code-healthblockedenhancementrefactorsize:M

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions