Files
f30e2a1393 Fix empty cyber-threats layer and false AIS outage notices
Both found by @BeauBoorman running Shadowbroker live (#666).

Cyber threats: CISA KEV dateAdded values are date-only ("2026-11-03"), so
fromisoformat() returns naive datetimes and subtracting them from an aware
"now" raised TypeError. The bare except skipped every entry, so the layer
always showed zero recent CVEs from a healthy catalog. Parse them as UTC.

AIS: with every ship layer off the stream is stopped on purpose, but the
banner still blamed AISStream (and suggested an AISHub signup) and
/api/health reported "degraded" when AIS_API_KEY was set. ais_proxy_status()
now reports ship_layers_active; the banner and the health escalation skip
that case. Older backends without the field keep the old behavior.

Tests for both run in the CI backend smoke set; new banner tests cover the
frontend.

Co-Authored-By: Beau Boorman <216379357+BeauBoorman@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-04 20:34:35 -07:00
..
2026-06-16 17:05:46 -06:00