-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathKeyVaultOptions.ts
More file actions
43 lines (37 loc) · 1.33 KB
/
KeyVaultOptions.ts
File metadata and controls
43 lines (37 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
import { TokenCredential } from "@azure/identity";
import { SecretClient, SecretClientOptions } from "@azure/keyvault-secrets";
/**
* Options used to resolve Key Vault references.
*/
export interface KeyVaultOptions {
/**
* Specifies the Key Vault secret client used for resolving Key Vault references.
*/
secretClients?: SecretClient[];
/**
* Specifies the credentials used to authenticate to key vaults that have no applied SecretClient.
*/
credential?: TokenCredential;
/**
* Configures the client options used when connecting to key vaults that have no registered SecretClient.
*
* @remarks
* The client options will not affect the registered SecretClient instances.
*/
clientOptions?: SecretClientOptions;
/**
* Specifies the callback used to resolve key vault references that have no applied SecretClient.
* @param keyVaultReference The Key Vault reference to resolve.
* @returns The secret value.
*/
secretResolver?: (keyVaultReference: URL) => string | Promise<string>;
/**
* Specifies whether to resolve the secret value in parallel.
*
* @remarks
* If not specified, the default value is false.
*/
parallelSecretResolutionEnabled?: boolean;
}