aws / aws-secretsmanager-caching-net

The AWS Secrets Manager .NET caching client enables in-process caching of secrets for .NET applications.
https://docs.aws.amazon.com/secretsmanager/latest/userguide/retrieving-secrets_cache-net.html
Apache License 2.0
55 stars 23 forks source link

After upgrading to .NET 6 GetSecretString ocassionally returns null #60

Closed dennis3001 closed 1 year ago

dennis3001 commented 1 year ago

Description We have recently upgraded .NET Web API application that runs on ECS from .NET 3.1 to .NET 6.0 This package was upgraded from 1.0.3 to 1.0.5. In the past few days we observed twice that GetSecretString returns null instead of the secret value. And it keeps returning null until cache TTL expiry. After that correct value is returned again.

To Reproduce Unfortunately steps to reproduce are not known yet

Expected behavior GetSecretString always returns correct value

Environment

.NET version = 6.0 Linux, docker image mcr.microsoft.com/dotnet/sdk:6.0

Additional context

goyalya commented 1 year ago

Thank you for submitting the request. Could you please share detailed steps to reproduce the issue.