-
Notifications
You must be signed in to change notification settings - Fork 9.8k
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
[3.5] Fix panic in etcd validate secure endpoints #16565
Conversation
Backport: etcd-io#13824 Signed-off-by: Wei Fu <fuweid89@gmail.com>
Should this PR be backported to 3.4? Could you double check? Please also add a changelog item, thx |
Signed-off-by: Wei Fu <fuweid89@gmail.com>
etcd/pkg/transport/transport.go Line 34 in 3253d5c
3.4 uses ➜ transport git:(release-3.4) ✗ git show | head -n 1
commit 420669a504281517c3de9d5ab234f62714984b24
➜ transport git:(release-3.4) ✗ go test -v -run=TestValidateSecureEndpoints -count=1 ./
=== RUN TestValidateSecureEndpoints
{"level":"info","msg":"created cert file","path":"/tmp/etcd-test-tls-3358351632/cert.pem"}
{"level":"info","msg":"created key file","path":"/tmp/etcd-test-tls-3358351632/key.pem"}
=== RUN TestValidateSecureEndpoints/invalidEndPoints
=== RUN TestValidateSecureEndpoints/insecureEndpoints
=== RUN TestValidateSecureEndpoints/secureEndPoints
=== RUN TestValidateSecureEndpoints/mixEndPoints
--- PASS: TestValidateSecureEndpoints (0.01s)
--- PASS: TestValidateSecureEndpoints/invalidEndPoints (0.00s)
--- PASS: TestValidateSecureEndpoints/insecureEndpoints (0.00s)
--- PASS: TestValidateSecureEndpoints/secureEndPoints (0.00s)
--- PASS: TestValidateSecureEndpoints/mixEndPoints (0.00s)
PASS
ok go.etcd.io/etcd/pkg/transport 0.014s
➜ transport git:(release-3.4) ✗
Sure. Please check this #16566 |
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.
thx
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.
LGTM Thanks @fuweid
CHANGELOG: update 3.5 with #16565
Signed-off-by: Wei Fu <fuweid89@gmail.com>
Backport: #13824
Closes: #13810
Please read https://github.com/etcd-io/etcd/blob/main/CONTRIBUTING.md#contribution-flow.