forge
Explore
Log in

Don't you dare go Hollow

Backup manifest MAC in conventions

Browse files at this commit

796484e63cd3450e93c089d6f2f9cb107a3ae975Ahmet Kaan GümüşParent: 0982f5f
  • docs
    • backup manifest MAC in conventions
    • CLI section matches the binary
Show full message
📝 docs: backup manifest MAC in conventions; CLI section matches the binary
docs/conventions.mdmodified+3 -2
@@ -61,8 +61,9 @@ tokens, passwords, cookies, or secrets.
61 - Constraints live in the schema (`NOT NULL`, `CHECK`, `UNIQUE`, `REFERENCES ... ON DELETE ...`), not only in Rust.61 - Constraints live in the schema (`NOT NULL`, `CHECK`, `UNIQUE`, `REFERENCES ... ON DELETE ...`), not only in Rust.
62 - Backups: `snapshot_to(path)` with `VACUUM INTO` on the writer, then checkpoint the copy so it is one62 - Backups: `snapshot_to(path)` with `VACUUM INTO` on the writer, then checkpoint the copy so it is one
63 self-contained file, then fsync. `admin backup --out DIR` writes the snapshot, the blob tree (where the app63 self-contained file, then fsync. `admin backup --out DIR` writes the snapshot, the blob tree (where the app
64- has one) and a `manifest.json` with a sha256 per file. `admin backup-verify SET` checks hashes,64+ has one), a `manifest.json` with a sha256 per file and a `manifest.mac`: HMAC-SHA256 of the manifest bytes
65- `integrity_check` and contiguous migrations. Never copy a live DB file.65+ under a subkey of the instance key, which lives outside the backup. Verify and restore check the MAC first
66+ (constant time), then hashes, `integrity_check` and contiguous migrations. Never copy a live DB file.
66 67
67 ## 5. HTTP and pages68 ## 5. HTTP and pages
68 69