Skip to content

Migrate from golang.org/x/crypto/openpgp to github.com/ProtonMail/go-crypto - #456

Open
G-Gobi wants to merge 1 commit into
carvel-dev:developfrom
G-Gobi:sha1-md5-removal/go-crypto-migration
Open

Migrate from golang.org/x/crypto/openpgp to github.com/ProtonMail/go-crypto#456
G-Gobi wants to merge 1 commit into
carvel-dev:developfrom
G-Gobi:sha1-md5-removal/go-crypto-migration

Conversation

@G-Gobi

@G-Gobi G-Gobi commented Jul 29, 2026

Copy link
Copy Markdown

Summary

  • Migrates git commit/tag signature verification and armored key parsing from the deprecated/archived golang.org/x/crypto/openpgp to the actively maintained github.com/ProtonMail/go-crypto/openpgp fork.
  • Updates go.mod/go.sum and vendored dependencies accordingly (golang.org/x/crypto is now only an indirect dependency; github.com/ProtonMail/go-crypto and its transitive github.com/cloudflare/circl dependency are vendored).

Why

golang.org/x/crypto/openpgp has been deprecated by upstream Go maintainers for several years and receives no further updates or fixes. github.com/ProtonMail/go-crypto is a maintained drop-in replacement used widely across the Go ecosystem for this purpose.

Changes

  • pkg/vendir/fetch/git/verification.go: switch import, add required nil config argument to openpgp.CheckArmoredDetachedSignature.
  • pkg/vendir/openpgparmor/armor.go: switch import.

Test plan

  • go build ./... and go build -mod=vendor ./...
  • go vet ./...
  • go mod tidy / go mod vendor produce no further diff
  • Full unit test suite passes (go test ./..., excluding test/e2e which fails only due to a missing helm3 binary in the local environment, unrelated to this change)
  • golangci-lint run (v2.4, matching CI) passes; the one pre-existing finding in archive_test.go was confirmed unrelated by reproducing it on develop without this change
  • Ran hack/build.sh (the repo's own build+vendor+tidy+fmt+smoke-test script) successfully

@G-Gobi
G-Gobi force-pushed the sha1-md5-removal/go-crypto-migration branch from d946c42 to 7bb0335 Compare July 29, 2026 07:41
@G-Gobi
G-Gobi force-pushed the sha1-md5-removal/go-crypto-migration branch from 7bb0335 to c47ff2e Compare July 29, 2026 17:07
@G-Gobi G-Gobi closed this Aug 10, 2026
@github-project-automation github-project-automation Bot moved this to Closed in Carvel Aug 10, 2026
@G-Gobi G-Gobi reopened this Aug 10, 2026
@github-project-automation github-project-automation Bot moved this from Closed to In Progress in Carvel Aug 10, 2026
…crypto

golang.org/x/crypto/openpgp is deprecated and unmaintained upstream.
Switch git signature verification and armored key parsing to the
actively maintained ProtonMail/go-crypto fork.

Signed-off-by: Gobi Ganesan <gobi.ganesan1509@gmail.com>
@G-Gobi
G-Gobi force-pushed the sha1-md5-removal/go-crypto-migration branch from c47ff2e to 764207b Compare August 10, 2026 19:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

3 participants