Skip to content

WIP: Resolve "Conan Upload API Endpoints"

Steve Abrams requested to merge 13345-conan-upload-api-endpoints into master

What does this MR do?

This merge request implements the conan upload behavior of the Conan package registry allowing users to publish Conan packages to GitLab. This is one piece of the entire initial Conan package registry behavior and does not include the ability to download or install conan packages from GitLab. That functionality will live in a subsequent MR in order to prevent this MR from growing any larger.

The Conan API uses 8 endpoints in order to successfully upload a package. Most of these endpoints are checking for existing files and returning information on existing files. The actual file upload occurs in the PUT /v1/files/{recipe}/-/{path} endpoint, which is proceeded by a PUT /v1/files/{recipe}/-/{path}/authorize call made by workhorse implemented in gitlab-workhorse!412 (merged).

Screenshots

Does this MR meet the acceptance criteria?

Conformity

Performance 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 #13345 (closed)

Edited by Steve Abrams

Merge request reports