diff --git a/backend/src/services/integration-auth/integration-sync-secret.ts b/backend/src/services/integration-auth/integration-sync-secret.ts index 030167d69..2d42f971b 100644 --- a/backend/src/services/integration-auth/integration-sync-secret.ts +++ b/backend/src/services/integration-auth/integration-sync-secret.ts @@ -328,7 +328,7 @@ const syncSecretsAzureAppConfig = async ({ const metadata = IntegrationMetadataSchema.parse(integration.metadata); const azureAppConfigValuesUrl = `${integration.app}/kv?api-version=2023-11-01&key=${metadata.secretPrefix}*${ - metadata.azureLabel ? `&label=${metadata.azureLabel}` : "" + metadata.azureLabel ? `&label=${metadata.azureLabel}` : "&label=%00" }`; const azureAppConfigSecrets = (await getCompleteAzureAppConfigValues(azureAppConfigValuesUrl)).reduce( diff --git a/docs/images/integrations/azure-app-configuration/create-integration-form.png b/docs/images/integrations/azure-app-configuration/create-integration-form.png index 58a935d8f..af2cbb062 100644 Binary files a/docs/images/integrations/azure-app-configuration/create-integration-form.png and b/docs/images/integrations/azure-app-configuration/create-integration-form.png differ diff --git a/docs/integrations/cloud/azure-app-configuration.mdx b/docs/integrations/cloud/azure-app-configuration.mdx index 249325704..f9d8afb49 100644 --- a/docs/integrations/cloud/azure-app-configuration.mdx +++ b/docs/integrations/cloud/azure-app-configuration.mdx @@ -30,6 +30,27 @@ description: "How to sync secrets from Infisical to Azure App Configuration" Press create integration to start syncing secrets to Azure App Configuration. + + + #### Azure references + When adding secrets in Infisical that reference Azure Key Vault secrets, Infisical will automatically sets the content type to `application/vnd.microsoft.appconfig.keyvaultref+json;charset=utf-8` in Azure App Configuration. + The following reference formats are automatically detected when added on Infisical's side: + - `{ "uri": "https://my-key-vault.vault.azure.net/secrets/my-secret" }` + - `https://my-key-vault.vault.azure.net/secrets/my-secret` + + ### Azure Labels + You can sync secrets from Infisical to Azure with custom labels by enabling the `Use Labels` option during setup: + + **When enabled**: Secrets will be pushed to Azure with your specified label + + **When disabled**: Secrets will be pushed with an empty (null) label + + + If you have set the initial sync to `import` have behavior, the label selection affects which secrets are imported from Azure: + - With `Use Labels` disabled: Only secrets with empty labels are imported on initial sync + - With `Use Labels` enabled: Only secrets matching your specified label are imported on initial sync + +