Skip to content

fix(sandbox): run apk upgrade in sandbox-guest image - #3664

Merged
timflannagan merged 1 commit into
kagent-dev:mainfrom
timflannagan:fix/sandbox-guest-apk-upgrade
Nov 12, 2026
Merged

timflannagan merged 1 commit into
kagent-dev:mainfrom
timflannagan:fix/sandbox-guest-apk-upgrade

Conversation

@timflannagan

Copy link
Copy Markdown
Contributor

Description

The sandbox-guest runtime image only ran apk add, so it shipped the Alpine base image's package versions as-is and showed more CVEs in image scans than the Claude and Codex harness images. Those images have run apk upgrade since #2756; the guest Dockerfile was added afterwards without it.

This adds apk upgrade --no-cache before the package install, matching the harness images.

Upgrade the Alpine packages in the sandbox-guest runtime image so it
picks up OS security fixes published after the base image was built.

Previously, the guest image only ran apk add, so it shipped the base
image's package versions as-is. The Claude and Codex harness images
already run apk upgrade since kagent-dev#2756, but the guest Dockerfile was added
later without it and showed more CVEs in image scans.

Now the guest image runs apk upgrade before installing its packages,
matching the harness images.

Signed-off-by: timflannagan <[email protected]>
@github-actions github-actions Bot added the bug Something isn't working label Nov 12, 2026
@timflannagan
timflannagan added this pull request to the merge queue Nov 12, 2026
Merged via the queue into kagent-dev:main with commit 98fc5eb Nov 12, 2026
31 checks passed
@timflannagan
timflannagan deleted the fix/sandbox-guest-apk-upgrade branch November 12, 2026 23:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants