fix(secrets-cli): bundle import — verbatim ApplyReplicated writes, format gate, entry-aware errors

This commit is contained in:
Joseph Doherty
2026-07-19 09:35:39 -04:00
parent 4576f73c4c
commit 138e2c1006
3 changed files with 171 additions and 13 deletions
@@ -14,8 +14,11 @@ namespace ZB.MOM.WW.Secrets.Cli.Interactive;
/// </summary>
public sealed record SecretBundle
{
/// <summary>The only bundle format version this build can read or write.</summary>
public const int CurrentFormatVersion = 1;
/// <summary>The on-disk bundle format version (currently <c>1</c>).</summary>
public int FormatVersion { get; init; } = 1;
public int FormatVersion { get; init; } = CurrentFormatVersion;
/// <summary>When the bundle was exported (UTC).</summary>
public DateTimeOffset ExportedUtc { get; init; }