Comments (1)
This is going to be slightly complex to validate during the TLS handshake.
For pg8000
, pymysql
and pytds
it is probably possible to adjust the ssl.wrap_socket()
to set do_handshake_on_connect
to False, do our verification and then call do_handshake()
. Python ssl.wrap_socket documentation
But for asyncpg
we don't have control over the handshake at all as it is done in the asyncpg code, we just pass it the SSL/TLS context object.
cloud-sql-python-connector/google/cloud/sql/connector/asyncpg.py
Lines 55 to 64 in de2852f
from cloud-sql-python-connector.
Related Issues (20)
- Replace`credentials.valid` check for `credentials.token_state`
- Issue connecting to Cloud SQL with psycopg2 HOT 3
- system.test_connector_object: test_connector_in_ThreadPoolExecutor failed HOT 2
- sql connector through "Server refuses SSL" error when pg8000 updated to 1.31.1 HOT 4
- invalid argument(s) 'async_creator' sent to create_engine() when running in Dataflow HOT 12
- Create an Official Beam I/O Connector for Cloud SQL HOT 2
- Error Connecting to CloudSQL from GKE cluster HOT 8
- system.test_asyncpg_connection: test_connection_with_asyncpg failed HOT 1
- system.test_asyncpg_iam_auth: test_connection_with_asyncpg_iam_auth failed HOT 3
- Add retries around 50X errors HOT 1
- GCP Composer unable to install cloud-sql-python-connector pypi package HOT 1
- Failed connection calls should invalidate the cache
- system.test_connector_object: test_multiple_connectors failed HOT 1
- system.test_connector_object: test_connector_with_custom_loop failed HOT 2
- system.test_pymysql_connection: test_pooled_connection_with_pymysql failed HOT 1
- system.test_asyncpg_connection: test_connection_with_asyncpg failed HOT 1
- system.test_connector_object: test_connector_with_credentials failed HOT 1
- system.test_pg8000_iam_auth: test_pooled_connection_with_pg8000_iam_auth failed HOT 1
- Support multiple event loops with a given `Connector` HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cloud-sql-python-connector.