mirror of
https://github.com/Monkopedia/rouse-context.git
synced 2026-11-29 11:13:05 +00:00
Two related bugs in the security-check pipeline that produced noisy and misleading notifications for a freshly-installed device: #227: HttpCtLogFetcher passed the response body straight to the JSON parser without checking the HTTP status. crt.sh's transient 502/503 HTML error pages got surfaced as "Malformed CT log response" -- wording that reads as "the CT log itself is corrupt" when the actual cause is a Sectigo outage. Now throw IOException on non-2xx so CtLogMonitor classifies as "Could not reach CT log service" instead. #228: Pre-onboarding devices (no cert, no subdomain) fired "Security Check" warning notifications describing a state that is just "not set up yet." Introduce SecurityCheckResult.Skipped for "not applicable" cases and route it through the worker without firing a notification. The Settings screen renders "Waiting for onboarding" in muted colours so the audit trail is still visible for users who look. Constraints preserved: - Alert path unchanged -- real issuer mismatches still fire loudly. - Genuine network / I/O failures still produce Warning notifications. - Only pre-onboarding classifications were reclassified to Skipped. Closes #227 Closes #228 Co-authored-by: Claude Opus 4 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| src | ||
| build.gradle.kts | ||