fix(secrets): audit malformed ${secret:} tokens, cap SecretName at 450, resolve local UNC shares (scadaproj#52)
Claude-Session: https://claude.ai/code/session_01GT67AEHd2Acv1YPwGfXEoV
This commit is contained in:
@@ -57,6 +57,13 @@ public sealed class ReferenceAuditFlow : IInteractiveFlow
|
||||
continue;
|
||||
}
|
||||
|
||||
if (finding.Status == ReferenceStatus.Malformed)
|
||||
{
|
||||
console.MarkupLineInterpolated(
|
||||
$"[red]Malformed ${{secret:}} token[/] at {string.Join(", ", finding.ConfigPaths)} — the app refuses to start with it; give it a name and a closing '}}'.");
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!IsSeedable(finding.Status))
|
||||
{
|
||||
continue; // Ok (nothing to do) or PresentUnverified (unreachable on a KEK-capable session).
|
||||
@@ -132,7 +139,7 @@ public sealed class ReferenceAuditFlow : IInteractiveFlow
|
||||
{
|
||||
ReferenceStatus.Ok => "green",
|
||||
ReferenceStatus.PresentUnverified => "yellow",
|
||||
_ => "red", // Missing / Tombstoned / Undecryptable / InvalidName
|
||||
_ => "red", // Missing / Tombstoned / Undecryptable / InvalidName / Malformed
|
||||
};
|
||||
|
||||
// A deterministic "N Status" count-by-status roll-up, ordered by the status enum.
|
||||
|
||||
Reference in New Issue
Block a user