Clean up failed backup publication safely

This commit is contained in:
codex committed 2026-10-31 00:53:12 +03:00
1 parent 4c4b51270c
commit 3d267afaee
4 files changed
+100 -4

No files matched your search

+4 -1
View File
@@ -24,7 +24,10 @@ verified production backup, so production deployment remains blocked.
SYSTEM, or local Administrators; other and deny entries fail closed.
It writes into a private staging directory, checks the
stream size and SHA-256, verifies the archive and manifest, then publishes
the complete backup directory without overwriting an existing ID.
the complete backup directory without overwriting an existing ID. It checks
the published ACL before acknowledging; on failure it removes only the same
verified staging directory, and refuses cleanup if its identity or contents
have changed.
- Only after Windows confirms the stored archive identity does the VPS proceed
with image cutover. If backup transport or verification fails, it attempts
to restart the previous services and records a recovery journal if restart
+4
View File
@@ -30,6 +30,10 @@ remains blocked by the backup gate.
NTFS/path/ACL owner and allowed entries, and the local ignore rule before
SSH; it requires 100 GiB plus 1 MiB free. These code changes remain
unverified on Windows and the VPS.
- Receiver cleanup after a post-publication ACL failure is identity-bound to
the owned staging directory and permits only the expected archive files. A
replaced, reparse, or unexpected target is left for manual review without an
ACK; this path is covered by local fixtures and remains pending Windows rerun.
- Synthetic tests cover archive/protocol integrity, helper download rules,
artifact/run provenance, receiver publication, release schema, and rollback
refusal. Windows ACL, NTFS, PowerShell, SSH alias, Gitea helper against the