Skip to content

Remove go deb / Gopkg.toml handling in verify-vendor.#306

Merged
k8s-ci-robot merged 1 commit into
kubernetes-csi:masterfrom
mattcary:gopkg
May 23, 2026
Merged

Remove go deb / Gopkg.toml handling in verify-vendor.#306
k8s-ci-robot merged 1 commit into
kubernetes-csi:masterfrom
mattcary:gopkg

Conversation

@mattcary
Copy link
Copy Markdown
Contributor

@mattcary mattcary commented May 22, 2026

The current go dep handling introduces a supply chain attack:

  • Create a pull request against the target repository.

  • Modify a vendored dependency in the vendor/ directory to include a malicious payload or backdoor.

  • Add an empty file named Gopkg.toml to the root of the repository.

  • Commit and push the changes. Observe that the CI verify-vendor.sh script outputs 'skipping check, dep >= 0.5 required' and exits with a success status, bypassing the go mod vendor checks.

No kubernetes-csi repo uses this tool: https://github.com/search?q=org%3Akubernetes-csi+path%3A**%2FGopkg.toml&type=code

Go dep has been deprecated since 2020
(golang/go#38158). Removing this support will make future maintenance easier.

Remove go dep / Gopkg.toml support from verify-vendor.sh

No kubernetes-csi repo uses this tool: https://github.com/search?q=org%3Akubernetes-csi+path%3A**%2FGopkg.toml&type=code

The current go dep handling introduces a supply chain attack:

* Create a pull request against the target repository.

* Modify a vendored dependency in the vendor/ directory to include a
  malicious payload or backdoor.

* Add an empty file named Gopkg.toml to the root of the repository.

* Commit and push the changes. Observe that the CI verify-vendor.sh
  script outputs 'skipping check, dep >= 0.5 required' and exits with
  a success status, bypassing the go mod vendor checks.

Go dep has been deprecated since 2020
(golang/go#38158). Removing this support
will make future maintenance easier.
@k8s-ci-robot k8s-ci-robot added the do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. label May 22, 2026
@k8s-ci-robot k8s-ci-robot requested review from humblec and jingxu97 May 22, 2026 18:04
@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. release-note Denotes a PR that will be considered when it comes time to generate release notes. and removed do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. labels May 22, 2026
@xing-yang
Copy link
Copy Markdown
Contributor

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label May 23, 2026
@k8s-ci-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mattcary, xing-yang

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 23, 2026
@k8s-ci-robot k8s-ci-robot merged commit 5dd957d into kubernetes-csi:master May 23, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants