How to authenticate to the hub database (via sqlalchemy) using SSL

We are running Z2JK in GKE. The hub’s database is hosted on a Cloud SQL for Postgress database instance.

We are required to using SSL authentication for the Hub’s connection to its database. We need to provide the following information when the Hub authenticates with it’s database.

  • A Certificate Authority (CA) certificate in a server-ca.pem file.
  • A client public key certificate in a client-cert.pem file.
  • A client private key in a client-key.pem file.

Is there a way to pass these certs to the SQLAlchemy without having to make code modifications to Jupyterhub?