Build restore points with backup and restore commands

Aperta
#80 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
70/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
bash, powershell
Ambito
cli

Direzione di ricerca

Start from spec design 07 and Conventions section 3.3 on branch phase-4/restore-points, and check dependency issue #68. Build module harden.restore_points in phases/harden/modules/restore_points/ with backup and restore commands. Write bats and Pester acceptance tests for the six scenarios; done means those tests pass and backups are unreadable by non-admins.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

area: services phase: harden platform: linux platform: windows type: build

Location & Context

Roadmap branch phase-4/restore-points. Spec: design 07. Planned module ID: harden.restore_points, in phases/harden/modules/restore_points/. Depends on #68.

Current Behavior

No restore point exists before the sweep or a patch, so damage from either cannot be undone cleanly.

Remediation Plan

  1. Build backup <service> and restore <service>, with names decided when built (Conventions section 3.3).
  2. Check free space before a backup; hash each file; keep backup files unreadable by non-admins.
  3. Refuse a restore without approval or with a hash mismatch.
  4. Write these acceptance tests first (bats and Pester):
    • A defaced lab web root is restored after approval, the damaged copy is kept as evidence, and the probe passes.
    • restore refuses to run without approval and refuses a restore point whose hash does not match.
    • A backup that would breach the free-space margin is refused.
    • A database dump taken while the probe runs every few seconds fails no probe.
    • Backup files are unreadable by a non-admin account.
    • A negative test: protected accounts and scored services are untouched before and after.
Lingua principale
PowerShell
Stelle
0
Fork
0
Merge medio
2h 7m
PR unite (30g)
53

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di dotnetdork/Labyrinth

Tutte le issue di dotnetdork/Labyrinth

Issue simili

Altre issue su CLI

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.