connector-x icon indicating copy to clipboard operation
connector-x copied to clipboard

Support client authentication for postgres

Open wangxiaoying opened this issue 3 years ago • 2 comments

Thanks for replying so quickly. My use case really revolves around the way our database is secured. Typically a client will request access and certificates are issued through a Vault. So in my case I only have 3 certs and no password is issued.

Originally posted by @frostpuppet in https://github.com/sfu-db/connector-x/issues/104#issuecomment-1023812217

wangxiaoying avatar Feb 01 '22 17:02 wangxiaoying

Hi @frostpuppet, sorry for the late response. We have added the support for client authentication in our newest version 0.2.5. To set up the certs and keys, you need to add the url params like this "?sslmode=require&sslrootcert={postgres_rootcert}&sslcert={postgres_sslcert}&sslkey={postgres_sslkey}". Can you try to see whether it works?

wangxiaoying avatar Mar 31 '22 17:03 wangxiaoying

sorry for the delay. let me get it tried out.

frostpuppet avatar May 02 '22 17:05 frostpuppet