Summary
Track a follow-up hardening change to pin the Go builder image in Dockerfile by digest instead of using only the mutable docker.io/library/golang:1.26.3 tag.
Rationale
The current build stage image reference is tag-only, which makes rebuilds less reproducible and weakens supply-chain hardening. The repository already uses digest-pinned base images in related container definitions (for example, Dockerfile.dist), so this would align the main Dockerfile with that pattern.
Affected area
Requested change
Update the build stage FROM instruction to pin the Go image by digest, e.g.:
- from:
docker.io/library/golang:1.26.3
- to:
docker.io/library/golang:1.26.3@sha256:<resolved-digest>
Keep the change localized to the builder FROM line unless additional supporting updates are required.
Acceptance criteria
Backlinks
Summary
Track a follow-up hardening change to pin the Go builder image in
Dockerfileby digest instead of using only the mutabledocker.io/library/golang:1.26.3tag.Rationale
The current build stage image reference is tag-only, which makes rebuilds less reproducible and weakens supply-chain hardening. The repository already uses digest-pinned base images in related container definitions (for example,
Dockerfile.dist), so this would align the mainDockerfilewith that pattern.Affected area
DockerfileRequested change
Update the build stage
FROMinstruction to pin the Go image by digest, e.g.:docker.io/library/golang:1.26.3docker.io/library/golang:1.26.3@sha256:<resolved-digest>Keep the change localized to the builder
FROMline unless additional supporting updates are required.Acceptance criteria
Dockerfileis pinned by digest.golang:1.26.3image variant used by this build.Backlinks