Skip to content

opt-in auto-update timer that follows the pinned release line on Ansible and cloud-init hosts #175

Description

@thiras

Problem

Every deployment path pins a release line (X.Y) and installs the line's newest release at deploy time; nothing re-runs afterwards. An Ansible or cloud-init host stays on the release it was deployed with until someone runs the playbook again, and decdn self-update is explicitly off there (it would replace the CLI outside the install and fail the next deploy's version check). The chart and Compose need a rollout restart or a new digest by hand.

So after every decdn/decdn release, each operator has to be nudged. Pre-mainnet, where wire-breaking releases are allowed and the testnet is redeployed rather than migrated, a node that misses a release is a node that stops serving.

Proposal

An opt-in auto-update channel for the Ansible and cloud-init paths (decdn_node_auto_update: true), implemented as what the deploy already does, re-run on a timer:

  • A systemd timer (daily, with a random delay) that resolves the pinned line's newest signed release, and when it differs from the installed one: downloads and verifies the signature the role already verifies, swaps the binary and restarts the unit with systemctl (SIGTERM is the daemon's graceful drain, as the lifecycle doc says; decdn node drain is not for systemd-managed nodes). The restart hygiene follows the operator upgrade appendix so a just-advertised blob is not refused mid-pull.
  • Holds: an exact decdn_node_version: "X.Y.Z" disables the timer, as it already disables line-following at deploy time. A decdn_node_update_window limits the hours it may restart.
  • Observability: the timer writes a journal line and bumps a textfile metric (decdn_node_update_last_run, decdn_node_update_installed_version), and the monitoring rules get an alert for a host more than one release behind its line for 48 h, so a failed update is seen without the operator checking.
  • The sponsord and onramp roles get the same timer under the same flag, since they pin the same release line.
  • For the chart: document image.tag: X.Y + an updater (Keel or Flux image automation) as the equivalent; Compose keeps its digest pin and gets a scripts/compose-update.sh that bumps it from the line.

Default off in this release, default on in the next once the fleet has run it for a cycle.

Alternatives considered

  • Node self-update built into decdn-node. The daemon replacing its own binary under a package manager or an image is the failure mode the devops docs already warn about; the deploy tooling owns the install, so it owns the update.
  • Keep nudging operators on Discord. That is the current state.

Related

Activity

  1. added
    enhancement
    on Oct 24, 2026
  2. added theissue type on Oct 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions