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

Offline file cache does not work with managed identities. #101

Closed
jimmyca15 opened this issue Jun 25, 2019 · 7 comments
Closed

Offline file cache does not work with managed identities. #101

jimmyca15 opened this issue Jun 25, 2019 · 7 comments
Assignees
Labels
.NET Config Provider Issues related to the AppConfig .NET Core configuration provider. OfflineCache

Comments

@jimmyca15
Copy link
Member

The AzureAppConfigurationProvider has the capability to use an offline file cache, and it also has the capability to connect to Azure App Configuration via Managed Identity for Azure Services. When using both of these together an error is hit saying "Connection string is required". Thus the offline file cache can never be used in applications designed to authenticate with managed identities.

@jimmyca15 jimmyca15 added the .NET Config Provider Issues related to the AppConfig .NET Core configuration provider. label Jun 25, 2019
@jimmyca15
Copy link
Member Author

@MSGaryWang

@jusbuc2k
Copy link

Any update on this issue?

@MSGaryWang
Copy link
Contributor

We just have new release for managed identity update and will have another release base on it soon for offline cache.

@zhenlan
Copy link
Contributor

zhenlan commented Feb 21, 2020

When managed identity (or any AAD authentication) is used to connect to App Configuration, the user need to provide Key, IV and SignKey as part of OfflineFileCacheOptions.

We should throw a more helpful error when above condition is detected. @abhilasharora can you please make the change?
https://github.com/Azure/AppConfiguration-DotnetProvider/blob/de3fc18aad838ede93a4796f924a803b67656f7b/src/Microsoft.Extensions.Configuration.AzureAppConfiguration/OfflineFileCache.cs#L247

@zhenlan
Copy link
Contributor

zhenlan commented Feb 25, 2020

Close this as the remaining work is tracked in Azure/AppConfiguration-DotnetProvider#135.

@wouterroos
Copy link

@zhenlan Is there a workaround for this issue in the meantime?

@abhilasharora
Copy link
Contributor

@wouterroos One workaround for this issue would be to use a custom implementation of offline cache. The configuration provider allows users to provide their own implementation of IOfflineCache using the SetOfflineCache method.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
.NET Config Provider Issues related to the AppConfig .NET Core configuration provider. OfflineCache
Projects
None yet
Development

No branches or pull requests

6 participants