Add endpoint to download a model version
The endpoint DownloadModelVersion
should be available for non-authenticated users so that ponos agents and other arkindex instances are able to download a model version.
The endpoint only builds a temporary S3-compatible pre-signed url and redirects the callers to that url (no download ever happen in the endpoint).
The endpoint should take 2 query parameters:
- model_version UUID
- a sha256 hash named
token
that will allow us to authenticate the caller. It's simplysha256(model_version.id + model_version.hash + settings.SECRET_KEY)