fix(deploy): rebase SMCP image on Amazon Linux 2023 (eliminates base-image CVEs)#5
Merged
Merged
Conversation
… CVEs) The first Harbor scan of the CI-built image flagged 2 CRITICAL + 8 HIGH, all in the python:3.12-slim (Debian) base userland (perl-base, ncurses) and all marked affected/fix_deferred with no Fixed Version -- unpatchable in place. Rebase onto public.ecr.aws/amazonlinux/amazonlinux:2023 (Squirro's house base for mcp/*, rebuilt ~daily and actively patched). TU needs only Python >=3.10, so AL2023's dnf python3.11 (3.11.15) is used -- which also matches the cluster runtime. apt->dnf package-name translation; explicit python3.11 -m pip so the tooluniverse-smcp console-script shebang binds 3.11 (default python3 is 3.9). Build toolchain removed post-install to trim the scan surface. Verified locally (trivy 0.71.0 / podman): final image 0 CVEs at every severity (down from 2C+8H); smoke.sh PASS (MCP handshake, 7 compact meta-tools, get_skill serves a body, execute_tool reaches CT.gov). Downstream contract unchanged. Decision recorded in swiss-rockets-delivery ADR-0011.
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
Rebase the SMCP image from
python:3.12-slim(Debian) ontopublic.ecr.aws/amazonlinux/amazonlinux:2023.Why
The first Harbor scan of the CI-built image flagged 2 CRITICAL + 8 HIGH, all in the Debian base userland (
perl-base×2 crit + ×4 high,ncursesfamily ×1 high). Every one is markedaffected/fix_deferredwith no Fixed Version — they cannot be patched in place (apt upgradeis a no-op). Per Michal's recommendation, AL2023 (Squirro's house base formcp/*, rebuilt ~daily and patched) is the fix.How
apt→dnf, RPM package names (gcc-c++, capitalisedlibX*,expat,libgomp).requires-python), so install AL2023'spython3.11(3.11.15) — which also matches the cluster's documented Python 3.11 runtime.python3.11 -m pip install(AL2023's defaultpython3is 3.9) so thetooluniverse-smcpconsole-script shebang binds 3.11.--exclude-tools, served-skills glob, healthcheck, port 8000) is unchanged.Verification (local — trivy 0.71.0, podman 4.9.3)
python:3.12-slim(before)amazonlinux:2023(bare base)./smoke.shagainst the AL2023 container: PASS — MCP handshake, 7 compact meta-tools,get_skillserves the disease-research body (10 427 chars),execute_toolreaches CT.gov.Merging re-arms the CI pipeline (build → Harbor push → Trivy scan), so the Harbor re-scan is the authoritative confirmation.
Decision record: ADR-0011 in
swiss-rockets-delivery.