[FIX] attachment_azure: higher level of permissions needed to create container and upload blobs when using the SAS token

This commit is contained in:
Nils Hamerlinck committed 2021-11-09 19:04:21 +07:00
1 parent 6f56f791cb
commit 89f7a2a707
1 file changed
+2 -2
+2 -2
View File
@@ -74,8 +74,8 @@ class IrAttachment(models.Model):
sas_token = generate_account_sas(
account_name=account_name,
account_key=account_key,
resource_types=ResourceTypes(service=True),
permission=AccountSasPermissions(read=True),
resource_types=ResourceTypes(container=True, object=True),
permission=AccountSasPermissions(read=True, write=True),
expiry=datetime.utcnow() + timedelta(hours=1),
)
blob_service_client = BlobServiceClient(
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.