towerops/test/towerops_web/plugs
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
..
api_auth_test.exs Add comprehensive tests for API authentication and authorization 2026-02-05 16:39:01 -06:00
capture_timezone_test.exs Remove misleading duplicate header test from CaptureTimezone 2026-02-01 11:08:12 -06:00
check_policy_consent_test.exs fix user session controller test 2026-02-03 13:42:24 -06:00
detect_eu_user_test.exs snmp v3 support 2026-02-04 12:02:38 -06:00
mobile_auth_test.exs more tests and fixes 2026-02-07 11:50:18 -06:00
rate_limit_test.exs docs: add gettext internationalization design 2026-02-02 09:33:01 -06:00
remote_ip_logger_test.exs more tests 2026-02-03 13:20:33 -06:00
security_headers_test.exs add security headers 2026-01-29 10:33:24 -06:00
update_session_activity_test.exs more tests 2026-02-03 13:20:33 -06:00
webhook_auth_test.exs Add CI-triggered mass agent update webhook 2026-02-10 13:40:32 -06:00