RPM: complete workhorse direct upload
🔥 Context
Follow up of #370869 (closed).
Basically, we need the rails changes so that the workhorse direct upload is properly used.
🚒 Solution
- Implement all the rails parts for the direct upload to work. Among other things, the
/authorizeendpoint should be implemented. - Since packages are uploaded with
$ curl, we could use aPUTbody upload instead aPOSTbody upload. That's because the command is then straightforward:$ curl --header "PRIVATE-TOKEN: <your_access_token>" --upload-file path/to/file.txt "<rpm upload url>"