Backup manifest MAC in conventions
Browse files at this commit796484e63cd3450e93c089d6f2f9cb107a3ae975Parent: 0982f5f- docs
- backup manifest MAC in conventions
- CLI section matches the binary
1 changed file +3 -2
- docs/conventions.md +3 -2
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 one | 62 | - 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 app | 63 | 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 pages | 68 | ## 5. HTTP and pages |
| 68 | 69 | ||