Azure / Azure/AppConfiguration-JavaScriptProvider

Custom secretResolver should return unknown/any type?

Aberta
#89 0 comentários 0 reações 0 responsáveis Ver no GitHub
Linguagem predominante
TypeScript
Estrelas
18
Forks
13
Merge médio
1d 5h
PRs com merge (30d)
4

Descrição

Use `KeyVaultOptions.secretResolver` to resolve the secret reference with customized logic, e.g. parse JSON string into an object.
```ts
/**
* 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;
```
Note: Here I think `secretResolver` should return `known` type instead of `string`, as we allow values of the config map to be any type.

_Originally posted by @Eskibear in https://github.com/Azure/AppConfiguration-JavaScriptProvider/issues/78#issuecomment-2287726906_

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.