arcus.security icon indicating copy to clipboard operation
arcus.security copied to clipboard

✨ [New]: Cache secrets on a more fine grained level

Open fgheysels opened this issue 2 months ago • 4 comments

Is your feature request related to a problem? Please describe. When registering a KeyVault secret-provider, we can specify a cache-duration. The drawback of this approach is that this cache-duration applies for all secrets that are being retrieved. I think it would be good to have the ability to specify the cache-duration on a 'per secret' level.

Describe the solution you'd like Provide an overload of the GetSecret method that takes a TimeSpan that defines the cache-duration for the secret that is being retrieved.

fgheysels avatar Oct 22 '25 19:10 fgheysels

With the new secret store setup, this can be added to the SecretOptions when requesting a secret from the store.

stijnmoreels avatar Oct 23 '25 04:10 stijnmoreels

I guess this issue can be closed then ? :)

fgheysels avatar Oct 23 '25 06:10 fgheysels

I guess this issue can be closed then ? :)

The fine-grained caching control 'could be' added, but isn't 'already added' to the SecretOptions yet. 😉

stijnmoreels avatar Oct 23 '25 07:10 stijnmoreels

Ah, in that case, I misunderstood your comment. :)

fgheysels avatar Oct 24 '25 12:10 fgheysels