OCI Image Indexes and Artifact References Explained

Updated on
11 min read

Container images are no longer only a set of filesystem layers pushed under a tag. A release may need to serve multiple CPU architectures and carry evidence such as signatures, SBOMs, and build attestations. OCI image indexes and artifact references provide the content-addressed structure for doing that. This guide explains the manifests, descriptors, registry APIs, and practical workflows behind them.

What Are OCI Image Indexes and Artifact References?

The Open Container Initiative (OCI) maintains open standards for container images, runtimes, and distribution. The OCI Image Specification defines the JSON documents and content-addressed objects that describe an image. The image index specification defines a higher-level manifest that points to one or more platform-specific image manifests.

An image manifest describes one runnable image for a particular operating system and architecture. It points to a configuration object and an ordered set of filesystem layer blobs. An image index is a selection layer above those manifests. It can list an amd64 Linux manifest, an arm64 Linux manifest, and a Windows manifest under one image reference. A client chooses the matching child manifest instead of downloading every platform’s layers.

An artifact reference is a relationship from one manifest to another. A signature, SBOM, provenance statement, or vulnerability report can be stored as an OCI artifact whose subject descriptor points to the image manifest or image index it describes. The registry’s referrers API can then discover those related objects by the subject digest.

These are related but separate mechanisms:

  • The image index selects which runnable image a client should use.
  • A manifest describes the config and layers for one image or artifact.
  • A descriptor identifies content by media type, size, and digest.
  • A subject relationship says that one manifest is associated with another.
  • The registry distribution API stores and discovers the objects.

Why OCI Image Indexes and References Exist

The original single-platform image flow assumes that one manifest is enough for every consumer. That breaks down when an application needs native binaries for different CPUs or operating-system features. Separate tags such as app-amd64 and app-arm64 force deployment systems to encode platform selection and make a logical release harder to identify.

An index lets a release keep one human-readable name while retaining separate content-addressed manifests underneath. A compatible client advertises or knows its platform, selects the matching entry, and pulls only that manifest’s config and layers. The result is a convenient reference without giving up immutable digests.

Supply-chain evidence creates another relationship problem. A signature, SBOM, or provenance statement is metadata for policy engines, not a filesystem layer that should be mounted into a container. Treating every supporting object as an image layer would mix execution data with metadata and make discovery awkward.

Artifact references keep those concerns separate. The attached object has its own media type and digest, while its subject identifies the image it describes. A policy engine can ask the registry for referrers to a digest, inspect the returned artifact types, and decide whether the evidence is sufficient before deployment.

The relationship is intentionally not a cryptographic claim that the artifact is trustworthy. The subject points to a digest, but a verifier still needs to validate the signature, signer identity, predicate contents, or policy. The association improves discoverability; it does not replace verification.

How the OCI Model Works

OCI builds a graph of content-addressed objects. A digest identifies the bytes of a blob or manifest. A descriptor is the typed edge in that graph: it records a media type, byte size, and digest, with optional annotations and platform information. A manifest contains descriptors for the objects it uses.

The normal multi-platform flow looks like this:

image tag or digest
        |
        v
OCI image index
   |             |
   v             v
linux/amd64   linux/arm64
image manifest image manifest
   |             |
 config +      config +
 layers        layers

image manifest digest
        |
        v
referrers API
  |       |        |
  v       v        v
signature SBOM  provenance

The index has a manifests array. Each entry is a descriptor for a child manifest and can include a platform object with fields such as os, architecture, variant, and operating-system features. If several entries match, the client uses the first matching entry according to the specification and its own selection behavior. An index can also contain nested indexes, although portable indexes should prefer the standard image manifest and index media types.

The OCI image manifest specification also permits a manifest to carry artifactType and subject. For a normal runnable image, config uses the OCI image configuration media type and layers describes the filesystem. For another kind of artifact, artifactType identifies what the manifest represents, while an empty or artifact-specific config and layer arrangement can carry its content.

The OCI Distribution Specification defines how registries expose these objects. Clients retrieve a manifest by tag or digest, retrieve blobs by digest, and can query referrers for a subject. The referrers response is itself an index-like manifest list, so clients can paginate or filter the discovered objects according to the registry API and media types they support.

Object Main purpose Typical contents Selected by or discovered through
Image manifest Describe one runnable image or artifact Config descriptor, ordered layers, annotations Runtime or artifact client
Image index Group platform-specific manifests under one reference Manifest descriptors with platform metadata Client platform selection
Descriptor Identify referenced content Media type, size, digest, optional annotations Parent manifest
Artifact manifest Carry non-runtime evidence or content Artifact type, config/layers, subject Referrers query and policy tooling
Subject relationship Associate an artifact with a target digest Descriptor of the target manifest Registry referrers API

The distribution specification uses normative terms such as MUST and SHOULD. Those terms have a defined interpretation in RFC 2119, which matters when distinguishing required registry behavior from a recommendation that leaves room for implementation choices.

Components and Key Concepts

Tags and digests

A tag is a mutable, human-friendly pointer. A digest is a content-derived identifier for a specific manifest or blob. A release pipeline can publish an index under app:stable, then record the index digest for deployment. Artifact references should target the digest of the image manifest or index, not a tag that may later move.

Image manifests and layers

The child manifest is what a runtime eventually needs. Its config describes image metadata such as the root filesystem diff IDs and startup configuration, while its layers describe filesystem changes. The manifest’s digest changes if its config, layer list, or relevant JSON changes, so evidence attached to that digest is bound to the exact graph the producer identified.

Platform descriptors

