UNPKG

@confkit/azure

Version:

[![npm](https://img.shields.io/npm/v/%40confkit%2Fazure)](https://www.npmjs.com/package/@confkit/azure) [![license](https://img.shields.io/badge/license-MIT-blue)](https://github.com/alexdotpink/confkit/blob/main/LICENSE) ![node](https://img.shields.io/ba

24 lines (21 loc) 815 B
import { TokenCredential } from '@azure/identity'; type AzureSecretsOptions = { /** e.g. https://my-vault.vault.azure.net */ vaultUrl: string; credential?: TokenCredential; /** Filter secret names by prefix */ namePrefix?: string; /** Map secret name to config key */ mapNameToKey?: (name: string) => string; ttlMs?: number; jitter?: number; background?: boolean; onRotate?: (key: string, value: string, meta: { version?: string; }) => void; /** Max concurrent getSecret calls */ maxConcurrency?: number; }; type Source = () => Promise<Record<string, string>> | Record<string, string>; declare function azureKeyVaultSource(opts: AzureSecretsOptions): Source; export { type AzureSecretsOptions, azureKeyVaultSource, azureKeyVaultSource as default };