Azure Vault
Securely load database credentials from Azure Vault.
Each database in the config file may be configured to use Azure Vault. To load the database username and/or password from Azure Vault, set the vault.azure property to contain the Azure Vault ID, and secret names for the database username/password:
databases:
mydb:
vault:
azure:
id: <VAULT ID>
usernameSecret: <Secret containing DB username>
passwordSecret: <Secret containing DB password>
Authentication
If you are running the scraper outside Azure, use an application service principal.
If you are running the scraper inside Azure, use a managed identity.
Set the following environment variables to allow the scraper to authenticate to Azure:
AZURE_TENANT_IDshould be set to your tenant IDAZURE_CLIENT_IDshould be set to the client ID to authenticate to AzureAZURE_CLIENT_SECRETshould be set to the client secret to authenticate to Azure