← Back to Pull requests

VC-53836: Add SHA-256 verification to golang-dind and remove unused images #1209

Closed
unknown closed this pull request without merging on Jun 09, 2026 14:28 UTC
View on GitHub
unknown unknown commented on Jun 09, 2026 11:54 UTC
Author

Summary

  • Add sha256sum -c integrity verification to the golang-dind CI image

  • build, which previously downloaded Go from the internet over HTTPS with
    no checksum or signature verification
  • Remove the unused golang-aws image, its aws-testing postsubmit job,

  • and all references in Makefile, README.md, and builder.sh
  • Remove the unused nix-dind image, its post-testing-push-nix-dind

  • postsubmit job, and its Makefile entry

    Motivation

    Triggered by VC-53836 (CWE-494:
    Download of Code Without Integrity Check). The image build jobs run on
    prow-trusted with deployer credentials (cert-manager-bot-github-token,
    -ssh-key) in scope. A compromised upstream distribution endpoint could inject
    malicious code into the CI pipeline. Adding SHA-256 verification provides a
    defence-in-depth layer beyond TLS.

    Changes to golang-dind

    Added ARG GO_SHA256 and echo "${GO_SHA256} ..." | sha256sum -c - between the
    wget of the Go toolchain tarball and its extraction. The hash is defined in
    build.yaml alongside the version, with a comment showing how to recompute it
    when bumping.

    Removal of golang-aws

    The golang-aws image was created in July 2021 (b186094) by Arsh Sharma to
    provide an image for an aws-tests periodic job that ran cert-manager E2E tests
    against EKS every 48 hours. In September 2021, Jake Sanders disabled the
    periodic (db5d8ad) with # TODO: find a permanent home for the AWS periodics and
    reinstate this job
    . The TODO was never resolved — the commented-out block was
    later removed entirely, and no replacement AWS E2E job was ever created.

    The image uses Go 1.16/1.17 on golang:buster, all long EOL. No job config,
    test, or other repository references it as a container image. Rather than adding
    SHA-256 verification to an unused image with five unverified downloads (AWS CLI,
    aws-iam-authenticator, Terraform, Go, Nix), removing it eliminates the attack
    surface entirely.

    Removal of nix-dind

    The nix-dind image was created in September 2022 by joshvanl (0e0eb06) for
    csi-lib E2E tests. In May 2025, Tim Ramlot replaced the nix-dind job image
    with make-dind in csi-lib presubmits (4d108e5). Since then, zero consumers
    reference this image.

    Rather than adding SHA-256 verification to another unused image, removing it
    eliminates the attack surface entirely.

    Test plan

  • Verify golang-dind builds successfully with the correct hash — local docker build succeeds, sha256sum reports OK

  • Verify that an incorrect hash causes the build to fail — golang-dind aborts with sha256sum: WARNING: 1 computed checksum did NOT match

  • grep -rn 'golang-aws' . returns no matches — verified locally and by pull-testing-verify passing

  • grep -rn 'nix-dind' . returns no matches after removal

  • make local-checkconfig passes (Prow config validation) — awaiting CI

  • pull-testing-verify passes — awaiting CI
  • Generated with Claude (Opus 4.6)

    Diff: 377 lines (+282 / -95) across 4 files Reviewer: inteon Review duration: 154m
    All Vouch review confidence checks passed
    Residual risk 0.17 = Change Risk (0.43) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.43 · 377 lines diff across 4 files
    0.43
    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.355
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #1209"
    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: 42.9% (MEDIUM) · Higher = larger blast radius
    42.9%
    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: 16.9% · Safe to merge
    16.9%