GoogleCloudPlatform / cloud-sql-python-connector

A Python library for connecting securely to your Cloud SQL instances.
Apache License 2.0
286 stars 67 forks source link

feat: add support for CAS-based instances #1154

Closed jackwotherspoon closed 2 months ago

jackwotherspoon commented 2 months ago

The CAS instances will have a different way to verify the server identity (dns name).

This PR checks the CA_SERVER_MODE returned from the ConnectSettings API and uses DNS name to verify the server identity if a CAS instance.