News for hackers. Stuff that matters.
Re:Securing a Postgres Database by dijit on Saturday April 03, 2021 @03:17AM (#26678958)
it also isn't "open"; your username has to match the postgres database username to connect.

IE; the 'postgres' unix user is required to access databases as the 'postgres' database user.

Re:Securing a Postgres Database by mnahkies on Saturday April 03, 2021 @04:06AM (#26679164)
Hmm I think the default pg_hba.conf uses "trust" and so will allow passwordless connections as postgres on localhost, you just have to specify the username (psql will use your username by default)

This is the case for the official docker image at least, and I'm fairly certain also true of distro package managers

Re:Securing a Postgres Database by boromisp on Saturday April 03, 2021 @05:54AM (#26679658)
At least on debian / ubuntu, the default is peer auth: https://salsa.debian.org/postgresql/postgresql-common/-/blob...