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
{{ message }}
Repository navigation
Support showing referrers of each platform-specific image and multi-platform image (image index) #1741
For a multi-platform image implemented as an image index, each platform-specific image may have its own referrers, such as signatures, EoL annotations, etc. Currently, oras discover only lists the referrers of the image index (the parent node of the multi-platform image).
I would expect oras discover to list the referrers of both the image index and each platform-specific image it references.
Why is this needed for ORAS?
ORAS supported multi-platform image management scenario as articulated in this proposal doc. Showing referrers of the sub-manifests should be a part of the whole multi-platform image management experience. It provides a holistic management experience.
Are you willing to submit PRs to contribute to this feature?
changed the title [-]Support showing referrers of the sub-manifests of a multi-platform image (image index)[/-][+]Support showing referrers of each platform-specific image and multi-platform image (image index)[/+]on May 20, 2025
@FeynmanZhou We need UX design for mainly two parts:
json view, this should be easy as we only need to add an extra embedded manifests field to the json output.
tree view, this needs more thinking. How do we separate the referrers of the index and the children manifests? Do we put the children manifests before or after the referrers?
A good test image for this feature: mcr.microsoft.com/oss/kubernetes/kubectl:v1.29.1
This is a manifest list which has its own referrers, and each child manifest has its own referrers.
tree view, this needs more thinking. How do we separate the referrers of the index and the children manifests? Do we put the children manifests before or after the referrers?
Just brainstorming, how about separating the referrers of the index itself and the referrers of the children manifests into separate trees? Something like:
[Index]
referrers tree for index
[linux/amd64]
referrers tree for the linux/amd64 child manifest
[windows/amd64]
referrers tree for the windows/amd64 child manifest
Taking mcr.microsoft.com/oss/kubernetes/kubectl:v1.29.1 as an example:
Thanks @Wwwsylvia@wangxiaoxuan273 for the proposals above. I think separating the referrers of the index itself and the referrers of the child manifests into different trees looks much neat. It's much easier to distinguish between the reference relations between the parent index and each individual chile node.
There is a special case - the child manifest of an image index may have empty or unknown platform properties, such as an in-toto attestation manifest within this sample image index ghcr.io/oras-project/oras:v1.2.3. How will the tree view looks like?
Another special case was asked by @shizhMSFT that we may also want to consider, i.e. when an image index has a nested image index. It would be good if @shizhMSFT could give an example index of this edge case.
There is a special case - the child manifest of an image index may have empty or unknown platform properties, such as an in-toto attestation manifest within this sample image index ghcr.io/oras-project/oras:v1.2.3. How will the tree view looks like?
How about using the manifest’s order number as the label, with optional platform info?
[Index]
referrers tree for index
[manifest-0 (linux/amd64)]
referrers tree for the manifest-0
[manifest-1 (platform unknown)]
referrers tree for the manifest-1
when an image index has a nested image index.
As for nested image indexes, maybe we keep it simple and only show one level of successors. That is, if a child manifest is an index, we don’t expand it.
tree view, this needs more thinking. How do we separate the referrers of the index and the children manifests? Do we put the children manifests before or after the referrers?
Just brainstorming, how about separating the referrers of the index itself and the referrers of the children manifests into separate trees? Something like:
[Index]
referrers tree for index
[linux/amd64]
referrers tree for the linux/amd64 child manifest
[windows/amd64]
referrers tree for the windows/amd64 child manifest
Taking mcr.microsoft.com/oss/kubernetes/kubectl:v1.29.1 as an example:
Activity
[-]Support showing referrers of the sub-manifests of a multi-platform image (image index)[/-][+]Support showing referrers of each platform-specific image and multi-platform image (image index)[/+]Wwwsylvia commentedon May 20, 2025
This makes sense. @FeynmanZhou We would need a UX spec for this.
wangxiaoxuan273 commentedon Jun 9, 2025
@FeynmanZhou We need UX design for mainly two parts:
jsonview, this should be easy as we only need to add an extra embeddedmanifestsfield to thejsonoutput.treeview, this needs more thinking. How do we separate the referrers of the index and the children manifests? Do we put the children manifests before or after the referrers?A good test image for this feature:
mcr.microsoft.com/oss/kubernetes/kubectl:v1.29.1This is a manifest list which has its own referrers, and each child manifest has its own referrers.
Wwwsylvia commentedon Jun 10, 2025
Just brainstorming, how about separating the referrers of the index itself and the referrers of the children manifests into separate trees? Something like:
Taking
mcr.microsoft.com/oss/kubernetes/kubectl:v1.29.1as an example:wangxiaoxuan273 commentedon Jun 10, 2025
I prefer putting the referrers and children manifests in one tree, and showing the referrers of the index before the child manifests.
Taking
mcr.microsoft.com/oss/kubernetes/kubectl:v1.29.1as an example:FeynmanZhou commentedon Jun 11, 2025
Thanks @Wwwsylvia @wangxiaoxuan273 for the proposals above. I think separating the referrers of the index itself and the referrers of the child manifests into different trees looks much neat. It's much easier to distinguish between the reference relations between the parent index and each individual chile node.
There is a special case - the child manifest of an image index may have empty or unknown platform properties, such as an in-toto attestation manifest within this sample image index
ghcr.io/oras-project/oras:v1.2.3. How will the tree view looks like?{ "mediaType": "application/vnd.oci.image.manifest.v1+json", "digest": "sha256:0aa23c85d8584054f709a67d8272596fc61a25b9ac52a9d38ea7c4d8ab7bc8ef", "size": 566, "annotations": { "vnd.docker.reference.digest": "sha256:60acaf26092935c452436c865ede9ad8dcd181b6feff961eac8af05311e64ad8", "vnd.docker.reference.type": "attestation-manifest" }, "platform": { "architecture": "unknown", "os": "unknown" } },Another special case was asked by @shizhMSFT that we may also want to consider, i.e. when an image index has a nested image index. It would be good if @shizhMSFT could give an example index of this edge case.
Wwwsylvia commentedon Jun 11, 2025
How about using the manifest’s order number as the label, with optional platform info?
As for nested image indexes, maybe we keep it simple and only show one level of successors. That is, if a child manifest is an index, we don’t expand it.
wangxiaoxuan273 commentedon Jun 11, 2025
Separate trees are very neat, but we also need a clever way to show the relations (parent and child) between the trees.