Open FeynmanZhou opened 1 week ago
Hi, I noticed this github-issue and speaks of oras manifest create
command, but I can't see oras manifest create
...
~ % oras manifest --help
Manifest operations
Usage:
oras manifest [command]
Available Commands:
delete Delete a manifest from remote registry
fetch Fetch manifest of the target artifact
fetch-config Fetch the config of a manifest from a registry or an OCI image layout
push Push a manifest to a registry or an OCI image layout
can you kindly direct me to where I can read more about it, please?
What is the version of your ORAS CLI
v1.2.0
What would you like to be added?
Extend the ORAS annotating capabilities to support:
oras manifest create/update --annotation
oras attach --annotation "key=value" --platform all
Attach an annotation as a referrer to an existing multi-arch image and its child arch-specific image manifest (without mutating its digest) in one shot. The same annotation is supposed to be added to the parent image index and its child arch-specific image manifest recursively:
View attached annotations of the multi-arch image (index) and its child image manifest:
The expected result will be:
Why is this needed for ORAS?
Scenario: A security engineer Cindy needs to use image lifecycle annotations to mark when the vulnerable image should be considered end of life (EoL) and no longer used by dependent services.
However, as there are multi-arch images and separate arch-specific images maintained by service teams, it is cumbersome that Cindy can only apply annotations manually to each arch-specific image. Image consumers only reference the multi-arch image by a tag for deployment. The EoL annotation is not available on the multi-arch image (index), which makes the multi-arch image (index) unverifiable.
Are you willing to submit PRs to contribute to this feature?