Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upgrate go to 1.20.7 and remove hardcoded crypto version #599

Merged
merged 1 commit into from
Sep 12, 2023

Conversation

kl52752
Copy link
Collaborator

@kl52752 kl52752 commented Sep 12, 2023

fixes for Vulnerabilities: CVE-2023-29409, CVE-2023-39533, CVE-2023-29406

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Sep 12, 2023
@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Sep 12, 2023
// if coredns starts using >= v0.14.0 this pinned version can be removed
github.com/apache/thrift => github.com/apache/thrift v0.14.0

// pinned latest version for vulnerability fixes, upgrade if there are newer versions
golang.org/x/crypto => golang.org/x/crypto v0.1.0
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a good cleanup!

Just to ensure -- did you verify:

  1. This builds correctly.
  2. golang.org/x/crypto is not used at all or the version >= v0.1.0 is used? Not to regress the Upgraded to the latest golang crypto package for vuln fixes #552

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. yes
  2. From what I understand if makefile has 1.20.7 version hardcoded then this version of crypto library will be used. DIMS?

Copy link
Member

@dpasiukevich dpasiukevich Sep 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My expectation, although the golang version that used to build the binary is updated, the packages version will be used from go.sum.
So I'd expect with these PR changes, the binary would not contain golang.org/x/crypto at all.

If that's fine, could you run go version -m? We'd ensure that the dependencies are correct and merge the PR.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

verified, there is no dependency on crypto library

@dpasiukevich
Copy link
Member

/ok-to-test

@k8s-ci-robot k8s-ci-robot added the ok-to-test Indicates a non-member PR verified by an org member that is safe to test. label Sep 12, 2023
@dpasiukevich
Copy link
Member

/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 Sep 12, 2023
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dpasiukevich, kl52752

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

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [dpasiukevich,kl52752]

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 merged commit 18d97dd into kubernetes:master Sep 12, 2023
3 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. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. 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