Skip to content

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 /authorize endpoint should be implemented.
  • Since packages are uploaded with $ curl, we could use a PUT body upload instead a POST body 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>"