Skip to content
Snippets Groups Projects
Commit c1bc4dfc authored by Stan Hu's avatar Stan Hu
Browse files

Add Azure Blob Storage credential support

Unlike AWS and Google, Azure needs to use an Azure client inside
Workhorse to support direct uploads. Using standard HTTP transfers with
pre-signed URLs with the Azure Put Blob API
(https://docs.microsoft.com/en-us/rest/api/storageservices/put-blob)
doesn't work because Azure doesn't support chunked transfer encoding.
However, Azure does support uploading files in segments via the Put
Block and Put Block List API
(https://docs.microsoft.com/en-us/rest/api/storageservices/put-block),
but this requires an Azure client.

To support this, this commit extracts the Azure Fog credentials from the
Rails connection information and adds them to the Workhorse
configuration.

This changes requires two merge requests to work:

1. gitlab-workhorse!555
2. gitlab!38882

Part of gitlab#25877
parent 648d1ec7
No related branches found
No related tags found
Loading
Status
Pipeline
Created by
Stages
Actions
Failed

00:02:07

avatar
Download artifacts

No artifacts found

Failed

00:02:11

avatar
Download artifacts

No artifacts found