You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cosign verify --key gl-cosign.pub registry.gitlab.com/gitlab-org/build/cng/gitlab-workhorse-ee:v19.3.0
Verification for registry.gitlab.com/gitlab-org/build/cng/gitlab-workhorse-ee:v19.3.0 --
The following checks were performed on each of these signatures:
- The cosign claims were validated
- Existence of the claims in the transparency log was verified offline
- The signatures were verified against the specified public key
[{"critical":{"identity":{"docker-reference":"dev.gitlab.org:5005/gitlab/charts/components/images/gitlab-workhorse-ee"},"image":{"docker-manifest-digest":"sha256:11e4068791cb99f2871ddbbeb5b3c213814a7cba4299d33acc5d31b1171064cb"},"type":"cosign container image signature"},"optional":{"Bundle":{"SignedEntryTimestamp":"MEQCIBjkFsVa/sRosvWQD9bhS158cV2Wf+zslSyd1FSUVWk9AiAKoyWfa5yIi6TicqHQZCfW2oB6bIr92b7oXrh2CT2KXQ==","Payload":{"body":"eyJhcGlWZXJzaW9uIjoiMC4wLjEiLCJraW5kIjoiaGFzaGVkcmVrb3JkIiwic3BlYyI6eyJkYXRhIjp7Imhhc2giOnsiYWxnb3JpdGhtIjoic2hhMjU2IiwidmFsdWUiOiJjZmM2MjQ5ODExMGE2MjI4NDE3NjBmOGRiOThlYTU5NDVlMTE1ZDA5NDIzYTk2Yjg3ZWIyYTVmMmNmOGViYzg3In19LCJzaWduYXR1cmUiOnsiY29udGVudCI6Ik1FUUNJQklSTFlPRUxQYWlnQTJKZ1ZDcWxJSGZJSWFFay9BcW8rQVhnMXVRU25hY0FpQkVvcE0zTTVRYW52aE9GbElaK2lOK09wc3ExMjdoaEM2dG9XVDMzMmg0MkE9PSIsInB1YmxpY0tleSI6eyJjb250ZW50IjoiTFMwdExTMUNSVWRKVGlCUVZVSk1TVU1nUzBWWkxTMHRMUzBLVFVacmQwVjNXVWhMYjFwSmVtb3dRMEZSV1VsTGIxcEplbW93UkVGUlkwUlJaMEZGYnpGQk5tbEZjbXhrSzFoRU5WSTBiVXRNU1VGNU4wVXhOMlV3WXdwV1VWSldlVEpoTmpoSlRESklSaXRXV1VKeWFqRkpjbHAyT0ZsdU5UUTVaU3RUUVRVeVpVZHZLMEpIU1RWSWJVeGxVbXR2Wm5Ob1MxaG5QVDBLTFMwdExTMUZUa1FnVUZWQ1RFbERJRXRGV1MwdExTMHRDZz09In19fX0=","integratedTime":1787193859,"logIndex":2524733429,"logID":"c0d23d6ad406973f9559f3ba2d1ca01f84147d8ffc5b8445c224f98b9591801d"}}}}]
Thanks for the detailed logs — they made this one reproducible. There are two separate things going on here.
1. The MANIFEST_UNKNOWN failure is a real bug
GitLab's registry does not implement the Referrers API, so ORAS falls back to the referrers tag schema and requests sha256-<hex>. GitLab resolves that reference as if it were the digest sha256:<hex>, returning the image itself:
oras-go does not validate that response, so your image index's own child manifests come back as its "referrers". You can see it without copying anything:
With those bogus referrers in play, the extended copy walks the graph from the two child manifests instead of the index, so the index is never pushed — and the final tagging step fetches it from the destination, which is the 404 at the end of your cp-r_1.txt. That also explains why the second cp -r succeeded: your plain oras cp had already pushed the index.
Filed upstream as oras-project/oras-go#1396, since the fix belongs in the referrers tag schema fallback. Confirmed on both oras-go v3 main and v2.6.2.
Workaround until it lands: the plain oras cp you already ran copies the image correctly.
2. The missing signature is expected, and unrelated
Cosign stores that signature as a tag, not as an OCI referrer:
Note the .sig suffix — that is cosign's own tag convention, and it is not discoverable through the Referrers API or the referrers tag schema. oras cp -r follows referrers, so it will never pick up cosign's tag-based signatures, on GitLab or anywhere else. Fixing #1396 will stop cp -r from failing, but it still will not bring the signature across.
To copy the signature, either use cosign copy, or copy the signature tag explicitly:
(The cosign copy deprecation notice pointing at oras cp -r is misleading for tag-based signatures — that suggestion only holds for signatures attached as OCI referrers.)
Some additional context for maintainers: this is the second time this exact failure shape has surfaced, and part of why it was hard to diagnose is that the error message points at the wrong side.
#1728 ("Recursively copying a multi-platform image might fail when the index manifest has no referrer") failed with the same MANIFEST_UNKNOWN at the tagging step, via the same mechanism. The analysis in that issue applies verbatim here: referrers get injected as predecessors of the index, findRoots scans upward, the index is not among the roots, and so the index itself is never copied.
cp -r fails with 'MANIFEST_UNKNOWN' #2148 — the root index appears to have referrers, so we take the other branch (cmd/oras/root/cp.go:348), which assumes the reported predecessors are genuine. Here they are actually the index's own successors, so the root is stranded again.
That suggests the durable fix is not only validating the referrers response upstream (oras-project/oras-go#1396), but also making recursiveCopy guarantee the root is present in the destination before tagging it — a property that has now been violated twice by two unrelated causes. A oras.CopyGraph(ctx, src, dst, root, opts.CopyGraphOptions) before the dst.Tag at cmd/oras/root/cp.go:279 is close to free when the root is already there, and makes the command robust regardless of what FindPredecessors returns.
The error message attributes a destination failure to the source
Compare the two reports. #1728, on ORAS 1.3.0-beta.3:
Error response from registry: failed to perform "Tag" on destination: sha256:1c955…: application/vnd.oci.image.index.v1+json: not found
This issue, on ORAS 1.3.4:
Error response from registry: sha256:11e4068…: not found
Same failure, but on destination is gone. The 404 in cp-r_1.txt is GET http://localhost:5000/v2/gitlab-workhorse-ee/manifests/sha256:11e4068… — the local registry — yet the message gives no hint of that, which is a good part of why this reads as "the GitLab source is serving an unknown manifest."
Two contributing spots:
dst.Tag(ctx, root, dstRef) at cmd/oras/root/cp.go:279 is a bare call outside any copy operation, so its error never becomes an *oras.CopyError. BinaryTarget.ModifyError (cmd/oras/internal/option/binary_target.go:72-95) has a good path for copy errors — it reads copyErr.Origin and prefixes Error from destination registry for "…": — but that path needs a CopyError, so this error falls through to the generic handler.
The generic handler then hands it to the wrong target. Target.ModifyError (cmd/oras/internal/option/target.go:251-255):
iferrors.Is(err, errdef.ErrNotFound) {
// special handling for not found error returned by registry targetcmd.SetErrPrefix(oerrors.RegistryErrorPrefix)
returntrue, err
}
There is no host check here, unlike the errcode.ErrorResponse branch just below it (target.go:262-275), which compares errResp.URL.Host against the target's host before claiming the error. And binary_target.go:98-101 tries target.From first. So on any oras cp between two remote targets, a destination ErrNotFound is claimed by the source and printed with a generic, host-less prefix.
This looks like leftover surface from #1469 / #1773 — the CopyError-aware prefixing added there is a real improvement, it just does not cover errors raised outside a copy operation.
Happy to split the error-attribution part into its own issue if you would rather track it separately from the copy bug.
The missing cosign signature remains expected behavior, for the reason in my first comment: it is stored as a .sig tag, not as an OCI referrer, so -r will not copy it even once #1396 lands.
Activity
megaprutser commentedon Aug 31, 2026
Ps. The image does have a signature
https://docs.gitlab.com/charts/installation/verify_cng_images/
TerryHowe commentedon Sep 5, 2026
Thanks for the detailed logs — they made this one reproducible. There are two separate things going on here.
1. The
MANIFEST_UNKNOWNfailure is a real bugGitLab's registry does not implement the Referrers API, so ORAS falls back to the referrers tag schema and requests
sha256-<hex>. GitLab resolves that reference as if it were the digestsha256:<hex>, returning the image itself:oras-godoes not validate that response, so your image index's own child manifests come back as its "referrers". You can see it without copying anything:With those bogus referrers in play, the extended copy walks the graph from the two child manifests instead of the index, so the index is never pushed — and the final tagging step fetches it from the destination, which is the 404 at the end of your
cp-r_1.txt. That also explains why the secondcp -rsucceeded: your plainoras cphad already pushed the index.Filed upstream as oras-project/oras-go#1396, since the fix belongs in the referrers tag schema fallback. Confirmed on both oras-go v3
mainand v2.6.2.Workaround until it lands: the plain
oras cpyou already ran copies the image correctly.2. The missing signature is expected, and unrelated
Cosign stores that signature as a tag, not as an OCI referrer:
Note the
.sigsuffix — that is cosign's own tag convention, and it is not discoverable through the Referrers API or the referrers tag schema.oras cp -rfollows referrers, so it will never pick up cosign's tag-based signatures, on GitLab or anywhere else. Fixing #1396 will stopcp -rfrom failing, but it still will not bring the signature across.To copy the signature, either use
cosign copy, or copy the signature tag explicitly:(The
cosign copydeprecation notice pointing atoras cp -ris misleading for tag-based signatures — that suggestion only holds for signatures attached as OCI referrers.)TerryHowe commentedon Sep 5, 2026
Some additional context for maintainers: this is the second time this exact failure shape has surfaced, and part of why it was hard to diagnose is that the error message points at the wrong side.
This is the same failure mode as #1728
#1728 ("Recursively copying a multi-platform image might fail when the index manifest has no referrer") failed with the same
MANIFEST_UNKNOWNat the tagging step, via the same mechanism. The analysis in that issue applies verbatim here: referrers get injected as predecessors of the index,findRootsscans upward, the index is not among the roots, and so the index itself is never copied.The two are mirror images:
index.Manifests[0], which is the branch atcmd/oras/root/cp.go:332.cmd/oras/root/cp.go:348), which assumes the reported predecessors are genuine. Here they are actually the index's own successors, so the root is stranded again.That suggests the durable fix is not only validating the referrers response upstream (oras-project/oras-go#1396), but also making
recursiveCopyguarantee the root is present in the destination before tagging it — a property that has now been violated twice by two unrelated causes. Aoras.CopyGraph(ctx, src, dst, root, opts.CopyGraphOptions)before thedst.Tagatcmd/oras/root/cp.go:279is close to free when the root is already there, and makes the command robust regardless of whatFindPredecessorsreturns.The error message attributes a destination failure to the source
Compare the two reports. #1728, on ORAS 1.3.0-beta.3:
This issue, on ORAS 1.3.4:
Same failure, but
on destinationis gone. The 404 incp-r_1.txtisGET http://localhost:5000/v2/gitlab-workhorse-ee/manifests/sha256:11e4068…— the local registry — yet the message gives no hint of that, which is a good part of why this reads as "the GitLab source is serving an unknown manifest."Two contributing spots:
dst.Tag(ctx, root, dstRef)atcmd/oras/root/cp.go:279is a bare call outside any copy operation, so its error never becomes an*oras.CopyError.BinaryTarget.ModifyError(cmd/oras/internal/option/binary_target.go:72-95) has a good path for copy errors — it readscopyErr.Originand prefixesError from destination registry for "…":— but that path needs aCopyError, so this error falls through to the generic handler.The generic handler then hands it to the wrong target.
Target.ModifyError(cmd/oras/internal/option/target.go:251-255):There is no host check here, unlike the
errcode.ErrorResponsebranch just below it (target.go:262-275), which compareserrResp.URL.Hostagainst the target's host before claiming the error. Andbinary_target.go:98-101triestarget.Fromfirst. So on anyoras cpbetween two remote targets, a destinationErrNotFoundis claimed by the source and printed with a generic, host-less prefix.This looks like leftover surface from #1469 / #1773 — the
CopyError-aware prefixing added there is a real improvement, it just does not cover errors raised outside a copy operation.Happy to split the error-attribution part into its own issue if you would rather track it separately from the copy bug.
TerryHowe commentedon Sep 5, 2026
Split the error-attribution half of my previous comment into #2156, so this issue can stay focused on the copy bug.
To summarize where the three threads now live:
cp -rstrands the root index and fails at the tagging step. Same failure mode as Resursively copying a multi-plarform image might fail when the index manifest has no referrer #1728.not foundbeing reported as if it came from the source, which is why this was hard to diagnose. Independent of the other two.The missing cosign signature remains expected behavior, for the reason in my first comment: it is stored as a
.sigtag, not as an OCI referrer, so-rwill not copy it even once #1396 lands.