watchdog/internal/api
NotAShelf d1181d38f0
watchdog: add log sanitization and request tracking
Stuff to prevent possible log injection attacks via weird characters,
now sanitized with `strconv` stuff.

- X-Request-ID is now traced in ingestion handler
- ValidateWithMap renamed to Validate (xd)
- Some new tests :D

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I286ec399a5c4a407f0cc117472c079446a6a6964
2026-03-10 08:43:53 +03:00
..
event.go api/event: remove legacy validate function; use domain map 2026-03-10 08:43:52 +03:00
event_test.go api/event: remove legacy validate function; use domain map 2026-03-10 08:43:52 +03:00
handler.go watchdog: add log sanitization and request tracking 2026-03-10 08:43:53 +03:00
handler_test.go internal: better device classification via UA parsing 2026-03-02 22:38:26 +03:00