towerops/lib/towerops_web/controllers/api/v1
Graham McIntire c7df6a8569
Add CI-triggered mass agent update webhook
POST /api/v1/webhooks/agent-release triggers all connected agents
to self-update via their existing WebSocket channels. Authenticated
with a shared secret (AGENT_WEBHOOK_SECRET env var).

- Add ReleaseChecker.invalidate_cache/0 for fresh GitHub fetch
- Add Agents.list_updatable_agents/0 (enabled + seen < 10min)
- Add Agents.broadcast_mass_update/0 orchestration function
- Add WebhookAuth plug with timing-safe secret comparison
- Add AgentReleaseWebhookController with :webhook pipeline
- Configure AGENT_WEBHOOK_SECRET in dev/test/runtime configs
2026-02-10 13:40:32 -06:00
..
agent_release_webhook_controller.ex Add CI-triggered mass agent update webhook 2026-02-10 13:40:32 -06:00
devices_controller.ex fix: prevent site assignment when sites are disabled for org 2026-02-08 13:24:48 -06:00
geoip_controller.ex support prod ip db import 2026-01-28 14:03:35 -06:00
mib_controller.ex live device polling 2026-02-01 13:19:32 -06:00
sites_controller.ex security: fix critical vulnerabilities and atom exhaustion risks 2026-02-08 10:30:30 -06:00