Skip to content

Agent self-update: make Latest the default - #2078

Merged
mastacontrola merged 2 commits into
dev-branchfrom
feat/agent-update-default-latest-dev
Nov 9, 2026
Merged

mastacontrola merged 2 commits into
dev-branchfrom
feat/agent-update-default-latest-dev

Conversation

@mastacontrola

@mastacontrola mastacontrola commented Nov 9, 2026 •

Copy link
Copy Markdown
Member

Admins expect hosts to update their own client, as the legacy FOG Client does. Self-update should have been on by default when it was added, and it was not. FOG_AGENT_UPDATE_MODE now defaults to Latest instead of Off.

Release note: this enables fog-agent auto-updates by default. The upgrade moves every server set to Off to Latest, including an Off chosen on purpose. To keep updates off, set FOG_AGENT_UPDATE_MODE back to Off under FOG Configuration after the upgrade. Update rings (default 0,3,7 days) pace the rollout.

  • Schema step 457 moves a stored off to latest. A fresh install reaches Latest the same way. Pinned and Latest stay as they are.
  • A server with no internet access logs one failed release sync per hour until Off is set. Its agents see no change.

Tests: schema-gate, schema-upgrade-replay, schema-manifest-consistent, agent-update-rings, agent-update-state, installer-schema-deploy pass. No DB test covers the flip itself (schema-executes skips without FOG_TEST_DSN).

Docs: FOGProject/fog-docs#216, FOGProject/fog-agent#42. Replaces #2076, which targeted working-1.6 by mistake.

🤖 Generated with Claude Code

mastacontrola and others added 2 commits November 9, 2026 05:01
Admins expect hosts to update their own client, as the legacy FOG Client
does. Self-update should have been on by default when it was added, and
it was not. FOG_AGENT_UPDATE_MODE now defaults to Latest instead of Off.

- Schema step 456 moves a stored Off to Latest, including an Off chosen
  on purpose. A fresh install reaches Latest the same way. Pinned and
  Latest are left alone.
- Update rings (default 0,3,7) still pace the rollout.
- A server with no internet access now logs one failed release sync per
  hour until Off is set; nothing else changes for its agents.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…te-default-latest-dev

# Conflicts:
#	packages/web/commons/schema.php
@mastacontrola
mastacontrola added this pull request to the merge queue Nov 9, 2026
Merged via the queue into dev-branch with commit dd0ff38 Nov 9, 2026
11 checks passed
@mastacontrola
mastacontrola deleted the feat/agent-update-default-latest-dev branch November 9, 2026 11:21
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