towerops/lib/towerops_web
Graham McIntire ae521d2108
Fix protobuf body parsing causing 400 errors on agent heartbeat
Plug.Parsers was trying to parse protobuf bodies as JSON, failing with
400 errors before the request reached the controller.

Changes:
- Added custom BodyReader to endpoint that skips parsing for protobuf
- When Content-Type is application/x-protobuf, return empty body to parser
- Controller reads the raw body directly for protobuf requests
- Added error handling for protobuf decode failures in heartbeat endpoint

This fixes the 400 errors agents were seeing on heartbeat requests.
2026-01-14 18:35:20 -06:00
..
components Add Agents navigation link to authenticated layout 2026-01-13 13:14:23 -06:00
controllers Fix protobuf body parsing causing 400 errors on agent heartbeat 2026-01-14 18:35:20 -06:00
live Enhance agent assignment UI with clear inheritance indicators 2026-01-14 16:20:20 -06:00
plugs Fix agent IP detection to use real client IP from proxy headers 2026-01-14 17:04:59 -06:00
endpoint.ex Fix protobuf body parsing causing 400 errors on agent heartbeat 2026-01-14 18:35:20 -06:00
gettext.ex init 2025-12-21 11:10:43 -06:00
router.ex Fix agent API to accept protobuf content type 2026-01-14 16:58:11 -06:00
telemetry.ex format 2025-12-21 11:31:08 -06:00
user_auth.ex Streamline login flow and fix test failures 2026-01-13 13:08:24 -06:00