Skip to content

[release/2.3] vendor: github.com/containerd/imgcrypt/v2 v2.0.3 - #14357

Merged
mxpv merged 1 commit into
containerd:release/2.3from
fitchmultz:backport-imgcrypt-2.0.3
Nov 15, 2026
Merged

mxpv merged 1 commit into
containerd:release/2.3from
fitchmultz:backport-imgcrypt-2.0.3

Conversation

@fitchmultz

@fitchmultz fitchmultz commented Oct 14, 2026 •

Copy link
Copy Markdown

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/openpgp for github.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] and make vendor on release/2.3 rather than cherry-picking main, so the vendor tree matches 2.3's module graph. The go.mod changes match #13862:

  • imgcrypt 2.0.2 -> 2.0.3
  • ocicrypt 1.2.1 -> 1.3.2
  • pkcs11 1.1.1 -> 1.1.2
  • pkcs7 0.1.1 -> 0.2.1
  • go-crypto, circl and go.yaml.in/yaml/v3 are added
  • golang/protobuf is dropped

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 vendor reproduces 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 vet passes on internal/cri/server/images and cmd/containerd/command.
  • go test passes on those two packages and ./pkg/... on darwin/arm64.
  • An API-level PGP smoke test using one RSA key and gzip layer recovered identical bytes across the old and new ocicrypt versions in both directions. Both versions returned an empty plaintext digest, although the wrapped digest matched; this is unchanged by the backport.

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.

@fitchmultz

fitchmultz commented Oct 14, 2026 •

Copy link
Copy Markdown
Author

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]>
@fitchmultz
fitchmultz force-pushed the backport-imgcrypt-2.0.3 branch from b6a5862 to e4d1689 Compare October 26, 2026 22:40
@fitchmultz

fitchmultz commented Oct 26, 2026 •

Copy link
Copy Markdown
Author

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?

@github-project-automation github-project-automation Bot moved this from Needs Triage to Review In Progress in Pull Request Review Nov 15, 2026
@mxpv
mxpv merged commit fccc97f into containerd:release/2.3 Nov 15, 2026
87 of 88 checks passed
@github-project-automation github-project-automation Bot moved this from Review In Progress to Done in Pull Request Review Nov 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Development

Successfully merging this pull request may close these issues.

3 participants