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
spdyroundtripper: don't need to verify server hostname twice #109750
Conversation
Please note that we're already in Test Freeze for the |
/assign @liggitt kindly pinging @FiloSottile for confirmation |
02dec3a
to
4251cfc
Compare
staging/src/k8s.io/apimachinery/pkg/util/httpstream/spdy/roundtripper.go
Show resolved
Hide resolved
staging/src/k8s.io/apimachinery/pkg/util/httpstream/spdy/roundtripper.go
Show resolved
Hide resolved
Yeah, these look redundant, without InsecureSkipVerify the client will already do a VerifyHostname for the Config.ServerName. |
@aojea I think you are right. I found one more place that does a redundant verify:
Here verify needs to only happen in one of the |
staging/src/k8s.io/apimachinery/pkg/util/httpstream/spdy/roundtripper.go
Show resolved
Hide resolved
/test pull-kubernetes-e2e-kind-ipv6
|
/test pull-kubernetes-e2e-kind |
staging/src/k8s.io/apimachinery/pkg/util/httpstream/spdy/roundtripper.go
Show resolved
Hide resolved
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: aojea, liggitt 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:
Approvers can indicate their approval by writing |
The Kubernetes project has merge-blocking tests that are currently too flaky to consistently pass. This bot retests PRs for certain kubernetes repos according to the following rules:
You can:
/retest |
/triage accepted |
Handshake() is still needed for tls.Client() code path. See kubernetes#109750
Handshake() is still needed for tls.Client() code path. See kubernetes/kubernetes#109750 Kubernetes-commit: 29dc50c149a85eba490bbaf3df9758fd371ece12
Handshake() is still needed for tls.Client() code path. See kubernetes#109750
Handshake() is still needed for tls.Client() code path. See kubernetes#109750
Handshake() is still needed for tls.Client() code path. See kubernetes/kubernetes#109750 Kubernetes-commit: 8a7c74bda5d84347e1dbe866264ad6f58bff0ff3
Handshake() is still needed for tls.Client() code path. See kubernetes#109750
Handshake() is still needed for tls.Client() code path. See kubernetes/kubernetes#109750 Kubernetes-commit: f99efc598c3a8a0c00ff2b29e19ee36d962353a3
/kind cleanup
tls.HandshakeContext()
already validates the hostname, no need to do it twiceplayground https://gist.github.com/aojea/4e172d7f3835cd3ffc6ea4f83eea6608
xref https://groups.google.com/g/golang-nuts/c/4vnt7NdLvVU/m/b1SJ4u0ikb0J