Adding a password to Azure folder

387architects 5 Reputation points
2023-05-08T18:22:42.8366667+00:00

We have blob storage on Azure and I would like to password protect one of the folders. How does one do that in the most simple way? I don't want to bother with creating groups at the moment or similar. Just want to add a password to one folder. That's all.

Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
1,692 questions
{count} votes

1 answer

Sort by: Most helpful
  1. rbrundritt 8,156 Reputation points Microsoft Employee
    2023-05-10T16:20:19.8033333+00:00

    There is no built-in way to password protect an individual folder within a blob storage account. However, there are several options to accomplish what you are looking for.

    1. If you use Azure Active Directory roles and don't have a lot of folders that need to be password protected, it may be easier to create separate Blob storage accounts for each "folder", and then use the built in access controls in Azure.
    2. Create a simple proxy service to access blob storage. In this service, capture the uploaded contents and zip them with a password, then store the zipped file. For downloading, in the proxy service you can then check the password on the zip file and if it is valid, then download the full content. Here is a related example: https://github.com/icsharpcode/SharpZipLib/issues/303
    3. Create an authenticated proxy service that keeps track of the folders and passwords and again manage access via this proxy service. This is likely the most work out of the three options and likely take the most time to make secure.
    0 comments No comments