Skip to content
This repository has been archived by the owner on May 15, 2024. It is now read-only.

Finalize oci or cncf.oras mediaTypes #14

Closed
SteveLasker opened this issue Aug 16, 2021 · 4 comments
Closed

Finalize oci or cncf.oras mediaTypes #14

SteveLasker opened this issue Aug 16, 2021 · 4 comments
Assignees

Comments

@SteveLasker
Copy link
Contributor

While OCI finalizes the working group process and decides to enable the Reference Types working group, the OCI and Reference Types working group agreed to run these efforts in parallel. The incubation of the artifacts-spec is being developed under: https://github.com/oras-project/artifacts-spec/

As products and services move forward supporting reference types, they will store user artifacts, which will be supported for an indefinite period of time.

These new artifacts, with reference type support, are persisted with the new artifact.manifest (spec).
The current manifest.mediaType is application/vnd.cncf.oras.artifact.manifest.v1+json to avoid any conflict with OCI branding.

If OCI adopts the reference type working group before a release of the artifacts-spec is made, we can change the mediaType for user content stored. If not, the tooling can simply use the cncf.oras string. Both are Linux Foundation orgs, so in the end, it's just a string end-users have no knowledge about. That said, if we can unify these, we can avoid the different branded mediaTypes, like application/vnd.docker.distribution.manifest.v1+json and application/vnd.oci.image.manifest.v1+json

@dlorenc
Copy link

dlorenc commented Aug 20, 2021

For this to be an OCI media type

If OCI adopts the reference type working group before a release of the artifacts-spec is made, we can change the mediaType for user content stored. If not, the tooling can simply use the cncf.oras string.

I'm not sure I follow this part. Which OCI media types would be used here if the WG is approved?

@lachie83
Copy link
Contributor

Hi @dlorenc, I hope the following helps clarify what is stated in the issue description:

The current manifest.mediaType is application/vnd.cncf.oras.artifact.manifest.v1+json to avoid any conflict with OCI branding.
...
If OCI adopts the reference type working group before a release of the artifacts-spec is made, we can change the mediaType

If adopted the manifest.mediaType would be: application/vnd.oci.artifact.manifest.v1+json as spec'd in [Artifacts #29 proposal]opencontainers/artifacts#29).

@dlorenc
Copy link

dlorenc commented Aug 21, 2021

Thanks @lachie83. That sort of makes sense, but from an organizational perspective I'm not sure I follow how this repo, the (draft) proposal in the artifacts repo, and the draft wg proposal all relate.

It sounds like there's an assumption here that if the WG is created, the draft artifact spec in opencontainers/artifacts#29 automatically becomes finalized with a v1 released mediaType.

My understanding is that the reference types working group would be formed to create a proposal and validate it with prototypes like this one, then turn that work into a formal proposal for the relevant specs maintainers and TOB to then formalize as a new specification.

@SteveLasker SteveLasker modified the milestones: 1.0-rc.1, 1.0-draft.1 Sep 1, 2021
@lachie83 lachie83 self-assigned this Sep 8, 2021
@lachie83 lachie83 removed this from the 1.0-draft.1 milestone Sep 9, 2021
@SteveLasker
Copy link
Contributor Author

Closing as this is under the ORAS Project, which has mediaTypes defined in: oras-artifact-manifest-spec

  • Manifest: application/vnd.cncf.oras.artifact.manifest.v1+json
  • Annotations: io.cncf.oras.artifact.*

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants