Skip to content

fix(verifier): retry transient image download failures - #1388

Merged
kvinwang merged 1 commit into
nextfrom
fix/verifier-image-download-retry
Sep 24, 2026
Merged

kvinwang merged 1 commit into
nextfrom
fix/verifier-image-download-retry

Conversation

@kvinwang

Copy link
Copy Markdown
Collaborator

A dropped connection or a body truncated before Content-Length currently fails the whole /verify. Retry the image fetch up to 3 times on transport errors and 5xx responses; 4xx and local errors still fail immediately. download_timeout still bounds the whole download.

This carries over the retry half of #1205; its single-flight half is already on next (e300871). A truncated archive was never cached — the manifest check rejects it — so this only affects availability.

A dropped connection or a body truncated before Content-Length failed
the whole /verify, even though the next attempt would usually succeed.
Retry the fetch up to three times on transport errors and 5xx
responses; 4xx and local errors still fail immediately. The existing
download_timeout still bounds the whole download.

Carries over the retry half of #1205; the single-flight half is already
on next as e300871.
@kvinwang
kvinwang merged commit d271098 into next Sep 24, 2026
11 checks passed
@kvinwang
kvinwang deleted the fix/verifier-image-download-retry branch September 24, 2026 16:11
kvinwang added a commit that referenced this pull request Sep 25, 2026
The verifier now retries a transient image download failure (#1388), so a
two-second download timeout expires before the download error is reported.
Give the one-shot rows enough time to observe the retries, and assert that
a refused connection is retried, a 404 is not, and a 503 recovers.

Also assert the in-process manifest digest check on a tampered archive
(#1251, #1337) and that the removed debug request field is ignored and the
debug response fields are gone (#1332).

Signed-off-by: Kevin Wang <wy721@qq.com>
kvinwang added a commit that referenced this pull request Sep 25, 2026
…retries

The one-second outage row now expires on the download timeout before the
retried download reports its error (#1388); give it room to finish.
Assert that attestation.allowed_collateral_hosts (#1404) is an accepted
list-valued configuration key.

Signed-off-by: Kevin Wang <wy721@qq.com>
kvinwang added a commit that referenced this pull request Sep 25, 2026
…bounds

#1251 renamed the manifest confinement test the image-download case ran by
name. Run its replacement plus the tests that pin the sha256sum grammar,
the end-to-end image binding (#1337) and the truncated-download retry
(#1388), and extend the measurement cache case with shape-only keying
(#1334) and the bounded cache directory (#1369).

Signed-off-by: Kevin Wang <wy721@qq.com>
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.

1 participant