Soru

Zorluk: OrtaShared Access Signatures and Token-based Storage Security

You are developing a solution that stores sensitive media files in an Azure Blob Storage container named mediafiles. You need to grant a partner application temporary access to read and list the blobs in this container. The security requirements state that you must be able to revoke this access immediately if a compromise occurs, without rotating the storage account keys or affecting other SAS tokens.

Which two actions should you perform to implement this security requirement?

  1. Create a stored access policy on the container.Cevap
  2. Generate a service SAS that is associated with the stored access policy.Cevap
  3. C
    Generate an account SAS that references the stored access policy.
  4. D
    Create a stored access policy at the storage account level.

Cevap

To implement the revocation requirement, you should create a stored access policy on the container and then generate a service SAS that is associated with that stored access policy.
Creating a stored access policy on the container and generating a service SAS that references it is correct because it allows the SAS lifetime and permissions to be managed directly by the policy. If a compromise is suspected, the policy can be deleted or updated, instantly revoking all SAS tokens that reference it without affecting other services or requiring account key rotation.

Adım Adım Çözüm

1
Define the stored access policy on the specific blob container.
A policy containing the permissions (read and list) and validity duration is created, which can be modified or deleted on demand.
This provides a single point of control for access configuration that can be altered to invalidate associated SAS tokens immediately.
2
Generate a service SAS for the partner application, binding it to the stored access policy.
A service SAS token is generated that points to the container and inherits its constraints from the stored access policy.
By using a service SAS bound to the policy rather than an account SAS, the token's lifetime and validity are tied directly to the container-level policy.

Anahtar Kavram

Stored Access Policies and SAS Revocation
Bu soruyu puanla