The goal of the Artifact Manifest Specification is to define content addressable artifacts in order to store them along side container images in a registry. Like OCI Images, OCI Artifacts may be referenced by the hash of their manifest. Unlike OCI Images, OCI Artifacts are not meant to be used by any container runtime.
Examples of artifacts that may be stored along with container images are Software Bill of Materials (SBOM), Digital Signatures, Provenance data, Supply Chain Attestations, scan results, and Helm charts.
This section defines the application/vnd.oci.artifact.manifest.v1+json
media type.
For the media type(s) that this is compatible with see the matrix.
-
mediaType
stringThis property MUST be used and contain the media type
application/vnd.oci.artifact.manifest.v1+json
. -
artifactType
stringThis property SHOULD be used and contain the mediaType of the referenced artifact. If defined, the value MUST comply with RFC 6838, including the naming requirements in its section 4.2, and MAY be registered with IANA.
-
blobs
array of objectsThis OPTIONAL property is an array of objects and each item in the array MUST be a descriptor. Each descriptor represents an artifact of any IANA mediaType. The list MAY be ordered for certain artifact types like scan results.
-
subject
descriptorThis OPTIONAL property specifies a descriptor of another manifest. This value, used by the
referrers
API, indicates a relationship to the specified manifest. -
annotations
string-string mapThis OPTIONAL property contains additional metadata for the artifact manifest. This OPTIONAL property MUST use the annotation rules.
See Pre-Defined Annotation Keys.
Annotations MAY be used to filter the response from the
referrers
API.
Example showing an artifact manifest for an example SBOM referencing an image:
{
"mediaType": "application/vnd.oci.artifact.manifest.v1+json",
"artifactType": "application/vnd.example.sbom.v1",
"blobs": [
{
"mediaType": "application/gzip",
"size": 123,
"digest": "sha256:87923725d74f4bfb94c9e86d64170f7521aad8221a5de834851470ca142da630"
}
],
"subject": {
"mediaType": "application/vnd.oci.image.manifest.v1+json",
"size": 1234,
"digest": "sha256:cc06a2839488b8bd2a2b99dcdc03d5cfd818eed72ad08ef3cc197aac64c0d0a0"
},
"annotations": {
"org.opencontainers.artifact.created": "2022-01-01T14:42:55Z",
"org.example.sbom.format": "json"
}
}