Support connecting with user-bound user delegation SAS
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 35/100
- Issue 类型
- 功能
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- azure, csharp
调研方向
The issue describes adding support for user-bound user delegation SAS in Azure Storage Explorer. Start by reviewing the Azure Storage REST documentation linked in the issue, focusing on the sv, sduoid, and skdutid parameters. Examine the existing connection workflow and credential management code, likely in the Azure.Storage or authentication modules. Check how the transfer engine handles credentials and token renewal. The acceptance criteria list specific scenarios to test, such as browsing, uploading, and handling token expiry.
由索引模型根据 Issue 内容生成。
描述
Problem
Azure Storage supports user-bound user delegation SAS (also called principal-bound user delegation SAS). Access requires both the SAS and a Microsoft Entra bearer token identifying the intended recipient.
Storage Explorer needs a connection workflow supporting both credentials. A SAS URL alone is insufficient. Substituting OAuth-only access is not equivalent because it does not preserve the SAS's delegated permissions, resource scope, and validity period.
Desired solution
Support connecting with an existing user-bound user delegation SAS, initially for Blob Storage and ADLS Gen2 container/directory attachments.
- Accept the SAS URL and allow selection or sign-in of the intended Entra account and tenant.
- Acquire and refresh bearer tokens through the existing sign-in experience rather than requiring users to repeatedly paste short-lived tokens.
- Preserve the original SAS and send both credentials on applicable data requests, including background operations and transfers.
- Restore the connection's account/tenant association after restarting.
- Distinguish expired bearer tokens, expired SAS tokens, identity mismatches, insufficient permissions, and cross-tenant policy failures.
- Never silently fall back to OAuth-only access, account keys, or a different SAS.
Creating user-bound SAS tokens and configuring storage-account policies are separate enhancements, not prerequisites for consuming an existing SAS.
Implementation considerations
The public Azure Storage REST documentation describes:
sv=2025-07-05or later for user-bound SAS.sduoid: the delegated recipient's Entra object ID, corresponding to the bearer token'soidclaim. This differs fromskoid, which identifies the principal that requested the delegation key, and from the oldersaoid/suoidfields.skdutid: the delegated recipient's tenant ID when applicable, corresponding to the bearer token'stidclaim.- Cross-tenant use requires the storage account's
allowCrossTenantDelegationSassetting. Explain policy rejection rather than changing that setting automatically.
Verify request-header requirements, token audience, tenant selection, and SDK support against the service contract. Confirm that the transfer engine supports both credentials and token renewal; successful browsing alone is not sufficient.
Review copy, preview, and open-in-browser operations as well. Passing only a SAS URL to another process or browser cannot supply the required identity token. Clearly identify unsupported operations.
Use existing secure credential storage and redaction. Do not include bearer tokens in URLs or expose either credential in logs, telemetry, or error messages.
Acceptance criteria
- The matching identity can attach, browse, read properties, upload, download, and delete within the SAS's permissions and scope on Blob Storage and ADLS Gen2.
- Delegated access works for a recipient without equivalent direct data access, demonstrating that requests are not relying on OAuth-only authorization.
- Missing/wrong identities and requests outside the SAS's scope, permissions, or validity period fail without credential fallback.
- Bearer-token renewal works during long-running operations. Restart, account removal, reauthentication, and SAS expiry are handled predictably.
- Same-tenant and permitted cross-tenant connections work; prohibited cross-tenant connections produce actionable errors.
- Unsupported transfer, copy, or preview paths explain the limitation instead of dropping a credential.
- Existing ordinary SAS and OAuth connections remain unchanged.
- Automated coverage verifies credential propagation, negative authorization cases, and secret redaction.
Alternatives and workarounds
Use a client that explicitly supports user-bound SAS, or direct Entra access where suitable permissions already exist. Direct Entra access is not equivalent for recipients whose access is granted only through the SAS.
Public reference
- 主要语言
- 没有语言数据
- 星标
- 456
- 派生
- 92
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
microsoft/AzureStorageExplorer 的其他 Issue
-
难度 2/5 1-2 天 新手友好度 76/100
microsoft/AzureStorageExplorer#9186 ·
-
:globe_with_meridians: hard-coded string :globe_with_meridians: localization :test_tube: testing
难度 2/5 1-3 小时 新手友好度 68/100
microsoft/AzureStorageExplorer#9152 ·
-
难度 3/5 1-2 天 新手友好度 40/100
microsoft/AzureStorageExplorer#9214 ·
-
难度 4/5 3-5 天 新手友好度 15/100
microsoft/AzureStorageExplorer#9213 ·
-
:gear: azcopy
难度 4/5 3-5 天 新手友好度 28/100
microsoft/AzureStorageExplorer#9212 ·
查看 microsoft/AzureStorageExplorer 的全部 Issue
相似的 Issue
-
[Bug]: message-level cache_control on chat messages is dropped, so Anthropic prompt caching never triggers可能已有人在做 @Atharva-Kanherkar 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 80/100
维护者通常 1 天内回复
-
难度 1/5 1-3 小时 新手友好度 88/100
fritzprix/libr-agent#2165 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 68/100
jxxghp/MoviePilot#7070 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 83/100
krillinai/OpenCreator#355 ·
维护者通常 3 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
yologdev/yoyo-evolve#1053 ·