M6: Fail closed on missing/unfetchable SHA256SUMS in the auto-updater #242

Merged
KofTwentyTwo merged 1 commits from story/m6-updater-fail-closed into dev 2026-07-30 17:55:59 +00:00
1 Commits
Author SHA1 Message Date
James Maes aeb0e6e1ed fix(update): fail closed on missing or unfetchable SHA256SUMS
download_and_verify previously returned the downloaded archive unverified
when a release had no SHA256SUMS.txt asset, or when fetching it returned a
non-2xx status. Restructure so the only path to Ok is an exact SHA-256
match: absent asset, non-success fetch, filename-not-found, and hash
mismatch all return Err. Adds a distinct ChecksumUnavailable variant and
wiremock coverage for each failure mode plus the matching happy path.

Refs #202
2026-07-30 12:54:17 -05:00