-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to connect to postgresql with ssl #2881
Comments
It's not clear what is your setup: pg version? how you created certs? how you deliver them into container, etc |
I created the certs through using openssl and i know they work because i use them in my PgAdmin4 and some code i wrote with sqlalchemy Im using PostgresSQL 12.2 I deliver the certs to the container with COPY command from my docker file and i change the mode of the certs to 600 after |
I have the same issue. I configured a GCP cloud run with label studio community edition to connect to a GCP PostgreSQL version 15.
By the way, I tested the same certificates with other container images, such as Pgadmin, directus, and retool, and it worked.
I also tested it with the following env variable:
The above env variables did not work for the SSL mode: verify-full @makseq Could you please share the environment variable names I need to configure for the label studio SSL connection with PostgreSQL? |
Hi @makseq, I also found the PR to enable TLS on pgsql: https://github.com/HumanSignal/label-studio/pull/1737/files. it for the PostgreSQL version 11.5.
Could you please share the instructions for the SSL connection? |
I’m trying to connect my label studio to posgresql with client.crt and client.key certificates but i can’t manage to do it
Label studio version: V1.4
OS: linux
Trying to run it in a docker container
This is the error I’m getting:
The above exception was the direct cause of the following exception:
The text was updated successfully, but these errors were encountered: