feat(secrets): abstractions seam interfaces

This commit is contained in:
Joseph Doherty
2026-07-15 16:30:19 -04:00
parent d78b533045
commit 16b32257f5
5 changed files with 161 additions and 0 deletions
@@ -0,0 +1,17 @@
namespace ZB.MOM.WW.Secrets.Abstractions;
/// <summary>
/// Publishes an encrypted row to cluster peers. Core registers a no-op implementation;
/// <c>ZB.MOM.WW.Secrets.Akka</c> (deferred) provides the real cluster implementation.
/// </summary>
public interface ISecretReplicator
{
/// <summary>
/// Broadcasts the already-encrypted <paramref name="row"/> to peer nodes. This is a no-op
/// in single-node deployments.
/// </summary>
/// <param name="row">The encrypted row to replicate.</param>
/// <param name="ct">A token to cancel the operation.</param>
/// <returns>A task that completes when the row has been published.</returns>
Task PublishAsync(StoredSecret row, CancellationToken ct);
}