Downloads artifacts stored in the Chainloop Content Addressable Storage (CAS).
The artifact is identified by its cryptographic digest, which serves as both the unique identifier and integrity verification mechanism. The endpoint behavior varies based on the client type detected via the Accept header.
Client-Specific Behavior:
Bearer token for authentication
Content type preferences. Affects redirect behavior:
"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"
The full cryptographic digest of the artifact including algorithm prefix. Currently supports SHA-256 hashes only.
71
Successful redirect to artifact download URL. Response behavior depends on the Accept header:
For browsers (Accept contains "text/html"):
Refresh
header with 1-second delayFor CLI tools (other Accept values):
Location
header for immediate redirectThe response is of type string
.
"Your download will begin shortly..."