Tim Andersson d5c0c1fbb3 feat: check database checksum instead of content-length header
autopkgtest-cloud will now serve:
autopkgtest.ubuntu.com/static/autopkgtest.db.sha256

Britney now calculates the sha256 of the newly downloaded db locally and
checks that it matches the sha256 file served by autopkgtest-cloud,
instead of checking that the content-length header matches the
size of the new downloaded database.

Since the most recent apache2 security update in focal [1], the
content-length header isn't served by default, and it seems that when
it is served it's not entirely accurate. This check has become
brittle, and so we have implemented this new mechanism.

[1] https://bugs.launchpad.net/ubuntu/+source/apache2/+bug/2061816
2024-04-24 14:40:13 +01:00
..
2020-11-20 17:37:44 +00:00
2020-04-01 16:37:56 +00:00
2020-04-01 16:37:56 +00:00