This repository has been archived by the owner on May 15, 2024. It is now read-only.
Proposal: Decoupling Registries from Specific Artifact Specs #91
SteveLasker
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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.
OCI Artifacts Formalize Generic Registry Usage
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.OCI Image v2 Requirements
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.
Interdependency Between Specs
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?
Decouple the Persistance Spec from the Specific Artifact Spec
To achieve the above goals, I'd propose:
Evolve OCI Artifacts, Distribution or Merge
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 OCI Artifacts has shown broad adoption, with new needs surfacing, is it now time to refactor, enabling new capabilities, through revised specs? I'd propose OCI Artifacts, ORAS Artifacts and the distribution-spec merge.
Org and Sub-Project Maintainers
To facilitate independent innovation, I'd also suggest the OCI projects have some charters to enable this decoupling in a stable way.
Note: This document was originally posted April 2021 to Hackmd: Proposal: Decoupling Registries from Specific Artifact Specs
Beta Was this translation helpful? Give feedback.
All reactions