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
Try to attach an sbom artifact to an image using regctl
regctl -v debug artifact put --artifact-type application/spdx+json --subject 127.0.0.1:8080/foo/my/image:version < my-sbom.json
(...)
failed to put manifest 127.0.0.1:8080/foo/stackhpc-dev/openstack-base:sha256-b3b40066e24ae156719f0b2dfc287d15046f59bf6980f49b53956e990cf395bc: request failed: unexpected http status code: Bad Request [http 400]: {"errors":[{"code":"MANIFEST_INVALID","message":"manifests.0: 'platform' is a required property","detail":{"digest":"sha256:d801183c2a1add8a81f0ef177d03e11062e337481719811fd27694f8d8313f8a"}}]}
Expected behavior
Once the property is made option in the json schema, pulp_container accepts the manifest index without issue.
I can then do
I'm trying to add SBOM artifacts from a trivy scan to images in a pulp_container registry.
I've first hit #2199 then this issue.
With both fixed I think my use case would work fine.
Version
pulpcore: 3.73.25
pulpcontainer: 2.25.1
docker image
docker.io/pulp/pulp:3.73.25Describe the bug
The OCI spec marks it as OPTIONAL
To Reproduce
patch registry_api.py for blob partial_upload to return 202 instead of 204 (blob chunk upload should return 202 not 204 #2199)
Try to attach an sbom artifact to an image using regctl
Expected behavior
Once the property is made option in the json schema, pulp_container accepts the manifest index without issue.
I can then do
Additional context
I'm trying to add SBOM artifacts from a trivy scan to images in a pulp_container registry.
I've first hit #2199 then this issue.
With both fixed I think my use case would work fine.