Skip to content

Support Azure Blob Storage URL parameterization to be able to use Azurite #9

@pabloFuente

Description

@pabloFuente

In our development process we are trying to use Azurite in our testing and CI pipelines (Azurite is the official emulator for Azure Blob, Queue Storage and Table Storage).

Unfortunately, the URL passed to the azure-storage-blob-go/azblob library is currently hardcoded right here:

sUrl := fmt.Sprintf("https://%s.blob.core.windows.net", conf.AccountName)

This makes it impossible to use an Azurite container as storage destination. A possible solution would be to include an optional parameter to the Azure config that could be used to override the default value:

storage/config.go

Lines 44 to 49 in 0dabf99

type AzureConfig struct {
AccountName string `yaml:"account_name"` // (env AZURE_STORAGE_ACCOUNT)
AccountKey string `yaml:"account_key"` // (env AZURE_STORAGE_KEY)
ContainerName string `yaml:"container_name"`
TokenCredential azblob.TokenCredential `yaml:"-"` // required for presigned url generation
}

Thank you for your time!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions