checker: report skipped TLS rule as StatusUnknown

When no endpoint is reached, the TLS posture cannot be assessed —
this is a non-evaluation, not an informational finding.
This commit is contained in:
nemunaire 2026-04-26 01:24:25 +07:00
commit 0fee494294

View file

@ -27,7 +27,7 @@ func (r *tlsChecksRule) Evaluate(ctx context.Context, obs sdk.ObservationGetter,
}
if len(data.ConnectionReports) == 0 {
return []sdk.CheckState{infoState("matrix.tls_checks.skipped", "No endpoint reached: TLS posture could not be assessed.")}
return []sdk.CheckState{unknownState("matrix.tls_checks.skipped", "No endpoint reached: TLS posture could not be assessed.")}
}
out := make([]sdk.CheckState, 0, len(data.ConnectionReports))