Azure / Azure/AppConfiguration-JavaScriptProvider

Custom secretResolver should return unknown/any type?

オープン
#89 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
TypeScript
スター
18
フォーク
13
平均マージ
1日 5時間
マージ済み PR(30日)
4

説明

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_

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。