@confkit/azure
Version:
[](https://www.npmjs.com/package/@confkit/azure) [](https://github.com/alexdotpink/confkit/blob/main/LICENSE)  • 815 B
text/typescript
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 };