pull-oci: verify redirected manifest digest

An OCI index redirect already carries the digest of the selected
manifest. Store it in the expected checksum field so pull-job
verifies the downloaded manifest instead of overwriting the digest
with the computed checksum before comparison.

Follow-up for a9f6ba0496
This commit is contained in:
Luca Boccassi
2026-07-11 17:07:52 +01:00
parent 4309f68236
commit ad0996191d
+1 -1
View File
@@ -366,7 +366,7 @@ static int oci_pull_redirect_manifest(OciPull *i, const OciIndexEntry *entry) {
j->on_finished = oci_pull_job_on_finished_manifest;
j->calc_checksum = true;
if (!iovec_memdup(&entry->digest, &j->checksum))
if (!iovec_memdup(&entry->digest, &j->expected_checksum))
return -ENOMEM;
j->description = strjoin("Image Manifest (", url, ")");