-
- Downloads
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
Showing
- changelogs/unreleased/sh-add-azure-blob-credentials.yml 5 additions, 0 deletionschangelogs/unreleased/sh-add-azure-blob-credentials.yml
- files/gitlab-cookbooks/gitlab/recipes/gitlab-workhorse.rb 2 additions, 1 deletionfiles/gitlab-cookbooks/gitlab/recipes/gitlab-workhorse.rb
- files/gitlab-cookbooks/gitlab/templates/default/workhorse-config.toml.erb 7 additions, 2 deletions...kbooks/gitlab/templates/default/workhorse-config.toml.erb
- spec/chef/recipes/gitlab-workhorse_spec.rb 36 additions, 13 deletionsspec/chef/recipes/gitlab-workhorse_spec.rb
- spec/support/shared_examples/object_store_shared_context.rb 7 additions, 0 deletionsspec/support/shared_examples/object_store_shared_context.rb
Please register or sign in to comment