Skip to main content

AzureBlobFetcher

Azure Blob Storage fetcher (azblob:// and azureblob://).

Notes​

Fetches documents from Azure Blob Storage using references such as azblob://myaccount/mycontainer/path/to/blob.txt.

Supports:

  • Shared-key authentication via credentials
  • SAS token authentication via sasToken, or as the password of credentials that have no username (see Keeping a SAS token secret)
  • Optional endpoint override via endpoint

When endpoint is not set, the endpoint is derived from the reference account as https://<account>.blob.core.windows.net.

The credentials username must match the account in the reference URI.

Keeping a SAS token secret​

A SAS (Shared Access Signature) token grants limited access to a storage account: it can be restricted to one container, to read and list only, and to a period of time, without revealing the account key. It is what to ask for when the account key cannot be shared.

A token in sasToken is part of the configuration as written. To keep it out of it, give it as the password of credentials and leave the username empty: the fetcher then uses the decrypted password as the SAS token. Encrypt it with a passwordKey, or supply it from a variable, as for any other password. A sasToken in the configuration, if any, wins.

Examples​

The following example uses shared-key authentication.

class: AzureBlobFetcher
credentials:
username: myaccount
password: my-account-key

The following example uses a SAS token.

class: AzureBlobFetcher
sasToken: sv=2025-01-05&ss=bfqt&srt=sco&sp=rl&se=2027-01-01T00:00:00Z&sig=...

The following example keeps a SAS token secret. With no username, the password of the credentials is the SAS token, so it can be supplied by a variable and encrypted like any other password.

class: AzureBlobFetcher
credentials:
password: ${azureSasToken}
passwordKey:
source: ENVIRONMENT
value: MY_KEY_VAR

Usage​

Full configuration skeleton, with every option and its default
class: AzureBlobFetcher
credentials:
password: string
passwordKey:
size: 0
source: KEY
value: string
username: string
domain: string
endpoint: string
referenceFilters: []
sasToken: string

Properties​

PropertyTypeRequiredDefault
credentialsCredentialsNoCredentials
domainstringNo-
endpointstringNo-
referenceFiltersReferenceFilter[]No-
sasTokenstringNo-

Property Details​

credentials​

Username and password used for Azure Blob shared-key authentication:

  • Username: storage account name
  • Password: storage account key

When the username is empty, the password is a SAS token instead of an account key.

domain​

The domain name for authentication when accessing the remote resource.

endpoint​

Optional service endpoint override. When omitted, the endpoint is derived from the reference account.

referenceFilters​

Filters applied to document references (URLs or file paths) to control which ones are fetched. Documents whose references do not pass the filters are skipped.

sasToken​

Optional SAS token used instead of shared-key credentials, kept as is in the configuration. To keep it secret, leave it empty and give it as the password of credentials, with no username.