feat(secrets): default resolver with TTL cache + audit (never logs plaintext)

This commit is contained in:
Joseph Doherty
2026-07-15 16:55:24 -04:00
parent 10455ec53b
commit 79ebd14baa
7 changed files with 435 additions and 0 deletions
@@ -0,0 +1,16 @@
using ZB.MOM.WW.Secrets.Abstractions;
namespace ZB.MOM.WW.Secrets.Tests.Fakes;
/// <summary>
/// An <see cref="ISecretActorAccessor"/> test double that reports a fixed (or <c>null</c>) actor.
/// </summary>
public sealed class FixedActorAccessor : ISecretActorAccessor
{
/// <summary>Creates an accessor that always reports <paramref name="actor"/>.</summary>
/// <param name="actor">The actor to report, or <c>null</c>.</param>
public FixedActorAccessor(string? actor) => CurrentActor = actor;
/// <inheritdoc />
public string? CurrentActor { get; }
}