manifest.json

A file written at backup time that lists every backed-up file with its SHA-256 digest, so a restore can be checked byte for byte.

In more detail

The course's restore test recomputes each file's digest and compares it with the manifest, which reveals silent corruption or tampering. A manifest is only trustworthy if it is stored where an attacker cannot rewrite it, otherwise they simply update the digests too. Hashes prove the bytes are unchanged, not that the application starts, so real test restores are still needed.

Examples

manifest = {n: sha256("restore/" + n) for n in sorted(os.listdir("restore"))}
sha256sum changes.csv sample.txt results.csv > manifest.sha256

Related terms

Taught in

References