Kralizek / Kralizek/AWSSecretsManagerConfigurationExtensions
Is it possible to provide AcceptedArns through config file?
Nobody has claimed this yet.
- #61 by @devklick — closed without merging
- Dominant language
- C#
- Stars
- 260
- Forks
- 54
- Avg merge
- 5h 56m
- Merged PRs (30d)
- 5
Description
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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the appsettings.json options and the Program.cs call to AddSecretsManager(region: RegionEndpoint.USWest2). Trace how acceptedSecretArns and RegionEndpoint are supplied to the provider, then determine the supported configuration path for both values; done means the behavior is documented or implemented and verified with AWS Secrets Manager.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, csharp
- Domain
- backend, cloud
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100