Commit Graph

2 Commits

Author SHA1 Message Date
clawbot
d621799b8e feat: enhance /api/v1/status endpoint with full monitoring data
All checks were successful
check / check (push) Successful in 3s
The /api/v1/status endpoint previously returned only {"status": "ok"}.
It now returns comprehensive monitoring state including:

- Summary counts (domains, hostnames, ports, certificates with breakdown)
- Full domain state with nameservers and last check timestamps
- Hostname state with per-nameserver DNS records and status
- Port state with open/closed status and associated hostnames
- TLS certificate state with CN, issuer, expiry, SANs, and status
- Last updated timestamp for the overall monitoring state

All data is derived from the existing state snapshot, providing
operational visibility without exposing configuration details
like webhook URLs or API tokens.
2026-03-10 04:07:02 -07:00
144a2df665 Initial scaffold with per-nameserver DNS monitoring model
Full project structure following upaas conventions: uber/fx DI, go-chi
routing, slog logging, Viper config. State persisted as JSON file with
per-nameserver record tracking for inconsistency detection. Stub
implementations for resolver, portcheck, tlscheck, and watcher.
2026-02-19 21:05:39 +01:00