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

Support controlling peerHost and SNI hostname inference for GRPC clients #1678

Merged
merged 1 commit into from
Jul 21, 2021

Conversation

chemicL
Copy link
Contributor

@chemicL chemicL commented Jul 19, 2021

Motivation:

This change follows from a change to HTTP client builders
and exposes the same capabilities to GRPC client builders.

Modifications:

  • SingleAddressGrpcClientBuilder has new methods: inferPeerHost,
    inferPeerPort, and inferSniHostname which allow configuring the
    behaviour of the TLS handshake and inference of the corresponding
    configurations.

Result:

Users are able to disable peerHost and peerPort inference and can now
use an empty peerHost when they so desire. The SNI hostname inference
from the provided address can also be disabled in cases when the
address used for connection should not be passed in the SNI extension.

Motivation:

This change follows from [a change to HTTP client builders](apple#1561)
and exposes the same capabilities to GRPC client builders.

Modifications:

- `SingleAddressGrpcClientBuilder` has new methods: `inferPeerHost`,
 `inferPeerPort`, and `inferSniHostname` which allow configuring the
 behaviour of the TLS handshake and inference of the corresponding
 configurations.

Result:

Users are able to disable peerHost and peerPort inference and can now
use an empty peerHost when they so desire. The SNI hostname inference
from the provided address can also be disabled in cases when the
address used for connection should not be passed in the SNI extension.
@chemicL chemicL merged commit 21cca84 into apple:main Jul 21, 2021
chemicL pushed a commit that referenced this pull request Jul 21, 2021
…nts (#1678)

Motivation:

This change follows from [a change to HTTP client builders](#1561)
and exposes the same capabilities to GRPC client builders.

Modifications:

- `SingleAddressGrpcClientBuilder` has new methods: `inferPeerHost`,
 `inferPeerPort`, and `inferSniHostname` which allow configuring the
 behaviour of the TLS handshake and inference of the corresponding
 configurations.

Result:

Users are able to disable peerHost and peerPort inference and can now
use an empty peerHost when they so desire. The SNI hostname inference
from the provided address can also be disabled in cases when the
address used for connection should not be passed in the SNI extension.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants