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

HTTPCLIENT-2151: Support for JSSE in-built endpoint identification #545

Merged
merged 1 commit into from
Feb 5, 2024

Conversation

ok2c
Copy link
Member

@ok2c ok2c commented Feb 1, 2024

This change-set extends the public APIs with hostname verification options:

  • Built-In: Hostname verification is delegated to the JSSE provider, usually executed during the TLS handshake
  • Client: Hostname verification is executed by HttpClient post TLS handshake
  • Both: Hostname verification is executed by the JSSE provider and by HttpClient post TLS handshake

The Both option is used by default. It provides the benefit of backward compatibility with the behavior of previous versions of HttpClient, added security (hostnames get verified by the JSSE provider and by the client) and fail-early approach (invalid hostnames can get rejected during the TLS handshake). At the same some checks may get performed twice and result in certain (likely minor) performance hit. In the future HttpClient may switch to Built-In as the default.

@ok2c ok2c requested a review from arturobernalg February 1, 2024 08:24
@ok2c
Copy link
Member Author

ok2c commented Feb 1, 2024

@arturobernalg Please take a look.

Copy link
Member

@arturobernalg arturobernalg left a comment

Choose a reason for hiding this comment

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

@ok2c
LGTM

@ok2c ok2c merged commit 2e46b62 into apache:master Feb 5, 2024
9 checks passed
@ok2c ok2c deleted the jsse_endpoint_identification branch February 5, 2024 09:05
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.

2 participants