Skip to content

Bump go-containerregistry to v0.22.1 - #120

Merged
eriknordmark merged 1 commit into
lf-edge:mainfrom
eriknordmark:ggcr-bump
Oct 29, 2026
Merged

eriknordmark merged 1 commit into
lf-edge:mainfrom
eriknordmark:ggcr-bump

Conversation

@eriknordmark

@eriknordmark eriknordmark commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

Description

Bumps go-containerregistry from v0.6.0 to v0.22.1. That version parses registry
auth challenges itself instead of importing docker/distribution, so
docker/distribution drops out of go.mod, which closes Dependabot alert #59
(CVE-2026-85747). The vulnerable code, docker/distribution's registry client,
was never compiled into eve-libs: only registry/client/auth/challenge was in
the build graph, and go-containerregistry checks fetched manifests against the
requested digest. So this is dependency hygiene, not a security fix.

Alongside go-containerregistry, MVS moves docker/cli, docker-credential-helpers,
docker/go-connections and klauspost/compress forward. None of the new versions
has a known advisory.

go-connections v0.7.0 removed sockets.DialPipe, which the docker/docker v28
client under testcontainers-go v0.38.0 still calls, so the integration-tagged
MinIO tests stopped compiling. testcontainers-go moves to v0.44.0, which uses the
moby/moby client, and docker/docker leaves go.mod.

lf-edge/eve#6926 makes the same bump in pillar. The two PRs do not depend on
each other.

How to test and validate this PR

go build ./..., go vet ./... and go test -tags=integration ./... (the
last needs Docker for the MinIO container). zedUpload/ociutil
has no unit tests, so the OCI path is exercised by EVE: deploy a container app
from a registry (for example docker.io) on an EVE build that vendors this change.

zedUpload's OCI support pulled in docker/distribution through
go-containerregistry v0.6.0, which uses that module's registry auth
challenge parser. v0.22.1 has its own parser, so docker/distribution
drops out of the dependency graph. That clears the Dependabot alert
for CVE-2026-85747, which is in docker/distribution's registry client,
a package eve-libs never compiled.

v0.22.1 requires docker/go-connections v0.7.0, which removed
sockets.DialPipe. The docker/docker v28 client that testcontainers-go
v0.38.0 builds on still calls it, so the integration-tagged MinIO tests
no longer compiled. testcontainers-go v0.44.0 uses the moby/moby client
instead, and docker/docker leaves the dependency graph too.

Signed-off-by: eriknordmark <erik@zededa.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@eriknordmark
eriknordmark merged commit 845a5af into lf-edge:main Oct 29, 2026
5 checks passed
@eriknordmark
eriknordmark deleted the ggcr-bump branch October 31, 2026 01:40
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