dotnet-sdk icon indicating copy to clipboard operation
dotnet-sdk copied to clipboard

secrets configuration provider - reload

Open poplevente opened this issue 2 years ago • 1 comments

Ask your question here

Hi All,

i'm using the secrets configuration provider like

var builder = WebApplication.CreateBuilder(args);
builder.WebHost.ConfigureAppConfiguration(config =>
{
    var daprClient = new DaprClientBuilder().Build();
    var secretDescriptors = new List<DaprSecretDescriptor>
    {
        new DaprSecretDescriptor("eshopsecrets")
    };
    config.AddDaprSecretStore("secret-store", secretDescriptors, daprClient);
});

is there a way or best practice to reload in case of secrets change? for now i see it's only on app startup. the azure keyvault configuration provider there is a reloadinterval. is something similar maybe? https://learn.microsoft.com/en-us/aspnet/core/security/key-vault-configuration?view=aspnetcore-7.0

thanks! Levente Pop

poplevente avatar Feb 09 '23 17:02 poplevente