question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add config option / env variable for ssl mode.

Also option with #32 ?sslmode=require should be enough.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
water-acommented, Dec 9, 2020

Are there any plans for this to be added?

Seems not that bad to add: https://github.com/brianc/node-postgres/blob/0012a43d956b1b47fc5ddf1eca5894b64f7ccf24/packages/pg/lib/connection.js#L65

I’ll take a shot at it.

1reaction
deman4ikcommented, May 31, 2020

@adelsz I am using remote db instance (DaaS) for development with required ssl.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Documentation: 15: 34.19. SSL Support - PostgreSQL
PostgreSQL has native support for using SSL connections to encrypt client/server communications using TLS protocols for increased security.
Read more >
Encryption modes · Cloudflare SSL/TLS docs
Go to SSL/TLS. Choose an encryption mode.
Read more >
Postgres SSLMODE Explained - ankane.org
Postgres SSLMODE Explained. When you connect to a database, Postgres uses the sslmode parameter to determine the security of the connection.
Read more >
What is SSL, TLS and HTTPS? - DigiCert
SSL stands for Secure Sockets Layer and, in short, it's the standard technology for keeping an internet connection secure and safeguarding any sensitive ......
Read more >
Using psql to connect to PostgreSQL in SSL mode
psql below 9.2 does not accept this URL-like syntax for options. The use of SSL can be driven by the sslmode=value option on...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found