Platform fields are selection hints, not a complete hardware compatibility proof. A manifest may require a particular CPU variant, Windows version, or OS feature. A client still needs to check runtime compatibility, and a platform with no matching entry should fail clearly or use an explicitly configured fallback rather than silently selecting an incompatible image.

Artifact types and media types

artifactType describes what a non-image manifest represents, while descriptor and config media types describe the format of referenced content. A signature, SBOM, and provenance statement should not be identified only by a filename or tag. Consumers should inspect media types and parse the payload according to the relevant artifact specification.

Subjects and referrers

An artifact manifest’s subject contains the target’s media type, size, and digest. The registry can use that digest to answer “which manifests refer to this object?” A client can then filter the result for a signature or SBOM type. Subject links are weak associations in the OCI model: the target must still be verified, and the artifact’s own content must be checked.

Legacy fallback behavior

Not every registry or client exposes the referrers API in the same way. The distribution specification describes compatibility behavior for registries that do not provide the API, including a tag-based fallback pattern used by some tooling. A production workflow should test its registry, client, garbage collector, proxy, and replication path rather than assuming that publishing an OCI artifact guarantees discovery everywhere.

Real-World Uses

Multi-platform releases use one index so a deployment can reference registry.example.com/payments:release while Linux amd64, Linux arm64, and other supported variants remain separate child manifests. Build systems can produce those variants in parallel and publish them as one logical release.

Image signatures use an artifact manifest whose subject points at the image digest. A deployment admission check can discover the signature, verify the signature and signer identity, and reject an image that lacks the required evidence.

SBOMs and provenance can be attached without placing reports in the runtime filesystem. A security platform can retrieve the SBOM for the exact image digest and compare its packages or provenance claims with policy.

Cache and lazy-loading systems can attach indexes or metadata used by specialized runtimes. This is separate from the platform image index: both are content addressed, but their artifact types and consumers differ. See container image lazy loading and remote snapshotters for the runtime-side trade-offs.

Registry migration and replication benefit from descriptors and digests because a copy process can identify objects, avoid duplicate blobs, and verify received bytes. It must still preserve subjects, annotations, and media types.

Getting Started with a Multi-Platform Image

This Docker Buildx example publishes an index containing the requested platforms. Replace the registry path with a repository where the builder has push access:

IMAGE="registry.example.com/team/payments:1.0"

docker buildx build \
  --platform linux/amd64,linux/arm64 \
  --tag "$IMAGE" \
  --push .

docker buildx imagetools inspect "$IMAGE"

The inspect output should show an index and a manifest entry for each requested platform. For a deployment, resolve the release to a digest and record that immutable reference:

docker buildx imagetools inspect "$IMAGE" --format '{{json .Manifest}}'
# Deploy the digest printed by your registry or release tooling:
docker pull "${IMAGE%@*}@sha256:<index-digest>"

Do not treat a successful push as proof that every client can select every platform. Test pulls on representative hosts, including the CPU variant and operating-system version that production uses. Confirm that the registry preserves the index media type and child manifests when a proxy or replication service is involved.

Getting Started with Artifact References

An OCI-aware artifact tool can attach an SBOM, signature, or provenance document to an image digest. The exact flags depend on the tool and artifact format; this example uses ORAS-style commands and explicit media types:

IMAGE="registry.example.com/team/payments@sha256:<index-digest>"

oras attach \
  --artifact-type application/spdx+json \
  "$IMAGE" \
  sbom.spdx.json:application/spdx+json

oras discover \
  --artifact-type application/spdx+json \
  "$IMAGE"

Before using this in production, verify the tool’s current syntax and whether the registry supports the OCI referrers API or its compatibility fallback. Then test the complete lifecycle:

  1. Push the image index and record its digest.
  2. Attach the artifact to the intended image manifest or index digest.
  3. Discover referrers from a clean client, then validate the artifact’s digest and schema.
  4. Apply policy for missing evidence and confirm retention keeps the subject and referrers available.

Use the Cosign image signing and verification guide when the artifact is a signature or signed attestation. A valid relationship alone does not establish that the signer is trusted, that the SBOM is complete, or that the provenance meets the build policy.

Common Misconceptions

“An image index contains all the image layers.”

The index contains descriptors for child manifests. Each child manifest points to its own config and layers. A client normally pulls only the child matching its platform, although nested indexes and client behavior can affect the exact requests.

“An artifact reference is a signature.”

It is only a typed relationship between manifests. A signature artifact must still be cryptographically verified, and the verifier must enforce the expected identity, issuer, or key. An unsigned SBOM can be useful data, but its association with an image does not prove who produced it.

“A tag is enough to attach supply-chain evidence.”

Tags can move. Attach and verify evidence against a digest, then deploy the same digest that passed policy. If a pipeline resolves a tag at different times, it may sign or inspect one image and deploy another.

“Every OCI-compatible registry supports referrers equally.”

OCI compatibility covers a specification surface, not every optional feature, version, proxy, or garbage-collection policy. Check the registry’s distribution conformance, referrers behavior, media-type handling, and replication support with the exact clients used by the pipeline.

OCI image indexes solve platform selection, while artifact references solve discoverable metadata around a content-addressed target. Together they let a registry carry a release’s runnable variants and its supporting evidence without confusing execution layers with security or supply-chain data. Reliable deployments still depend on digest pinning, explicit verification policy, and end-to-end testing of the registry path.

Changelog

  • Initial publication.
TBO Editorial

About the Author

TBO Editorial writes about the latest updates about products and services related to Technology, Business, Finance & Lifestyle. Do get in touch if you want to share any useful article with our community.