Repository navigation
[release/2.3] vendor: github.com/containerd/imgcrypt/v2 v2.0.3 - #14357
Conversation
|
The earlier red checks looked unrelated to this change: the Kubernetes node e2e Summary API test reported 1005412646 CPU nanocores against the 1e9 limit, and the Fedora VM job failed to download its image before boot. The third failure was the aggregate status job. Update: rebased onto current release/2.3 with the backport patch unchanged. A fresh CI run is here: https://github.com/containerd/containerd/actions/runs/40414293547. |
Backport of containerd#13862 to release/2.3. This is the remaining dependency item from containerd#14196; the gRPC, OTel and x/text items shipped in v2.3.7. imgcrypt v2.0.3 moves to github.com/containers/ocicrypt v1.3.2, which replaces golang.org/x/crypto/openpgp with github.com/ProtonMail/go-crypto (containers/ocicrypt#142). The deprecated openpgp packages (GO-2026-5932) are no longer vendored. Produced with `go get github.com/containerd/imgcrypt/[email protected] && make vendor` on release/2.3 instead of cherry-picking the main commit, so the vendor tree matches what the 2.3 module graph resolves to. The go.mod changes are the same ones containerd#13862 made on main: github.com/containerd/imgcrypt/v2 v2.0.2 -> v2.0.3 github.com/containers/ocicrypt v1.2.1 -> v1.3.2 github.com/miekg/pkcs11 v1.1.1 -> v1.1.2 github.com/smallstep/pkcs7 v0.1.1 -> v0.2.1 added: github.com/ProtonMail/go-crypto v1.4.1, github.com/cloudflare/circl v1.6.3, go.yaml.in/yaml/v3 v3.0.4 removed: github.com/golang/protobuf v1.5.4 Assisted-by: Claude Opus 5.5 (Pi coding agent) Signed-off-by: Mitch Fultz <[email protected]>
b6a5862 to
e4d1689
Compare
|
All other executed checks passed. The linux/arm/v7 cross-build hit its 10-minute timeout while apt was downloading the cross-compiler; compilation never started. I don’t have Actions rerun permissions. Could a maintainer rerun this job now that the run has finished? |
Backport of #13862 for #14196, where @AkihiroSuda said backport PRs were welcome. After #14263, this is the last item left on that issue.
imgcrypt v2.0.3 brings in ocicrypt v1.3.2, which swaps the deprecated
golang.org/x/crypto/openpgpforgithub.com/ProtonMail/go-crypto(containers/ocicrypt#142). That clears GO-2026-5932, which #14263 and #14318 had to leave open.I generated the backport with
go get github.com/containerd/imgcrypt/[email protected]andmake vendoron release/2.3 rather than cherry-picking main, so the vendor tree matches 2.3's module graph. The go.mod changes match #13862:Rebased onto release/2.3 at 9874b27; the backport patch is unchanged, and the branch's Go 1.26.0 directive is preserved. This and #14318 both touch go.mod, go.sum and vendor/modules.txt. Whichever lands second may need to regenerate the vendor tree, but the module changes don't overlap.
Testing on the rebased branch with Go 1.26.9:
make vendorreproduces the tree exactly.go build ./...passes on darwin/arm64, and cross-builds pass with CGO disabled for linux/amd64, linux/arm64, windows/amd64 and freebsd/amd64.go vetpasses on internal/cri/server/images and cmd/containerd/command.go testpasses on those two packages and ./pkg/... on darwin/arm64.On the original base, govulncheck went from 6 findings to 5; the remaining findings were the x/net and otlptrace ones that #14318 addresses. I haven't tested full image encryption end to end or PKCS#11 with real hardware.
This was AI-assisted, as noted in the commit's Assisted-by trailer, and I've reviewed it.