A partner application requires temporary access to upload files to a container named 'incoming' within an Azure storage account. The partner must only be allowed to write data to this specific container for a period of two hours, without any permissions to access other services or containers.
What security configuration should be implemented to satisfy these requirements under the principle of least privilege?
- Generate a service SAS for the 'incoming' container and configure an expiration time of two hours.Answer
- BGenerate an account SAS with write permissions and leave the expiration time blank to prevent access interruptions.
- CAssign the Contributor role at the resource group scope to the partner application's security principal.
- DDisable the option that allows trusted Microsoft services to bypass the storage firewall and provide the primary access key.
Answer
Generate a service SAS for the 'incoming' container and configure an expiration time of two hours.
Generating a service SAS for the specific container with a two-hour expiration window provides the narrowest resource scope (container-level) and respects the temporal requirement, fulfilling the principle of least privilege.
Step-by-Step Solution
Key Concept
Shared Access Signatures (SAS) allow fine-grained, delegated access to Azure Storage resources by defining the scope, permissions, and duration of the access token.