You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Azure storage support currently only supports authenticating with shared keys. Sccache should also support Entra ID (Azure Active Directory) authentication, in order to support storage accounts that disable shared key authentication.
I was looking into using Azure blob storage with sccache and wanted to call out that the current method of using shared access keys (as opposed to Azure Active Directory) for authentication is a security issue.
In order to achieve principle of least privilege and minimize risk to the storage account if the credentials are compromised, Active Directory authentication must be used.
I am also interested in this. To me the obvious solution (since I don't think opendal offers anything better here) is to implement a new azblob backend that uses the azure_storage_blob crate (Microsoft native SDK for Az Blob) instead of opendal. Is this something that people would be interested in?If so, I could consider trying to upstream if I get around to implementing and testing this for the use case I have.
Implemented in #2802 — adds a passwordless Microsoft Entra ID auth path for the Azure Blob backend (service principal / workload identity / managed identity via IMDS), routed through the existing opendal + reqsign path so there are no new dependencies. The shared-key connection-string path is unchanged and the two are mutually exclusive. Feedback welcome.
Activity
indygreg commentedon May 7, 2022
I was looking into using Azure blob storage with sccache and wanted to call out that the current method of using shared access keys (as opposed to Azure Active Directory) for authentication is a security issue.
My understanding is shared access keys effectively give you full access to the Azure Storage Account. In AWS parlance it would be granting all permissions on an S3 bucket (and more services since an Azure Storage Account also allows you to do e.g. SMB file shares). Microsoft's docs (e.g. https://docs.microsoft.com/en-us/azure/storage/common/storage-account-keys-manage?toc=%2Fazure%2Fstorage%2Fblobs%2Ftoc.json&tabs=azure-portal) strongly advise against using shared access keys because they are so widely scoped.
In order to achieve principle of least privilege and minimize risk to the storage account if the credentials are compromised, Active Directory authentication must be used.
sylvestre commentedon Feb 19, 2024
@Xuanwo is that something we get from opendal now ?
Xuanwo commentedon Feb 20, 2024
I never tested this. Let me check it out.
feat: Expose `Request#into_parts` and `Request#from_parts` (mozilla#1118
fhorrobin commentedon Feb 7, 2026
I am also interested in this. To me the obvious solution (since I don't think opendal offers anything better here) is to implement a new azblob backend that uses the azure_storage_blob crate (Microsoft native SDK for Az Blob) instead of opendal. Is this something that people would be interested in?If so, I could consider trying to upstream if I get around to implementing and testing this for the use case I have.
[-]Azure Active Directory authentication support[/-][+]Entra ID authentication support[/+]babrekel commentedon Aug 10, 2026
Implemented in #2802 — adds a passwordless Microsoft Entra ID auth path for the Azure Blob backend (service principal / workload identity / managed identity via IMDS), routed through the existing opendal + reqsign path so there are no new dependencies. The shared-key connection-string path is unchanged and the two are mutually exclusive. Feedback welcome.