Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for application/vnd.oci.image.index.v1+json manifests in root OCI layout #1545

Open
saisatishkarra opened this issue Feb 7, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@saisatishkarra
Copy link

What would you like to be added:
Syft expects OCI layout to contain only 1 image of mediaType application/vnd.oci.image.manifest.v1+json and doesn't support mediaType application/vnd.oci.image.index.v1+json when building a single OCI tar ball for multiple architectures

Why is this needed:
This adds an additional layer of complexity to extract the digest of each image manifest for each architecture in the application/vnd.oci.image.index.v1+json (use regctl --platform for extraction) to run the scan

Additional context:
Uploaded a demo_alpine OCI layout (single architecture and image manifest) vs demo_amazonlinux OCI layout (multiple architectures within single manifest of type application/vnd.oci.image.index.v1+json)

Current behavior:

  • works for demo_alpine oci layout with single image manifest

Screen Shot 2023-02-07 at 11 56 26 AM

  • Fails for demo_amazonlinux with error: * failed to construct source from user input "docker-archive-demo-amz-2.tar": could not fetch image "docker-archive-demo-amz-2.tar": unable to use OciTarball source: unable to parse OCI directory as an image: unexpected media type for sha256:1ab94ef8f74d975ce5b3637944358cce8d776259f493c4d857898dbe862c1fb3: application/vnd.oci.image.index.v1+json

Screen Shot 2023-02-07 at 11 57 51 AM

@moos3
Copy link

moos3 commented Mar 6, 2024

Has there been any ideas on this? This becomes important when you start using multi-platform container builds.

@nekketsuuu
Copy link

🔗 I found similar issues #1683 and anchore/stereoscope#175

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Backlog
Development

No branches or pull requests

3 participants