You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
homelab_aptUpdate upgrade:true runs apt-get upgrade without the confirm gate #91
homelab_aptUpdate with upgrade: true runs sudo apt-get upgrade -y without the confirm=true gate. The project's own policy is that tools which change running state must require confirmation.
Where
mcp-server/src/tools/aptUpdate.ts:6-24
CLAUDE.md, Security section (list of confirm-gated tools)
skills/os-update-management/SKILL.md:52,114, which tells the agent to call it with upgrade: true
README.md:170 (described as "Run apt update, list upgradable packages")
Details
upgrade: true appends sudo apt-get upgrade -y, which upgrades packages and can upgrade Docker, the kernel, or firmware. Less disruptive tools are gated: composeUp, serviceRestart, and backupRun all require confirm.
Impact
A single tool call upgrades every package on the host with no confirmation step. That is inconsistent with the documented safety model.
Suggested fix
Use confirmParam and confirmCancelled from utils/confirm-param.ts when upgrade is true. Alternatively, split the upgrade into a separate gated homelab_aptUpgrade tool.
Update CLAUDE.md, README.md, and the os-update-management skill to match.
Acceptance criteria
upgrade: true without confirm: true returns the cancelled message and runs nothing
Activity