Skip to content

Entra ID authentication support #1118

Closed

Description

@FooBarWidget

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.

Related: apache/opendal#5126

Activity

  1. indygreg commented on May 7, 2022

    @indygreg
    Contributor

    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.

  2. sylvestre commented on Feb 19, 2024

    @sylvestre
    Collaborator

    @Xuanwo is that something we get from opendal now ?

  3. Xuanwo commented on Feb 20, 2024

    @Xuanwo
    Collaborator

    @Xuanwo is that something we get from opendal now ?

    I never tested this. Let me check it out.

  4. fhorrobin commented on Feb 7, 2026

    @fhorrobin

    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.

  5. changed the title [-]Azure Active Directory authentication support[/-] [+]Entra ID authentication support[/+] on May 21, 2026
  6. babrekel commented on Aug 10, 2026

    @babrekel
    Contributor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions