← Back to Pull requests

fix(images): build git base images on alpine 3.24.4 #38342

Closed
unknown closed this pull request without merging on Nov 24, 2026 14:24 UTC
View on GitHub
unknown unknown commented on Nov 24, 2026 11:36 UTC
Author

What this PR does / why we need it:

Rebuilds the two git-containing base images on alpine:3.24.4 so they carry libexpat 2.10.0-r0 instead of 2.9.0-r0.

images/git/Dockerfile and images/git-custom-k8s-auth/Dockerfile both pin FROM alpine:3.24.3 and install git with apk add --no-cache. Both postsubmits (post-test-infra-push-git, post-test-infra-push-git-custom-k8s-auth) run only with run_if_changed: '^images/git…/', so there is no periodic rebuild: the 2026-10-23 builds still resolve libexpat 2.9.0-r0 from the index of that time.

Image scanners still report three IMPORTANT findings against every Prow component built on these bases (deck, hook, crier, sinker, prow-controller-manager via git-custom-k8s-auth, tide via git):

| CVE | Package | Reported | Fixed |
|---|---|---|---|
| CVE-2026-113351 | libexpat | 2.9.0-r0 | 2.10.0-r0 |
| CVE-2026-117610 | libexpat | 2.9.0-r0 | 2.10.0-r0 |
| CVE-2026-118370 | libexpat | 2.9.0-r0 | 2.10.0-r0 |

Verification that the bump is sufficient:

  • docker run --rm alpine:3.24.4 apk policy libexpat → 2.10.0-r0 available from https://dl-cdn.alpinelinux.org/alpine/v3.24/main.

  • Inside the currently published git-custom-k8s-auth:v20261023-d6356df2e8: /lib/apk/db/installed has P:libexpat V:2.9.0-r0, required by git 2.54.0-r0. Same for git:v20261023-d6356df2e8.

  • images/alpine is untouched: it installs only ca-certificates, so it contains no libexpat and no git.
  • The FROM tag was the only pinned value; no other Dockerfile change is required.

    Which issue(s) this PR fixes:

    None. CVE remediation for the git base images.

    Special notes for your reviewer:

    Follow-up after these postsubmits publish new tags: bump the corresponding baseImageOverrides entries in kubernetes-sigs/prow/.ko.yaml (currently git-custom-k8s-auth:v20261023-d6356df2e8 for deck, hook, crier, sinker, prow-controller-manager, config-bootstrapper, and git:v20261023-d6356df2e8 for tide). I can send that PR as well once the tags exist.

    Does this PR introduce a user-facing change?

    ``release-note
    NONE
    ``

    Diff: 263 lines (+197 / -66) across 3 files Reviewer: upodroid Review duration: 167m
    All Vouch review confidence checks passed
    Residual risk 0.16 = Change Risk (0.39) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.39 · 263 lines diff across 3 files
    0.39
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.334
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #38342"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 39.3% (MEDIUM) · Higher = larger blast radius
    39.3%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 15.5% · Safe to merge
    15.5%