From 8efabc60f87e5462b01f4832d575f68382929624 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Mon, 4 Jan 2021 18:57:49 +0200 Subject: feat: verify checksum of chunks downloaded from server --- obnam.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'obnam.md') diff --git a/obnam.md b/obnam.md index 0c4ab50..accfca2 100644 --- a/obnam.md +++ b/obnam.md @@ -976,6 +976,26 @@ when I run obnam --config smoke.yaml list-files then file live/data.dat was backed up because it was changed ~~~ +## Checksum verification + +Each chunk has metadata with the checksum of the chunk contents. This +scenario verifies that the client checks the contents hasn't been +modified. + +~~~scenario +given an installed obnam +and a running chunk server +and a client config based on smoke.yaml +and a file live/data.dat containing some random data +when I run obnam --config smoke.yaml backup +then backup generation is GEN +when I invoke obnam --config smoke.yaml get-chunk +then exit code is 0 +when chunk on chunk server is replaced by an empty file +when I invoke obnam --config smoke.yaml get-chunk +then command fails +~~~ + ## Tricky filenames Obnam needs to handle all filenames the underlying operating and file -- cgit v1.2.1