terraform-provider-postgresql icon indicating copy to clipboard operation
terraform-provider-postgresql copied to clipboard

Allow remote IP address to be overridden

Open davel opened this issue 1 year ago • 0 comments

Hello,

The postgresql client library provides a "hostaddr" feature, allowing you to override DNS. This is very useful if you wish to use SSL certificate verification but are connecting to your database indirectly.

https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-CONNECT-HOSTADDR

This patch adds this feature. The pq library lacks support (https://github.com/lib/pq/issues/860) so I have implemented here inside the proxy wrapper. Please excuse any terrible Go, I am not a regular user!

All the best, Dave

davel avatar Apr 29 '24 17:04 davel