News for hackers. Stuff that matters.
Re:The Majority of PostgreSQL Servers on the Internet Are In... by koollman on Tuesday October 04, 2022 @07:17PM (#33088499)
That's a strange take on the subject of db servers and ssl usage. Most db servers shouldn't be accessible on internet, which skews the announced result a lot. And, obviously, clients and servers generally won't require ssl by default, because it would make no sense in most situations. (but at least the 'prefer' default setting is mentionned) Requiring a certificate to run the server isn't something that is likely to become the default setting for a while...
Re:The Majority of PostgreSQL Servers on the Internet Are In... by _bohm on Tuesday October 04, 2022 @07:27PM (#33088605)
I think the announced results are specifically referring to servers available on the internet.
Re:The Majority of PostgreSQL Servers on the Internet Are In... by OJFord on Tuesday October 04, 2022 @08:04PM (#33089018)
That's GP's point, that's already a 'smell' (in the strict 'hm, that seems suspiciously like it might not be right' sense).
Re:The Majority of PostgreSQL Servers on the Internet Are In... by adam_gyroscope on Tuesday October 04, 2022 @07:30PM (#33088635)
(co-author) - `prefer` is... not great. That'll silently fall back to an unencrypted connection without warning the user.

If you are the one using a programming library directly, you may know that `prefer` does this. If you are using a client that doesn't expose this to you, you may not know that you are using an unencrypted connection after you had set ssl on.

Re:The Majority of PostgreSQL Servers on the Internet Are In... by RL_Quine on Tuesday October 04, 2022 @09:30PM (#33089891)
Who cares though? All connections to SQL servers are going to be localhost or over a VPN, if your setup for postgres has a SSL certificate you're doing something terribly wrong to begin with. I'm not even sure why the option exists to begin with, there's no use case.
Re:The Majority of PostgreSQL Servers on the Internet Are In... by orev on Tuesday October 04, 2022 @10:22PM (#33090289)
Many places have security policies that require all traffic to be encrypted, even over local networks.
Re:The Majority of PostgreSQL Servers on the Internet Are In... by thayne on Tuesday October 04, 2022 @11:37PM (#33090873)
So in that case, require ssl. But, that probably shouldn't be the default.
Re:The Majority of PostgreSQL Servers on the Internet Are In... by RL_Quine on Tuesday October 04, 2022 @10:59PM (#33090582)
So, a VPN then?
Re:The Majority of PostgreSQL Servers on the Internet Are In... by orev on Tuesday October 04, 2022 @11:35PM (#33090854)
A VPN generally connects networks, so that’s probably overkill for a database connection, but sure you could use one. Or something like stunnel, etc. or you could just use the built in feature already in Postgres. Why such resistance to simply having this option?
Re:The Majority of PostgreSQL Servers on the Internet Are In... by RL_Quine on Wednesday October 05, 2022 @12:32AM (#33091273)
It’s something akin to a layer violation to have a database server running openssl and encrypting its own communication. It isn’t it’s business at all.
Re:The Majority of PostgreSQL Servers on the Internet Are In... by imtringued on Wednesday October 05, 2022 @03:16AM (#33092272)
This is one of the most disappointing hackernews submissions I have seen in a while. I use a private CA and client certificate authentication. It might be overkill but it is easy to implement.
Re:The Majority of PostgreSQL Servers on the Internet Are In... by outworlder on Thursday October 06, 2022 @03:35PM (#33112929)
> if your setup for postgres has a SSL certificate you're doing something terribly wrong to begin with.

No, that's a bad take. We should encrypt everything. The reasoning for not doing so in the past was computing power. Nowadays, that's really not a problem. Even my personal servers in my home network are all operating with encrypted links - because why the heck not? At work, everything that can be encrypted is encrypted, otherwise it's a bug. Even if currently 'there's no way' for attackers to get to that particular network. Emphasis on "currently". We shouldn't be a compromise away from leaking everything. Defense in depth.

Plus, the more you are familiar with setting up encryption, the less tempted you are going to be to cut corners when you are setting up something that's at a higher risk.

Re:The Majority of PostgreSQL Servers on the Internet Are In... by mistrial9 on Tuesday October 04, 2022 @08:56PM (#33089543)
do you understand that Postgres devs have been all over this since (likely) the time you were born? The conventional, real and actual servers that matter are generally not at all visible on the Internet, period. Because they know this.. its like this paper tests servers that dont care, and declare the entire product unsecure. Bad take, scare-mongering
Re:The Majority of PostgreSQL Servers on the Internet Are In... by chasil on Tuesday October 04, 2022 @09:36PM (#33089937)
Still, Oracle is the worst.

All the SQL transit is cleartext by default.

A "wallet" can be defined for TLS, but the Oracle Instant Client doesn't (appear to) support this functionality.

I push all my local Oracle database links over stunnel.

Oracle SQL Developer even has an SSH pane, because wallets are so very unusable.