dotnet-sdk
dotnet-sdk copied to clipboard
secrets configuration provider - reload
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