chore(secrets): wire cache invalidation on rotate/delete, drop dead RevealEnabled, remove scaffold leftovers
This commit is contained in:
@@ -96,6 +96,11 @@
|
||||
|
||||
if (deleted)
|
||||
{
|
||||
// Evict any cached plaintext so the ${secret:} / ISecretResolver path does not serve a
|
||||
// stale value after this delete for the remainder of its TTL. Optional seam — a no-op
|
||||
// when the host has not registered an invalidator.
|
||||
Services.GetService<ISecretCacheInvalidator>()?.Invalidate(Name);
|
||||
|
||||
await OnDeleted.InvokeAsync();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user