Rebuild etcdctl from source with Go 1.25.10 and patched x/net to remove high-severity CVEs#3
Draft
Copilot wants to merge 2 commits into
Draft
Rebuild etcdctl from source with Go 1.25.10 and patched x/net to remove high-severity CVEs#3Copilot wants to merge 2 commits into
etcdctl from source with Go 1.25.10 and patched x/net to remove high-severity CVEs#3Copilot wants to merge 2 commits into
Conversation
Agent-Logs-Url: https://github.com/dejanu/etcd-utils/sessions/59674c1f-4a70-463c-a379-803181b52335 Co-authored-by: dejanu <13877229+dejanu@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix high severity vulnerability in etcd-utils
Rebuild May 24, 2026
etcdctl from source with Go 1.25.10 and patched x/net to remove high-severity CVEs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The image currently ships an
etcdctlbinary compiled with Go 1.25.9, which carries multiple HIGH CVEs in Go stdlib plus a HIGH CVE ingolang.org/x/net. This change movesetcdctlto an in-image source build using a patched Go toolchain and updated vulnerable Go modules.Build pipeline: replace prebuilt binary download with source build
etcdctlfrometcd-io/etcdtagv3.6.11.golang:1.25.10-bookwormto ensure stdlib fixes are present.Dependency hardening in builder stage
golang.org/x/net@v0.55.0golang.org/x/sys@v0.45.0golang.org/x/text@v0.37.0Runtime behavior preserved
etcdctl-wrapper.sh, entrypoint/cmd flow, binary path in runtime image).Docs alignment
etcdctlis now built from tagged source during image build (not extracted from release tarballs).Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
dhi.io/usr/libexec/docker/cli-plugins/docker-buildx /usr/libexec/docker/cli-plugins/docker-buildx buildx build -t etcdctl:test .(dns block)/usr/libexec/docker/cli-plugins/docker-buildx /usr/libexec/docker/cli-plugins/docker-buildx buildx build -t etcdctl:test . -nolocalimports e.golang.org/grpc@v1.79.3/internal/transport/networktype;/tmp/go-build1057602671/go/pkg/mod/go.uber.org/zap@v1.27.0/internal/level_enabler.go /tmp/go-build1057602671/b299/importcfg -pack /go/pkg/mod/google.golang.org/grpc@v1.79.3/internal/backoff/backoff.go(dns block)If you need me to access, download, or install something from one of these locations, you can either: