Skip to content

Add accelerated upload route for Terraform Module Packages to Workhorse

What does this MR do?

Adds an accelerated upload route for Terraform Module Packages to Workhorse to support file uploads to the Package Registry added in !55018 (merged).

These routes are being added to the API:

PUT /api/:version/projects/:id/packages/terraform/modules/:module_name/:module_system/*module_version/file/authorize(.:format) - Workhorse authorize Terraform Module package file
PUT /api/:version/projects/:id/packages/terraform/modules/:module_name/:module_system/*module_version/file(.:format) - Upload Terraform Module package file

Which are used to upload packages to the Package Registry of package_type: :terraform_module.

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • [-] Label as security and @ mention @gitlab-com/gl-security/appsec
  • [-] The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • [-] Security reports checked/validated by a reviewer from the AppSec team

Related to #329955 (closed)

Edited by Matt Kasa

Merge request reports

Loading