Support Managed identity auth for Blob Storage checkpointing in Event Hub scaler #3569
Labels
feature-request
All issues for new features that have not been committed to
needs-discussion
stale-bot-ignore
All issues that should not be automatically closed by our stale bot
Proposal
Accessing the blob storage for Event Hubs requires a connection string to be supplied by means of
triggers.metadata.storageConnectionFromEnv
. azure_eventhub_checkpoint.go could be modified to pass the PodIdentity from EventHubInfo with the required account name and endpoint to enable pod identity based authentication.Suggest to pass PodIdentity to
ParseAzureStorageBlobConnection
and add fields totrigger.metadata
:StorageEndpointSuffix is internally resolved from Azure's environment configuration for the specified cloud.
The fqdn blob storage uri is compiled from
https://{StorageAccountName}.blob.{StorageEndpointSuffix}/
.Use-Case
Allowing pod identities to be used consistently across Event Hub and Storage Accounts enables connection string free configurations and eliminates the need to manually manage a connection credential.
Anything else?
When using the above configuration together with a
triggers.authenticationRef
, the fieldstorageConnectionFromEnv
is no longer required.To preserve back-compat, if
storageConnectionFromEnv
is provided, it will force connection string based authN for the blob storage account.The text was updated successfully, but these errors were encountered: