feat(storage-azure): Support Managed Identities / DefaultAzureCredential for authentication #17772
Patrickroelofs
started this conversation in
Feature Requests & Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Currently, the
@payloadcms/storage-azureplugin only supports authentication via a connectionString. Relying on them in modern cloud environments (like Azure App Service, AKS, or Azure Container Apps) goes against current security best practices, enterprises heavily prefer using Managed Identities.Describe the solution you'd like
Update the
@payloadcms/storage-azureplugin configuration to support standard Azure SDK credentials (like DefaultAzureCredential from@azure/identity).Internally, the Azure
@azure/storage-blobpackage already supports this via newBlobServiceClient(url, credential). The Payload plugin wrapper just needs to expose this capability.Proposed API: Make connectionString optional if accountName (or storageURL) and a credential object are provided.
Describe alternatives you've considered
Additional context
The official Azure documentation recommends migrating away from connection strings and Shared Key authorization in favor of Microsoft Entra ID (Managed Identities) for better security and granular RBAC control: Authorize access to blobs using Microsoft Entra ID.
All reactions