Skip to content

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.

@gjcairo gjcairo requested a review from glbrntt September 2, 2024 14:59
@gjcairo gjcairo force-pushed the ssl-niots-server-transport branch from f0c2915 to d264b0c Compare September 2, 2024 15:00
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 force-pushed the ssl-niots-server-transport branch from d264b0c to 4560e6a Compare September 9, 2024 11:03
@gjcairo gjcairo requested a review from glbrntt September 9, 2024 11:05
@gjcairo gjcairo force-pushed the ssl-niots-server-transport branch from 2e7619b to 46fa441 Compare September 9, 2024 13:07
@gjcairo gjcairo force-pushed the ssl-niots-server-transport branch from 60f2a8f to d87fa00 Compare September 9, 2024 14:22
@gjcairo gjcairo requested a review from glbrntt September 9, 2024 15:16
@gjcairo gjcairo added the version/v2 Relates to 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

version/v2 Relates to v2

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants