towerops/lib/towerops_web
Graham McIntire fbce65070a
Add agent restart and self-update commands
Add server-initiated restart and self-update capabilities for remote
agents. Restart broadcasts on the lifecycle PubSub topic causing the
agent to exit cleanly for Docker to restart. Self-update fetches the
latest release from GitHub, finds the matching binary for the agent's
architecture, and sends the download URL with SHA256 checksum.

- Add restart_agent/1 and update_agent/3 to Agents context
- Handle :restart_requested and :update_requested in AgentChannel
- Add superuser-only Restart and Update buttons on agent show page
- Add ReleaseChecker module for GitHub Releases API with 5-min cache
- Add arch field to AgentHeartbeat protobuf for architecture detection
- Store arch in agent metadata from heartbeat
2026-02-10 13:06:10 -06:00
..
channels Add agent restart and self-update commands 2026-02-10 13:06:10 -06:00
components Live-ticking relative timestamps on agents page 2026-02-10 10:24:21 -06:00
controllers fix: prevent site assignment when sites are disabled for org 2026-02-08 13:24:48 -06:00
helpers more tests and fixes 2026-02-07 11:50:18 -06:00
live Add agent restart and self-update commands 2026-02-10 13:06:10 -06:00
plugs security: add session inactivity timeout and comprehensive security documentation 2026-02-08 10:47:44 -06:00
endpoint.ex fix: improve agent polling and SNMP testing 2026-02-05 12:34:28 -06:00
gettext.ex init 2025-12-21 11:10:43 -06:00
gettext_helpers.ex feat: migrate email templates to gettext (Phase 2 - Emails) 2026-02-02 09:48:30 -06:00
permissions.ex handle mikrotik ssh 2026-02-02 16:42:18 -06:00
plug_exceptions.ex handle exceptions gracefully on api endpoints 2026-02-04 12:18:14 -06:00
router.ex Add admin agents page at /admin/agents 2026-02-10 10:56:10 -06:00
telemetry.ex fix: add Oban config to dev.exs and replace Exq telemetry with Oban 2026-01-24 16:39:45 -06:00
user_auth.ex test fixes 2026-02-09 15:30:52 -06:00