You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am quite new to AWS stuff and I am using your lib - btw, thanks for it - based on examples provided. I am using it from ASP.NET Core 2.2 app against AWS Localstack running in Docker. I found a few issues:
I had to set:
opts.ConfigureSecretsManagerConfig = c => { c.AuthenticationRegion = <my_non_default_region_system_name> };
for it to work (in addition to region parameter for AddSecretsManager extension method). Otherwise, it was not failing, but no response (empty list) of secrets had been silently returned (200 response code from Secrets Manager in LS) in FetchAllSecretsAsync method.
Deleted secrets are not filtered by default. (I filtered them out in my SecretFilter implementation). Might be nice option (true/filtered out by default) to filter them automatically (SecretsManagerConfigurationProvider.LoadAsync/FetchAllSecretsAsync method).
For some reason, ARNs (their UUID suffix) seem to be changed by LS Secrets Manager with every request... Therefore, GetSecretValueAsync (inside SecretsManagerConfigurationProvider.LoadAsync loop) failed not being able to find requested resource/secret value (based on ARN passed from FetchAllSecretsAsync result). Changing the search criterion to secretValueRequest.SecretId = secret.Name; helped me (I am using prefixed keys like suggested here).
In case some of my findings are relevant, you can consider them for reflecting in the next version of the package.
Thanks.
The text was updated successfully, but these errors were encountered:
Hi @HK8080,
Thanks for posting your issue and I'm glad you find this library helpful!
Unfortunately, I never used Localstack so I don't have any direct experience.
Maybe @Erwinvandervalk, who added the support for alternative endpoints in #15, can provide you some help!
I am having the same problem working against LocalStack, specifically number 3 is blocking me as I cannot get past that. I am happy to put in a pull request (but I think I do not have permissions to do so).
Hi,
I am quite new to AWS stuff and I am using your lib - btw, thanks for it - based on examples provided. I am using it from ASP.NET Core 2.2 app against AWS Localstack running in Docker. I found a few issues:
opts.ConfigureSecretsManagerConfig = c => { c.AuthenticationRegion = <my_non_default_region_system_name> };
Deleted secrets are not filtered by default. (I filtered them out in my SecretFilter implementation). Might be nice option (true/filtered out by default) to filter them automatically (SecretsManagerConfigurationProvider.LoadAsync/FetchAllSecretsAsync method).
For some reason, ARNs (their UUID suffix) seem to be changed by LS Secrets Manager with every request... Therefore, GetSecretValueAsync (inside SecretsManagerConfigurationProvider.LoadAsync loop) failed not being able to find requested resource/secret value (based on ARN passed from FetchAllSecretsAsync result). Changing the search criterion to
secretValueRequest.SecretId = secret.Name;
helped me (I am using prefixed keys like suggested here).In case some of my findings are relevant, you can consider them for reflecting in the next version of the package.
Thanks.
The text was updated successfully, but these errors were encountered: