mirror of
https://github.com/camptocamp/odoo-cloud-platform.git
synced 2026-06-24 08:47:40 +00:00
[FIX] attachment_azure: higher level of permissions needed to create container and upload blobs when using the SAS token
This commit is contained in:
committed by
Patrick Tombez
co-authored by
Patrick Tombez
parent
1d8bbcf765
commit
050ce49184
@@ -74,8 +74,8 @@ class IrAttachment(models.Model):
|
|||||||
sas_token = generate_account_sas(
|
sas_token = generate_account_sas(
|
||||||
account_name=account_name,
|
account_name=account_name,
|
||||||
account_key=account_key,
|
account_key=account_key,
|
||||||
resource_types=ResourceTypes(service=True),
|
resource_types=ResourceTypes(container=True, object=True),
|
||||||
permission=AccountSasPermissions(read=True),
|
permission=AccountSasPermissions(read=True, write=True),
|
||||||
expiry=datetime.utcnow() + timedelta(hours=1),
|
expiry=datetime.utcnow() + timedelta(hours=1),
|
||||||
)
|
)
|
||||||
blob_service_client = BlobServiceClient(
|
blob_service_client = BlobServiceClient(
|
||||||
|
|||||||
Reference in New Issue
Block a user