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

Add support for TLS on H2 NIOTS server transport #2040

Merged
merged 7 commits into from
Sep 9, 2024

Conversation

gjcairo
Copy link
Collaborator

@gjcairo gjcairo commented Sep 2, 2024

Motivation

We currently have a NIOTS server transport implementation in gRPC v2, but it doesn't support TLS.

Modifications

This PR adds support for TLS in the NIOTS-backed HTTP/2 implementation of the server transport for gRPC v2.
It also adds support for ALPN, to validate that the negotiated protocol, if required, is HTTP2 or grpc-exp. If it's not, an error will be fired/the channel will be closed, since we don't support H1.

Result

We now support TLS/ALPN when using the NIOTS server transport in gRPC V2.

Copy link
Collaborator

@glbrntt glbrntt left a comment

Choose a reason for hiding this comment

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

Good start!

@gjcairo gjcairo requested a review from glbrntt September 9, 2024 15:16
@gjcairo gjcairo added the v2 A change for v2 label Sep 9, 2024
Copy link
Collaborator

@glbrntt glbrntt left a comment

Choose a reason for hiding this comment

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

Nice one, thanks Gus!

@glbrntt glbrntt enabled auto-merge (squash) September 9, 2024 15:54
@glbrntt glbrntt merged commit f8184b8 into grpc:main Sep 9, 2024
15 of 17 checks passed
@gjcairo gjcairo deleted the ssl-niots-server-transport branch September 9, 2024 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v2 A change for v2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants