Skip to content

chore(deps): bump python base digest to a7fb1e6; drop pip from the runtime image - #304

Merged
icebergai-review-bot[bot] merged 1 commit into
mainfrom
claude/dependabot-pr-review-p4dsit
Aug 11, 2026
Merged

chore(deps): bump python base digest to a7fb1e6; drop pip from the runtime image#304
icebergai-review-bot[bot] merged 1 commit into
mainfrom
claude/dependabot-pr-review-p4dsit

Conversation

@richardmhope

Copy link
Copy Markdown
Collaborator

The python:3.14-slim digest bump (Dependabot #301) failed the Trivy image
gate: the new digest is CPython 3.14.7, which bundles pip 26.2.1, and pip
26.2 started shipping a CycloneDX SBOM declaring its vendored libraries.
Trivy now sees vendored msgpack 1.1.2 (GHSA-6v7p-g79w-8964, fixed 1.2.1)
and setuptools/pkg_resources 70.3.0 (CVE-2025-47273, fixed 78.1.1) — both
HIGH with an upstream fix, so the fixable-HIGH gate trips. The previous
image's pip 26.1.2 vendors the exact same versions, just without the SBOM,
so the bump introduces no actual regression; the copies live inside pip's
_vendor tree and are only reachable by running pip itself.

The runtime image never runs pip — the venv is resolved by uv in the
builder stage and copied across — so remove pip, its console scripts and
the ensurepip bootstrap wheel from the runtime stage. That resolves the
findings at the source, keeps future pip-vendored CVEs out of the gate,
and extends the existing "build-only tooling stays out of the runtime"
rule to the base image's own bootstrap tooling.

Supersedes #301.

Co-Authored-By: Claude Fable 5 noreply@anthropic.com
Claude-Session: https://claude.ai/code/session_01RfHDhw6vo9ZeEfEcB1rvS2

…ntime image

The python:3.14-slim digest bump (Dependabot #301) failed the Trivy image
gate: the new digest is CPython 3.14.7, which bundles pip 26.2.1, and pip
26.2 started shipping a CycloneDX SBOM declaring its vendored libraries.
Trivy now sees vendored msgpack 1.1.2 (GHSA-6v7p-g79w-8964, fixed 1.2.1)
and setuptools/pkg_resources 70.3.0 (CVE-2025-47273, fixed 78.1.1) — both
HIGH with an upstream fix, so the fixable-HIGH gate trips. The previous
image's pip 26.1.2 vendors the exact same versions, just without the SBOM,
so the bump introduces no actual regression; the copies live inside pip's
_vendor tree and are only reachable by running pip itself.

The runtime image never runs pip — the venv is resolved by uv in the
builder stage and copied across — so remove pip, its console scripts and
the ensurepip bootstrap wheel from the runtime stage. That resolves the
findings at the source, keeps future pip-vendored CVEs out of the gate,
and extends the existing "build-only tooling stays out of the runtime"
rule to the base image's own bootstrap tooling.

Supersedes #301.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RfHDhw6vo9ZeEfEcB1rvS2
@richardmhope
richardmhope requested a review from a team as a code owner August 11, 2026 02:59

@icebergai-review-bot icebergai-review-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict

Approved

No concrete defects found in the complete base-to-head change. The runtime-only removal of pip and ensurepip is consistent with the builder-created virtual environment and does not affect the application’s packaged dependencies.

Findings

No actionable findings.

Validation

  • Reviewed the full supplied Dockerfile patch from db7db35 to 46e0859.
  • Confirmed builder and runtime stages use the same pinned Python base digest.
  • Confirmed removal targets only base-image pip/ensurepip paths after OS package installation; application dependencies remain in the copied builder-created virtual environment.
  • CI is reported as passing for the exact head SHA.

Residual risks

  • The container image was not independently rebuilt in this read-only review environment.

@icebergai-review-bot
icebergai-review-bot Bot merged commit 4811c45 into main Aug 11, 2026
9 checks passed
@icebergai-review-bot
icebergai-review-bot Bot deleted the claude/dependabot-pr-review-p4dsit branch August 11, 2026 12:22
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.

2 participants