Self-updating agent image variant #129

Closed
opened 2026-11-23 17:13:48 +00:00 by Sebi · 0 comments
Owner

…-autoupdate variant of each agent image: the same agent binary plus one layer with a launcher as PID 1. Updating is chosen by image, not by an environment variable; the plain image contains no update code.

  • The launcher asks the API for the target version (GET /api/v1/agent/release, agent token): the API's own release, so agents follow the platform and are never newer than it (protocol N-1 covers the gap).
  • Downloads the binary for its own architecture, verifies signature (#34) and checksum, keeps it on the data volume.
  • Stops the running agent gracefully (it releases its checks), starts the new one, falls back to the previous version if it does not become healthy.
  • Forwards signals, logs every step, reports failures to the API.
  • Tested with a fake API, including arm/v6 under QEMU.
`…-autoupdate` variant of each agent image: the same agent binary plus one layer with a launcher as PID 1. Updating is chosen by image, not by an environment variable; the plain image contains no update code. - The launcher asks the API for the target version (`GET /api/v1/agent/release`, agent token): the API's own release, so agents follow the platform and are never newer than it (protocol N-1 covers the gap). - Downloads the binary for its own architecture, verifies signature (#34) and checksum, keeps it on the data volume. - Stops the running agent gracefully (it releases its checks), starts the new one, falls back to the previous version if it does not become healthy. - Forwards signals, logs every step, reports failures to the API. - Tested with a fake API, including arm/v6 under QEMU.
Sebi added this to the M13 Agent distribution & self-update milestone 2026-11-23 17:13:48 +00:00
Sebi closed this issue 2026-11-23 18:27:48 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ZB-Server/uptimesebi#129