This repository has been archived by the owner on May 15, 2024. It is now read-only.
Artifact-spec referrers/
API Response
#7
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
-
Typical Scenarios
A typical scenario would include a number of reference types. Likely in the 0-12 references per
subjectManifest
.Using the Notary v2 use case, and the wabbit-networks --> docker hub --> acme rockets workflow, we could imagine the following graph of objects:
net-monitor:v1
container imagePartial visual of the above:
referrers/
api would return a max of 6 references. (the sbom and scan result signatures aren't returned as they are references to the sbom and scan result).referrers/
api provides for OPTIONAL registry/server side filtering byartifactType
. This would enable a client to filter just theexample.v0.sbom
, theexample.v0.scan-result
or thecncf.notary.v2
signatures to be returned.artifactType
filtering, thereferrers/
api would return 4 references. The filtering of the acme-rockets production signature is intended to be implemented with annotations (cncf.notary.v2.subject=acme-rockets-production
).Response Payload Requirements
The response payload has the following requirements to consider:
artifactType
, but may support annotation filtering in the future.Design Options
There have been a number of design proposals for what the referrers api should return. They've centered on two top level proposals:
There's another dimension for what role a
data
element might provide.Using the typical scenario, how can we balance the requirements for what to return in the
referrers/
api?Beta Was this translation helpful? Give feedback.
All reactions