Closed imjasonh closed 1 year ago
I think https://github.com/opencontainers/image-spec/pull/1005 makes me even more convinced that this is the better way to do this. Image-spec shouldn't have to have any awareness of whether or how a registry communicates that it applied filters; image-spec is theoretically agnostic to the existence of any registry implementations, as otherwise written. Removing these lets it remain blissfully unaware of registries, would that we all could be.
I think this would make more sense to be a response header, e.g.,
X-OCI-Referrers-Filters-Applied
(naming obviously open to debate).A few reasons, in decreasing order of strength:
/referrers?artifactType=foo
, including the annotation, and push that unchanged to a registry that doesn't support referrers, to the fallback tag, with the annotation included. This might be fine, but gets confusing, and it's completely avoidable.