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

[v10] Fix TLS usage across multiple protocols #15464

Merged
merged 3 commits into from
Aug 15, 2022

Conversation

tigrato
Copy link
Contributor

@tigrato tigrato commented Aug 12, 2022

Backport #15339 to branch/v10

Fix TLS usage across multiple protocols like SPDY used in `kube exec` or WebSockets for moderated sessions that require HTTP/1.1 as the initial protocol while other requests like get/edit/delete rely on HTTP/2 protocol.

The same `*tls.Config` was reused for mixed protocol, causing several issues including a data race while manipulating `*tls.Config.NextProtos` without any lock.

This commit clones the `*tls.Config` per request to prevent mixups between connection protocols.

Fixes #15076
@github-actions github-actions bot removed the request for review from r0mant August 15, 2022 06:04
@tigrato tigrato enabled auto-merge (squash) August 15, 2022 08:07
@tigrato tigrato merged commit 9602afc into branch/v10 Aug 15, 2022
@github-actions github-actions bot deleted the bot/backport-15339-branch/v10 branch August 15, 2022 08:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants