You create a Shared Access Signature (SAS) token for an Azure Storage blob with the following permissions: read and list. What actions can a user perform with this SAS token?
Think about what 'read' and 'list' permissions allow in Azure Storage.
'Read' permission allows reading blob content. 'List' permission allows listing blobs in a container. Uploading or deleting requires 'write' or 'delete' permissions, which are not granted here.
You want to create a SAS token that expires exactly 2 hours after creation. Which of the following ISO 8601 datetime strings correctly sets the expiry time if the token is created at 2024-06-01T10:00:00Z?
Remember that the expiry time must be 2 hours after the creation time.
The token created at 10:00:00Z expires at 12:00:00Z, which is exactly 2 hours later. Other options are either earlier or too far in the future.
Your company wants to allow a third-party app to upload files to a specific container in your Azure Storage account without giving full access to the storage account. Which approach is best?
Think about least privilege and limiting access scope.
Sharing storage account keys gives full access, which is risky. SAS tokens can limit access to specific containers and permissions with expiry. Creating a new storage account or giving owner role is excessive and insecure.
What is the main security risk of distributing your Azure Storage account access keys to multiple applications?
Consider the scope of permissions granted by access keys.
Storage account access keys grant full control over all resources in the account. If leaked, attackers can read, write, or delete any data. This is why SAS tokens with limited scope are preferred.
You generate a SAS token with read and write permissions for a blob container. Later, you regenerate the storage account access keys. What happens to the SAS token?
Think about how SAS tokens are signed and what regenerating keys means.
SAS tokens are signed using the storage account access keys. Regenerating keys invalidates all SAS tokens signed with the old keys immediately.