-
Notifications
You must be signed in to change notification settings - Fork 3.3k
App Config Provider Module Level Load #28241
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
Changes from 5 commits
1c7ba08
27661f2
5296487
f4f7a11
d74cb02
1c89e43
c8b3c8f
3d377cd
78c59f6
d263059
cfdf398
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,6 +6,7 @@ | |
|
|
||
|
|
||
| class AzureAppConfigurationKeyVaultOptions: | ||
|
|
||
| """ | ||
| Options for connecting to Key Vault. | ||
|
|
||
|
|
@@ -16,11 +17,10 @@ class AzureAppConfigurationKeyVaultOptions: | |
| provided. | ||
| :type secret_clients: list[~azure.keyvault.secrets.SecretClient] | ||
| :param secret_resolver: A function that takes a URI and returns a value. | ||
| :type secret_resolver: callable | ||
| :type secret_resolver: Callable[[str], str] | ||
| """ | ||
|
|
||
| def __init__(self, credential=None, secret_clients=None, secret_resolver=None): | ||
| # type: (TokenCredential, List[SecretClient], Callable) -> None | ||
| def __init__(self, *, credential=None, secret_clients=None, secret_resolver=None): | ||
| # type: (TokenCredential, List[SecretClient], Callable[[str], str]) -> None | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We should use inline type hints and overloads (though I can't see where the Vault endpoint comes from?): @overload
def __init__(self, credential: TokenCredential,*, secret_resolver: Optional[Callable[[str], str]] = None) -> None
...
@overload
def __init__(self, secret_client: List[SecretClient], *, secret_resolver: Optional[Callcable[[str], str]] = None) -> None
...
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If I know what you are talking about, the "vault endpoint" comes from App Configuration inside of the key vault reference.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Also, the options here are, Credential with List of Clients, or List of Clients with Secret Resolver. The idea is that we default either to the TokenCredential provided or the Secret Resolver.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I also ran into an issue with |
||
| self.credential = credential | ||
| self.secret_clients = secret_clients | ||
| self.secret_resolver = secret_resolver | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.