Hello,
I'm trying to decouple accepted ARNs list from the program.cs to a config file, I have my config options defined below in appsettings.json,
"SecretsManagerConfigurationProviderOptions": {
"acceptedSecretArns": [ "my-arn" ]
}
Then from the code, I just call the manager like below
try
{
var config = builder.Build();
logger?.Information("reading secure settings from secrets manager");
builder.AddSecretsManager(region: RegionEndpoint.USWest2);
config = builder.Build();
}
catch (Exception ex)
{
logger?.Error(ex, "Unable to configure SecretsManager");
}
return builder;
Here, I'm not sure if the accepdSecretArns would be passed down to the library since I don't have the environment to test AWS secrets manager. Could you share your thoughts if this is correct approach?
Also, I would like to make RegionEndpoint as configurable from the appsettings option, any thoughts if I can achieve this?
Thanks
Hello,
I'm trying to decouple accepted ARNs list from the program.cs to a config file, I have my config options defined below in appsettings.json,
Then from the code, I just call the manager like below
Here, I'm not sure if the accepdSecretArns would be passed down to the library since I don't have the environment to test AWS secrets manager. Could you share your thoughts if this is correct approach?
Also, I would like to make RegionEndpoint as configurable from the appsettings option, any thoughts if I can achieve this?
Thanks