Skip to content
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

Support TLS Authentication for PostgreSQL connection #2659

Open
vlaborie opened this issue Oct 2, 2024 · 2 comments
Open

Support TLS Authentication for PostgreSQL connection #2659

vlaborie opened this issue Oct 2, 2024 · 2 comments

Comments

@vlaborie
Copy link

vlaborie commented Oct 2, 2024

Hello,

I use Client Certificate for authenticating application to PostgreSQL database.

App who use client authentification do not need PostgreSQL password but need to define some postgresql parameters: sslmode, sslcert, sslkey and sslrootcert.

Some application permit to configure PostgreSQL connections directly as DSN, eg. postgresql://username:password@postgresql-host.localdomain:5432?sslmode=verifyfull&sslrootcert=ca.crt&sslcert=tls.crt&sslkey=tls.key

Both psycopg2 and asyncpg permit to configure theses parameters, can you add env variables to configure theses parameters or a env variable for directly configuring PostgreSQL DSN ?

Thank's,

@rkuo-danswer
Copy link
Contributor

Thanks for bringing this up. We've done some work to ssl/tls enable other parts of the infra, so this sounds reasonable. We'll add it to our tracker.

@rkuo-danswer
Copy link
Contributor

Tracking internally as DAN-848.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants