I'm experiencing SSL connection errors when my Cloud Run Job attempts to connect to a private ClickHouse service endpoint (ClickHouse Cloud) within my VPC.
The connection works great from VMs within the same VPC, but the Cloud Run Job consistently fails with an SSLError. I've verified VPC Service Access configuration, firewall rules, and service account permissions.
Error:
clickhouse_connect.driver.exceptions.OperationalError: Error HTTPSConnectionPool(host='<domain>.gcp.clickhouse.cloud', port=8443): Max retries exceeded with url: /?wait_end_of_query=1 (Caused by SSLError(SSLEOFError(8, '[SSL: UNEXPECTED_EOF_WHILE_READING] EOF occurred in violation of protocol (_ssl.c:1007)'))) executing HTTP request attempt 1 (https://<domain>.europe-west4.gcp.clickhouse.cloud:8443)