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

Use the server hostname override as the :authority, if present #1033

Merged
merged 1 commit into from
Nov 5, 2020

Conversation

glbrntt
Copy link
Collaborator

@glbrntt glbrntt commented Nov 4, 2020

Motivation:

When using a secured connection to a server, the client may present a
server hostname as part of the TLS SNI extension. However, the
':authority' header sent by the client will still just be the host the
caller specified, rather than the server hostname.

Modifications:

  • User the TLS server hostname override, if present, in prefernce to the
    hostname when setting the authority.

Result:

Motivation:

When using a secured connection to a server, the client may present a
server hostname as part of the TLS SNI extension. However, the
':authority' header sent by the client will still just be the host the
caller specified, rather than the server hostname.

Modifications:

- User the TLS server hostname override, if present, in prefernce to the
  hostname when setting the authority.

Result:

- Resolves grpc#1029
@glbrntt glbrntt requested a review from Lukasa November 4, 2020 16:15
@glbrntt glbrntt added the 🔨 semver/patch No public API change. label Nov 4, 2020
Copy link
Collaborator

@Lukasa Lukasa left a comment

Choose a reason for hiding this comment

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

Good clean patch, nothing to say about it.

@glbrntt glbrntt merged commit 275b299 into grpc:main Nov 5, 2020
@glbrntt glbrntt deleted the gb-issue-1029 branch November 5, 2020 08:59
glbrntt added a commit to glbrntt/grpc-swift that referenced this pull request Nov 6, 2020
Motivation:

The generated code in the interceptors feature branch includes new
protocol requirements. Some tests added recently in grpc#1033 to main don't
meet these requirements.

Modifications:

- Add the missing requirements

Result:

Feature branch compiles when rebased on 'main'.
glbrntt added a commit to glbrntt/grpc-swift that referenced this pull request Nov 6, 2020
Motivation:

The generated code in the interceptors feature branch includes new
protocol requirements. Some tests added recently in grpc#1033 to main don't
meet these requirements.

Modifications:

- Add the missing requirements

Result:

Feature branch compiles when rebased on 'main'.
glbrntt added a commit that referenced this pull request Nov 6, 2020
#1037)

Motivation:

The generated code in the interceptors feature branch includes new
protocol requirements. Some tests added recently in #1033 to main don't
meet these requirements.

Modifications:

- Add the missing requirements

Result:

Feature branch compiles when rebased on 'main'.
glbrntt added a commit that referenced this pull request Nov 12, 2020
#1037)

Motivation:

The generated code in the interceptors feature branch includes new
protocol requirements. Some tests added recently in #1033 to main don't
meet these requirements.

Modifications:

- Add the missing requirements

Result:

Feature branch compiles when rebased on 'main'.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔨 semver/patch No public API change.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

How to change HTTP authority Header.
3 participants