Would you make one OCI registry the store for your team's Helm charts, SBOMs and ML model files as well as its container images?
answer
- one API, one set of controls
- registry support varies
- very large blobs
- discovery and cleanup change
basics
~20 sUsually yes, with conditions: the registry must accept arbitrary artifact types and serve the referrers API, its upload path must handle multi-gigabyte model blobs, and discovery, permissions and cleanup rules must be redesigned for content that is not an image.
solid answer
~50 sThe case for it is strong: one API, one set of credentials, one replication and audit setup, and digest addressing for everything, so a release can pin a chart and its images the same way, while `subject` and the referrers API tie each SBOM to the exact image it describes. Helm's own documentation recommends OCI registries for charts. The costs are operational. Support for arbitrary `artifactType` values and the referrers API varies by product, and the fallback tag scheme is racy. Model files are multi-gigabyte blobs that stress chunked uploads, proxies and timeouts. Charts lose `index.yaml` search; versions come from tag listing. Cleanup rules written for images can delete charts or strand SBOMs. I would commit after a pilot that proves those points on our registry, with a repository layout per artifact type and per-type retention and permissions.
go deeper
Recall that an OCI registry can hold charts, SBOMs and other files as well as images, using the same push and pull API.
Explain how each artifact type is stored, artifactType and media types, and how SBOMs link to images through subject and the referrers API.
Name the failure modes to test before adopting it: missing referrers support, large-blob uploads through proxies, lost chart search and cleanup rules deleting the wrong things.
Own the decision and its conditions: the pilot that proves the registry, the repository layout, per-type retention and the cases where a separate store stays justified.
## What one registry buys An OCI registry is content-agnostic: it stores blobs and manifests, and media types say what they are. Putting charts, SBOMs and model files beside images therefore reuses everything a team already runs for images: - **one API and one client model**: the distribution spec for every artifact, ORAS as a generic client, Helm talking to the same registry for charts; - **one set of controls**: credentials, robot or CI tokens, permissions, replication between sites and audit logs; - **digest addressing everywhere**: a deployment can pin a chart, its images and a model by digest, and the bytes cannot change under that name; - **linked metadata**: an SBOM pushed with a `subject` field naming an image digest is listed by `GET /v2/<name>/referrers/<digest>`, so the bill of materials travels with the exact build it describes. Helm's documentation recommends container registries with OCI support for storing and sharing charts, which removes one reason to keep a separate chart server. The same reasoning applies to SBOMs: kept in the image's own repository and linked by `subject`, they are replicated, permissioned and listed together with the image, instead of living in a document store whose link to the build is a naming convention. ## What it costs | Concern | Why it matters | What to check | |---|---|---| | Artifact support | Some registries and tools assume images | Arbitrary `artifactType` accepted; empty config descriptor stored | | Referrers | Fallback tags are client-maintained and racy | Registry serves `/v2/<name>/referrers/<digest>` | | Large blobs | Model files are often one multi-gigabyte layer | Chunked uploads end to end, proxy body limits and timeouts, storage growth | | Manifest size | Artifacts with many files make large manifests | Registries should accept manifests of at least 4 MB; over the limit is `413` | | Discovery | Charts lose `index.yaml` and repository search | Versions come from `GET /v2/<name>/tags/list` | | Cleanup | Image rules may not fit other types | Rules scoped per artifact type; referrers kept with their subjects | | Tooling | Scanners and dashboards may not understand new types | Each consumer tested against each type | ## Conditions I would set before committing 1. **Prove the registry**: push each artifact type with its real media types, attach an SBOM with `subject`, query referrers with an `artifactType` filter, and copy everything to a second site. 2. **Lay out repositories by artifact type and team**, keeping SBOMs in the same repository as the images they describe, because referrers are listed per repository. 3. **Write retention per type**: images, charts, SBOMs and models age differently, and an SBOM is worthless once its image is gone. 4. **Size the model path**: test a full-size model push and pull through every proxy and load balancer in front of the registry. 5. **Decide discovery**: document how consumers find chart versions and model releases without an index. ## When I would keep a separate store - Consumers depend on classic chart repositories and their `index.yaml`, and cannot move yet. - Models need lineage, experiment metadata or stage transitions that a registry does not model; it stores bytes by digest and annotations, little more. - The registry product lacks referrers or arbitrary artifact support, and replacing it is not on the table. ## How I would roll it out - Start with SBOMs and charts, which are small and benefit most from digest pinning and referrers. - Add models after the large-blob path is proven, with storage quotas watched from day one. - Keep the old store read-only for a deprecation window, then retire it. - Track two numbers through the rollout: storage growth per artifact type, and failed or retried uploads of large blobs, since those are where a content-agnostic registry most often disappoints. - Revisit the decision once a year, or whenever the registry product changes, because support for referrers and artifact types is a part of registry products that has changed between releases. The decision is less about whether the registry *can* store the bytes, which any conforming registry can, and more about whether the team's permissions, cleanup, discovery and tooling are ready to treat the registry as the store for everything it ships.
- How would you organise repositories in that registry?By artifact type and owning team, so permissions and cleanup rules can be scoped cleanly: images, charts and models in separate repositories per team. SBOMs and other attached reports go in the same repository as the image they describe, because the referrers API lists only referrers in the queried repository.
- What would make you keep model files out of the registry?Needs the registry does not model: lineage, experiment metadata, approvals or stage transitions for models. Also a network path that cannot reliably move multi-gigabyte blobs through its proxies. A registry gives immutable, digest-addressed bytes plus annotations; anything richer has to live elsewhere.
- Once charts move to an OCI registry, clients can still search them through index.yaml.
- Every OCI-conformant registry supports the referrers API and custom artifact types.
- SBOMs can sit in a separate repository and still be listed as the image's referrers.
- Cleanup rules written for images are safe to apply unchanged to charts and SBOMs.
- Storing models in a registry gives you model lineage and approval stages for free.