You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
PostgreSQL URI connection strict ?sslmode=require should enable dialectOptions.ssl=true #10015
It appears that with the node-postgres module you can't use sslmode=mode. However you can use ssl=true and that defaults to sslmode=require (found a note on that in the docs).
It is also possible with the node-postgress module to pass an object for ssl (code).
I will submit a pull request that adds support for ?ssl=true to the URI for Postgres. If needed I can add support for sslmodesslcasslkeysslcertsslrootcert but I suspect it unnecessary.
Reacted by Nicolas Grenié, Prasad Pathak, Siddharth Rawat, Den Rupp, Edvan de Matos, Mene Pet, Arif Mammadov, Yusup Hambali, Atanu Kumar Dey, Shailendra Ahir and 4 more
Reacted by Nicolas Grenié, Edvan de Matos, Mene Pet, Yessenia Villarte and Eduardo Santos
Activity
justinkalland commentedon Oct 11, 2018
It appears that with the node-postgres module you can't use
sslmode=mode. However you can usessl=trueand that defaults tosslmode=require(found a note on that in the docs).It is also possible with the node-postgress module to pass an object for
ssl(code).I will submit a pull request that adds support for
?ssl=trueto the URI for Postgres. If needed I can add support forsslmodesslcasslkeysslcertsslrootcertbut I suspect it unnecessary.ceefour commentedon Oct 12, 2018
@justinkalland this is really great!
Postgres: move SSL connection settings to config/database.js
dnuske commentedon Sep 21, 2022
this solution worked for me:
credit to https://catalins.tech/nodejs-postgresql-heroku-error-no-pghbaconf-entry-for-host-ssl-off#bonus-sequelize-solution