Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom secretResolver should return unknown/any type? #89

Open
Eskibear opened this issue Aug 14, 2024 · 0 comments
Open

Custom secretResolver should return unknown/any type? #89

Eskibear opened this issue Aug 14, 2024 · 0 comments

Comments

@Eskibear
Copy link
Member

Use KeyVaultOptions.secretResolver to resolve the secret reference with customized logic, e.g. parse JSON string into an object.

    /**
     * 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>;

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 #78 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant