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:
parent
d19bda771d
commit
0fee494294
1 changed files with 1 additions and 1 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue