Repository navigation
Conversation
A new setting, off by default, creates an Install Updates server action. The Vulnerabilities tab's button opens that action, so CloudBolt's role permissions, the Requires approval flag, bulk runs and MCP all apply. The job installs every update the server's repositories offer (RHEL and Oracle Linux 8-10, Amazon Linux 2023, Ubuntu 22.04 and 24.04), restarts the server when that is needed and allowed, removes old kernels after a confirmed restart, rescans, and records the counts before and after. - The install runs detached in the guest and the job polls it, so a restarted SSH service or a transport timeout does not end it. - The restart is issued from inside the guest; the job waits for a new boot identifier. - Never a server in an Unassigned group, never when the setting is off (the engine refuses, not only the button), one run per server. - vuln_api.py gives plug-ins scan_and_wait and install_updates. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…est found Windows Server 2022 and 2025 now get the same Install Updates action. The worker uses the built-in Windows Update Agent from the server's configured source (WSUS by policy, otherwise Windows Update) and runs as a SYSTEM scheduled task, because the agent refuses download and install from a remote session. A server with the Configuration Manager client, a workstation, or another Windows version is refused before any change. Found by the first live run on Ubuntu 22.04 and Amazon Linux 2023: - The package count came from apt's console output and read 0 after 190 upgrades; it now comes from a package snapshot before and after. - Ubuntu's old kernel stayed installed, and the scan kept listing about 6,600 vulnerabilities for it: apt protects the previous kernel. The cleanup now removes the older kernel's packages by name, only when the server runs its newest kernel and a simulation removes nothing else, and no longer depends on this run having done the restart. A new setting, on by default, turns the cleanup off. - Amazon Linux 2023 names its kernel package kernel6.x, so the newest kernel was not found. - A run with nothing to install now says "No updates were available". Also: the restart delay is 20 seconds on both systems, the wait for a restarted server defaults to 60 minutes, a restart that could not be started fails early, and a clock change is not read as a restart. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The same setting now also creates a resource action that updates a resource's own servers one at a time with the per-server engine. The resource Vulnerabilities tab opens it, shows progress (server n of m), and keeps a result line for the last run. - A failed server ends the job as a failure and the remaining servers are not attempted. Servers the requester may not act on, or that are not eligible, are skipped and the run continues. A pending restart is not a failure. - Scan all servers and Install updates on all servers exclude each other on one resource. - Any failed server now makes a bulk server-action run a failure too. - Servers the requester cannot view are named "Server <id>" in the job output. A resource action an admin switched off does not run. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…age manager's error On Ubuntu the job reported 0 packages after a full upgrade. The counting is right; the likely cause is needrestart, run in automatic mode by apt, restarting our own transient unit once libc6 was upgraded, so the worker ran twice. The worker now excludes its unit from needrestart for the run (a conf.d file removed afterwards), starts its unit with RefuseManualStop, keeps the first package snapshot, and a second start of a run never begins a second upgrade. Other services are still restarted automatically. Not yet proven on a live server. When the package manager fails, up to 12 lines of its error now reach the job output; dnf's "Transaction test error" used to arrive alone. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…wording The tab's failure line carried only dnf's first line, "Error: Transaction test error:", while the cause was in the job output. The record message now adds the first detail line, and repeated lines are dropped. "1 old kernel package was removed" and the minute counts use the singular. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Owner
Author
|
Replaced by #173: the same change as one commit. This branch's history had a lab hostname in two code comments, which the Secret scan check rejects; the new branch has it removed from the files and from history. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes
The Vulnerabilities extension (
extensions/XUI-wqrj0e3p) can now fix what it finds. A new setting, off by default, adds two actions:Both are ordinary CloudBolt actions that the extension creates, so role permissions, Requires approval, bulk runs and MCP apply. The tab buttons open the actions' own dialogs. Nothing runs while the setting is off, and never on a server in an Unassigned group.
dnf -y --refresh upgrade--releasever=latest(its repositories are locked to the image's release)apt-get update, then a non-interactivedist-upgradeHow it works:
New settings: Offer Install updates (off), Remove old kernels after a restart (on), minutes to wait for a restarted server (60), minutes allowed for installing (90).
vuln_api.pygives plug-insscan_and_wait,install_updatesandinstall_updates_on_resource.Testing
967 unit tests pass (
python -B -m unittest discover -s extensions/XUI-wqrj0e3p/tests -p "test_*.py"). Each step was reviewed independently before it was tested live.Live on a development appliance:
Also seen live: the setting creates both actions and the dialogs show the restart option; the action is not offered on a server in an Unassigned group; Scan all servers is refused while a resource update runs, and so is a second resource run; the tab shows the running step and the result line.
What remains after updating is software the package manager does not own (libraries bundled inside agents and tools). It stays listed with a fix version.
Not verified
After merge
Sync
extensions/XUI-wqrj0e3pfrommainand recycle the web workers. The actions do not exist until an administrator turns on Offer Install updates in Vulnerability Settings.🤖 Generated with Claude Code