Project

Profile

Help

Story #9488

As an admin I can configure Azure as storage backend for Container Registry

Added by ipanova@redhat.com 22 days ago. Updated 8 days ago.

Status:
MODIFIED
Priority:
Normal
Assignee:
-
Sprint/Milestone:
-
Start date:
Due date:
% Done:

100%

Estimated time:
Platform Release:
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Quarter:

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.

Associated revisions

Revision fa6a3390 View on GitHub
Added by ipanova@redhat.com 8 days ago

Added Azure storage backend support.

closes #9488

Required PR: https://github.com/pulp/pulpcore/pull/1691

History

#1 Updated by ipanova@redhat.com 22 days ago

  • Description updated (diff)

#2 Updated by pulpbot 14 days ago

  • Status changed from NEW to POST

#3 Updated by ipanova@redhat.com 8 days ago

  • Status changed from POST to MODIFIED
  • % Done changed from 0 to 100

Please register to edit this issue

Also available in: Atom PDF