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.
IE; the 'postgres' unix user is required to access databases as the 'postgres' database user.
This is the case for the official docker image at least, and I'm fairly certain also true of distro package managers