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 thepasswordofcredentialsthat have nousername(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.
- YAML
- JSON
- XML
class: AzureBlobFetcher
credentials:
username: myaccount
password: my-account-key
{
"class": "AzureBlobFetcher",
"credentials": {
"username": "myaccount",
"password": "my-account-key"
}
}
<class>AzureBlobFetcher</class>
<credentials>
<username>myaccount</username>
<password>my-account-key</password>
</credentials>
The following example uses a SAS token.
- YAML
- JSON
- XML
class: AzureBlobFetcher
sasToken: sv=2025-01-05&ss=bfqt&srt=sco&sp=rl&se=2027-01-01T00:00:00Z&sig=...
{
"class": "AzureBlobFetcher",
"sasToken": "sv=2025-01-05&ss=bfqt&srt=sco&sp=rl&se=2027-01-01T00:00:00Z&sig=..."
}
<class>AzureBlobFetcher</class>
<sasToken>sv=2025-01-05&ss=bfqt&srt=sco&sp=rl&se=2027-01-01T00:00:00Z&sig=...</sasToken>
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.
- YAML
- JSON
- XML
class: AzureBlobFetcher
credentials:
password: ${azureSasToken}
passwordKey:
source: ENVIRONMENT
value: MY_KEY_VAR
{
"class": "AzureBlobFetcher",
"credentials": {
"password": "${azureSasToken}",
"passwordKey": {
"source": "ENVIRONMENT",
"value": "MY_KEY_VAR"
}
}
}
<class>AzureBlobFetcher</class>
<credentials>
<password>${azureSasToken}</password>
<passwordKey>
<source>ENVIRONMENT</source>
<value>MY_KEY_VAR</value>
</passwordKey>
</credentials>
Usage
Full configuration skeleton, with every option and its default
- YAML
- JSON
- XML
class: AzureBlobFetcher
credentials:
password: string
passwordKey:
size: 0
source: KEY
value: string
username: string
domain: string
endpoint: string
referenceFilters: []
sasToken: string
{
"class": "AzureBlobFetcher",
"credentials": {
"password": "string",
"passwordKey": {
"size": 0,
"source": "KEY",
"value": "string"
},
"username": "string"
},
"domain": "string",
"endpoint": "string",
"referenceFilters": [],
"sasToken": "string"
}
<azureBlobFetcher>
<class>AzureBlobFetcher</class>
<credentials>
<password>string</password>
<passwordKey>
<size>0</size>
<source>KEY</source>
<value>string</value>
</passwordKey>
<username>string</username>
</credentials>
<domain>string</domain>
<endpoint>string</endpoint>
<referenceFilters>
<referenceFilter/>
</referenceFilters>
<sasToken>string</sasToken>
</azureBlobFetcher>
Properties
| Property | Type | Required | Default |
|---|---|---|---|
credentials | Credentials | No | Credentials |
domain | string | No | - |
endpoint | string | No | - |
referenceFilters | ReferenceFilter[] | No | - |
sasToken | string | No | - |
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.