Expand description
app.update-status: what srv knows about newer AgentMux releases
(backend::update::check), for a window that opens after the last
app:updatestatus event. Downloading the release it found
(backend::update::download), restarting into it once agents are idle and
stopping that wait (backend::update::restart) are the user’s clicks only:
they come through the host (POST /api/v1/host/app_update), which agents,
holding the instance auth key, can’t impersonate.
app.upgrade-requests: agents’ requests waiting for the user
(backend::upgrade_request); the user’s answer comes only through the
host (POST /api/v1/host/upgrade_request), which agents can’t impersonate.
And the agent’s side over HTTP: the App tool’s version
(GET /api/v1/app/update-status) and upgrade
(POST /api/v1/agent/self/upgrade).
Structs§
- Host
AppUpdate 🔒Action - The user’s click in the version panel, relayed by the host.
- Update
Status 🔒Query - Query of
GET /api/v1/app/update-status.
Functions§
- handle_
host_ 🔒app_ update POST /api/v1/host/app_update: Download, Upgrade & restart (or Restart now) and Cancel in the version panel, relayed by the CEF host with its own token. Answers the status after the action, asdata.- handle_
host_ 🔒upgrade_ request POST /api/v1/host/upgrade_request: the user’s Upgrade now / Later on an agent’s upgrade request, relayed by the CEF host with its own token. The instance auth key, which every agent has, isn’t enough.- handle_
request_ 🔒upgrade POST /api/v1/agent/self/upgrade: theApptool’supgrade. Starts the upgrade when the user’s own turn asked for it (self_quit::gate_upgrade: as forQuitSelf, but not a Swarm broadcast), otherwise files a sensitive request: the super agent decides and the person can veto the countdown.- handle_
update_ 🔒status GET /api/v1/app/update-status: theApptool’sversion, which asks withcheck=1. A check that can’t reach GitHub answers what srv knew.- register