|
|
|
|
|
by JohnBooty
491 days ago
|
|
For all "typical" web apps (and certainly the ones for which you'd use RoR) you still need some kind of server providing some kind of central database. Assuming you don't want to just leave 5432 open and expose your Postgres server for the world to rawdog, you are going to need some authentication and other auth logic on the server side. So, I don't see companies really rushing to deploy apps this way. |
|
I hear you about purposefully leaving 5432 open to the Internet, because "C is gonna C" but I just meant much like its "PasswordAuthentication no" friend, sending passwords over the wire is not the only form of auth nowadays. There's a very real chance putting pgbouncer in front of it[3] would reduce the blast radius of exposing C to the Internet. I was hoping pgcat (written in rust) would be a suitable alternative but it does not seem to allow TLS auth
1: https://www.postgresql.org/docs/11/auth-cert.html (it's the earliest version still linked on their site)
2: https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypt...
3: https://www.pgbouncer.org/config.html#authentication-setting...