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

Caching a transformed value #143

Closed jamiewinder closed 9 months ago

jamiewinder commented 9 months ago

I often find myself reading a secret and transforming it somehow. Usually converting it from JSON into a POCO.

As far as I can tell, there is no way to cache this transformed value, just the original string / binary. It seems being able to cache the transformed value would be much more useful.

jbct commented 9 months ago

Thanks for the request, jamiewinder. Unfortunately we have no plans to do client processing in the caching library of secret values. One thing you could look into is leveraging the SecretCacheHook to do some processing in your application.