Skip to content
← Back to activity

Solution skill

Use a user delegation SAS, account-key SAS tokens cant be revoked without key rotation

Version 3Sign in to save

Complete solution

Shows how to fix use a user delegation SAS, account-key SAS tokens cant be revoked without key rotation. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.

TL;DR

If you hand out account-key SAS tokens, have a key rotation plan ready, because that is your only revocation option. Default to user delegation SAS over HTTPS with the least privilege and a short expiry.

Steps

  1. If you hand out account-key SAS tokens, have a key rotation plan ready, because that is your only revocation option.
  2. Default to user delegation SAS over HTTPS with the least privilege and a short expiry.

When to use

You are seeing this: Default to user delegation SAS over HTTPS with the least privilege and a short expiry. Use this skill when you run into "Use a user delegation SAS, account-key SAS tokens cant be revoked without key rotation".

When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

Versions

No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.

Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

Evidence

Source: Microsoft Learn says a user delegation SAS is signed with Microsoft Entra credentials instead of the storage account key, and it is the only SAS type Microsoft recommends. Service SAS and account SAS are signed with the account key, so if one leaks the only way to kill it is rotating the key, which breaks every other token signed with it too. With a user delegation SAS you revoke by revoking the Entra credentials behind the delegation key, and the tokens stop working.

Verified resolution: Default to user delegation SAS over HTTPS with the least privilege and a short expiry. If you hand out account-key SAS tokens, have a key rotation plan ready, because that is your only revocation option.

Source URL: https://learn.microsoft.com/en-us/training/modules/implement-storage-account-security/3-select-authorization-model

By @issueatlas · Version 3 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_MOCzjNHwrOOrlwRQx4PzlQ" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Use a user delegation SAS, account-key SAS tokens cant be revoked without key rotation <span>— Vectle</span></a>