NOTE: The most recent version is published to:
Proposal: Decoupling Registries from Specific Artifact Specs #91
When the distribution-spec and image-spec were created, they were uniquely focused on the container image workflows, which made sense at the time. Some generalization was built in, and it's gotten various implementations to a great steady-state. However, these are now at a point of success, where we need to consider how these efforts move forward.
This proposal brings forward a recognition that:
Container images, registries and many of these new artifact types are still in the early phases of adoption. Virtual Machines, the predecessor to virtualized environments became standardized around 2000. 21 years later, adoption continues to grow, as containers mostly sit atop a virtualized VM. The usage of registries and images today are still small to the usage of tomorrow. The sooner we enable specs to evolve independently, the more innovation and usage will be enabled.
As cloud native development has proceeded, users were storing additional content in container registries. They just made them look like container images by using the same oci image mediaTypes. While Container Images and Registries are looking to evolve independently, the problem is further exacerbated as other artifact types are also looking for how they can innovate independently, and benefit from new registry capabilities, like signing and establishing references.
The OCI Artifacts effort formalized the approach for identifying unique types within registries, leveraging the investments cloud providers, vendors and oss projects have provided. Between OCI Artifacts and ORAS, many new artifact types were enabled as they didn't have to create Yet Another Storage Service (YASS) and ORAS (OCI Registry As Storage) provided a set of libraries to get artifact authors started without having to learn details of the distribution-spec or image-spec. They followed Artifact Authors guidance for how to uniquely identify their type and they had support from nearly all registry products, services and products. This evolution happened relatively quickly, as the change to registry products was matched with the benefit to their users.
The OCI Artifacts project was created outside of image-spec and distribution-spec as a recognition that distribution was a generic storage services, and oci images were specific artifact types. However, the project stopped short of defining a new manifest or added any elements to the spec as maintainers were concerned about commitments to versioned specs, as most of the changes were to be added to the image-spec as the definition for how to store content in a registry. The change was limited to registry implementations opening up their manifest.config.mediaType
validation.
There are a set of folks brainstorming around OCI Image v2. Many of these use-cases will require changes to the image-spec. Some will require to the distribution-spec. Most of the changes will have backwards compat issues for container image tool chains which will need a release valve to enable upgradeability, without breaking downlevel tool chains.
There will continue to be interdependency between various specs. While it's recognized that there will be some big changes needed, I would propose we structure the changes to be aligned with their value. Meaning, we introduce capabilities that enable new efforts, with opt-in behavior. For example, we know images need to be signed. Can we introduce that capability as an added opt-in feature that has zero impact to the current container tool chains and runtimes?
To achieve the above goals, I'd propose:
Based on the currently known requirements, changes to any registry conforming to the distribution-spec will need to change. OCI Artifacts was only created to decouple changes to the existing specs, basically avoiding this refactoring. Now that we've validated a refactoring is required, I'd propose OCI Artifacts and the distribution-spec merge.
How they merge can be an evolved process. The current oci.artifact.manifest proposal defines a new manifest and a new references api. There's an even more generic object spec PR taking shape that attempts to solve the broader artifact versioning problem, including the challenges faced by the OCI Image v2 working group.
Considering distribution is on the cusp of a V1, I'd propose the distribution group works under OCI Artifacts repo until the proposal is declared stable enough by the OCI Artifacts, Distribution-spec, image-spec and OCI TOB maintainers and members. All efforts under the OCI Artifacts repo will be done with the full expectation of merger.
Alternatively we can just merge them after distribution-spec declares V1, and innovate under the distribution-spec repo, with a draft-v2 label.
The various projects need active maintainers. To that end, I'd also suggest the various projects need some charters to enable this decoupling in a stable way.