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

fix: have ssl handshake check hostname #283

Closed
wants to merge 14 commits into from
3 changes: 0 additions & 3 deletions google/cloud/alloydb/connector/connection_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,6 @@ def create_ssl_context(self) -> ssl.SSLContext:

# create TLS context
context = ssl.SSLContext(ssl.PROTOCOL_TLS_CLIENT)
# TODO: Set check_hostname to True to verify the identity in the
# certificate once PSC DNS is populated in all existing clusters.
context.check_hostname = False
# force TLSv1.3
context.minimum_version = ssl.TLSVersion.TLSv1_3

Expand Down
Loading