Image manifest lists/indexes with invalid references
Context
In #404 (closed), we learned that it's currently possible to push manifest lists/indexes that reference not manifests but layers. This causes problems with, for example, offline garbage collection.
According to the Docker Image Spec and OCI Image Spec, a manifest list/index should reference manifests and manifests only. Nevertheless, the lack of validation has allowed an unknown number of invalid images to be uploaded to the GitLab Container Registry, both for GitLab.com and self-managed.
To be able to identify the scale and impact of this bug, we'll add a custom validation to the registry API which will log a warning message whenever an invalid reference is found.
Purpose
This issue is meant to collect evidence and reports from GitLab engineers, the community, and our customers whenever a possible occurrence of this issue surfaces.