Skip to content

[flux/v2.10.x] http/fetch: Add typed error for digest mismatch - #1349

Merged
matheuscscp merged 1 commit into
flux/v2.10.xfrom
backport-1348-to-flux/v2.10.x
Oct 25, 2026
Merged

matheuscscp merged 1 commit into
flux/v2.10.xfrom
backport-1348-to-flux/v2.10.x

Conversation

@fluxcdbot

Copy link
Copy Markdown
Member

Automated backport to flux/v2.10.x, triggered by a label in #1348.

Wrap the digest verification failure with ErrDigestMismatch so that
callers can tell when the downloaded artifact does not match the
advertised digest. This happens when a source artifact is rebuilt
between reading the source status and downloading it, e.g. after
source-controller restarts with ephemeral storage. Controllers can
retry these errors like ErrFileNotFound instead of waiting for the
next reconciliation interval.

Drop the max download size hint from the error message, as exceeding
the limit is reported by a dedicated error before verification.

Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
(cherry picked from commit 0d49a19)
@matheuscscp
matheuscscp merged commit ffb2e7e into flux/v2.10.x Oct 25, 2026
12 checks passed
@matheuscscp
matheuscscp deleted the backport-1348-to-flux/v2.10.x branch October 25, 2026 13:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants