TLS reports: count each report once, not once per policy #406

Merged
jcoffey-dev merged 1 commits from fix/402-tls-report-warning-once into main 2026-11-16 17:55:51 +00:00
Owner

A TLS report logged one incoming-report.tls-report (or -with-warnings) event per policy, up to five, so a report covering both an MTA-STS and a DANE policy counted as two reports on the dashboard (forum t/232, post 27).

LogReport for TlsReport now logs one event per report: with warnings when any policy had a failed session, TotalSuccesses/TotalFailures summed over all policies, Domain the distinct policy domains, and Policy/Details one entry per policy (the first five, as before). New test a_tls_report_is_one_report_whatever_its_policies.

Fixes #402

A TLS report logged one `incoming-report.tls-report` (or `-with-warnings`) event per policy, up to five, so a report covering both an MTA-STS and a DANE policy counted as two reports on the dashboard (forum t/232, post 27). `LogReport for TlsReport` now logs one event per report: with warnings when any policy had a failed session, `TotalSuccesses`/`TotalFailures` summed over all policies, `Domain` the distinct policy domains, and `Policy`/`Details` one entry per policy (the first five, as before). New test `a_tls_report_is_one_report_whatever_its_policies`. Fixes #402
jcoffey-dev added 1 commit 2026-11-16 17:27:02 +00:00
TLS reports: count each report once, not once per policy
ci / fork-checks (pull_request) Skipped
ci / build (pull_request) Skipped
github/ci (branch) GitHub Actions
ci / github (pull_request) Successful in 7m43s
f87e8d689f
A TLS report logged one incoming-report event per policy, up to five, so
a report covering both an MTA-STS and a DANE policy counted as two
reports on the dashboard, and as two reports with warnings when both
had failures. It now logs one event per report: with warnings when any
policy had a failed session, the totals summed over all policies, and
each policy's domain, type and figures kept in the event.

Fixes #402
jcoffey-dev merged commit e849c0d2b8 into main 2026-11-16 17:55:51 +00:00
jcoffey-dev deleted branch fix/402-tls-report-warning-once 2026-11-16 17:55:51 +00:00
Sign in to join this conversation.