Skip to content

feat: Add agent self-update mechanism#161

Merged
iAziz786 merged 1 commit intomainfrom
push-yxwutvwvzznn
Jan 23, 2026
Merged

feat: Add agent self-update mechanism#161
iAziz786 merged 1 commit intomainfrom
push-yxwutvwvzznn

Conversation

@iAziz786
Copy link
Contributor

Summary

Complete self-update system for the hostlink agent. The agent checks for updates, downloads binaries, and spawns a separate updater process that handles binary swap with rollback safety.

  • Lock manager, state manager, health checker, service controller, backup/restore
  • Download service with SHA256 verification and size limits
  • hostlink-updater binary with phased rollback, signal handling, 90s timeout
  • Self-update job with update check client, pre-flight checks, context cancellation
  • GoReleaser config, systemd KillMode=process/RestartSec=90, config env vars, integration tests

@iAziz786 iAziz786 merged commit 7970f6f into main Jan 23, 2026
1 check passed
@iAziz786 iAziz786 deleted the push-yxwutvwvzznn branch January 23, 2026 18:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant