Story #9488
closedAs an admin I can configure Azure as storage backend for Container Registry
100%
Description
Azure storage API does not allow to set Content-Type/Content-Disposition headers when redirecting to it.
In order to set content settings per-objects basis, docs suggest to subclass the backend and override AzureStorage.get_object_parameters.
From docs https://django-storages.readthedocs.io/en/latest/backends/azure.html and https://github.com/jschneier/django-storages/blob/master/storages/backends/azure_storage.py#L289 :
Use this to set content settings on all objects. To set these on a per-object basis, subclass the backend and override AzureStorage.get_object_parameters.
This is a Python dict and the possible parameters are: content_type, content_encoding, content_language, content_disposition, cache_control, and content_md5.
Here is WIP PR that needs more work https://github.com/pulp/pulp_container/pull/406#discussion_r719328781
EDIT This approach is slightly problematic in case artifact is used by multiple content units with different content_types.
Updated by pulpbot about 3 years ago
- Status changed from NEW to POST
Added by ipanova@redhat.com about 3 years ago
Added by ipanova@redhat.com about 3 years ago
Revision fa6a3390 | View on GitHub
Added Azure storage backend support.
closes #9488
Required PR: https://github.com/pulp/pulpcore/pull/1691
Updated by ipanova@redhat.com about 3 years ago
- Status changed from POST to MODIFIED
- % Done changed from 0 to 100
Applied in changeset fa6a3390774143a9ab135ff61406335b9c0b8de9.
Updated by pulpbot almost 3 years ago
- Status changed from MODIFIED to CLOSED - CURRENTRELEASE
Added Azure storage backend support.
closes #9488
Required PR: https://github.com/pulp/pulpcore/pull/1691