GoogleCloudPlatform / cloud-sql-python-connector

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

Create `asyncpg` connections using pre-configured SSLSocket #792

Open jackwotherspoon opened 1 year ago

jackwotherspoon commented 1 year ago

Need to update Python Connector to allow asyncpg connections through the use of a pre-configured SSLSocket or asyncio equivalent in order to unblock future IAM checks requiring a socket read/write prior to connecting to Cloud SQL.

Similar to current pymysql implementation but through the use of asyncio's loop.create_connection()

This will require an up-stream patch to the asyncpg library.

enocom commented 10 months ago

https://github.com/MagicStack/asyncpg/issues/1054