Project

Profile

Help

Story #9488

closed

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

Added by ipanova@redhat.com about 1 year ago. Updated 12 months ago.

Status:
CLOSED - CURRENTRELEASE
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.

Actions #1

Updated by ipanova@redhat.com about 1 year ago

  • Description updated (diff)
Actions #2

Updated by pulpbot about 1 year ago

  • Status changed from NEW to POST

Added by ipanova@redhat.com about 1 year ago

Revision fa6a3390

Added Azure storage backend support.

closes #9488

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

Added by ipanova@redhat.com about 1 year ago

Revision fa6a3390

Added Azure storage backend support.

closes #9488

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

Actions #3

Updated by ipanova@redhat.com about 1 year ago

  • Status changed from POST to MODIFIED
  • % Done changed from 0 to 100
Actions #4

Updated by ipanova@redhat.com 12 months ago

  • Sprint/Milestone set to 2.10.0
Actions #5

Updated by pulpbot 12 months ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Also available in: Atom PDF