-
Notifications
You must be signed in to change notification settings - Fork 106
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
Fix: Vulnerability in golang.org/x/net/http2
& github.com/sirupsen/logrus
#262
Fix: Vulnerability in golang.org/x/net/http2
& github.com/sirupsen/logrus
#262
Conversation
golang.org/x/net/http2
& github.com/sirupsen/logrus
My logical process & How to set up local test for this project (kube-mgmt):Click to expand!Since the pipeline failed, I just run the command locally to test it out:
Seems like I need
So the local test worked, but the pipeline did not, so I assume there is a problem in pipeline and I notice that one of the pipeline job installs staticcheck, but potentially old version.
So I did set the version So I set it up the newer Go lang and the pipeline worked as well. Available
|
@eshepelyuk |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Plz address missing things
- sign DCO
- rebase and squash PR into single commit
Signed-off-by: Jeongwoo Kim - jekim <jekim@yahoo-corp.jp>
Signed-off-by: Jeongwoo Kim - jekim <jekim@yahoo-corp.jp>
…& go get golang.org/x/term@v0.25.0 && go mod vendor Signed-off-by: Jeongwoo Kim - jekim <jekim@yahoo-corp.jp>
Signed-off-by: Jeongwoo Kim - jekim <jekim@yahoo-corp.jp>
Signed-off-by: Jeongwoo Kim - jekim <jekim@yahoo-corp.jp>
Signed-off-by: Jeongwoo Kim - jekim <jekim@yahoo-corp.jp>
Signed-off-by: Jeongwoo Kim - jekim <jekim@yahoo-corp.jp>
Signed-off-by: Jeongwoo Kim - jekim <jekim@yahoo-corp.jp>
38bb8d5
to
e9e249b
Compare
@eshepelyuk handled! |
no, there is still 8 commits, |
Background
This PR fixes the vulnerabilities described in the following issue: #253
Proof
Click to expand!
What I've done
go get github.com/sirupsen/logrus@v1.8.3 && go mod vendor
go mod tidy
go get golang.org/x/net@v0.23.0 && go get golang.org/x/text@v0.19.0 && go get golang.org/x/term@v0.25.0 && go mod vendor
go fmt ./...
go mod edit -go=1.18
as:Error: vendor/golang.org/x/net/http2/transport.go:1096:13: tc.NetConn undefined (type *tls.Conn has no field or method NetConn) note: module requires Go 1.18 error: Recipe
lint-gofailed on line 34 with exit code 2 Error: Process completed with exit code 2.
go mod tidy
1.17.7
=>1.23.2
&& upgrade go version1.17.7
=>1.23.2
for GitHub Actions!❌ : means the github pipeline failed
✅: means the github pipeline succeeded