elixir-deploy-template icon indicating copy to clipboard operation
elixir-deploy-template copied to clipboard

use project name for postgres user

Open yuchunc opened this issue 7 years ago • 3 comments

Current setup, postgres user will default to postgres. This PR will use project name instead.

yuchunc avatar Aug 08 '18 09:08 yuchunc

We still need the postgres admin user postgresql_admin_user. That's the "root" user for posgres, and it's useful for this user to be able to connect to the database without a password for admin scripts and when things are messed up.

The app should generally talk to the database with a password. It's not safe to give the app user admin permissions without a password. It might make sense to add a line which gives passwordless access to a specific database.

reachfh avatar Aug 08 '18 13:08 reachfh

Gotcha, that make sense.

I have updated db-servers/postgres.yml, can you take a look again? Thanks!

yuchunc avatar Aug 09 '18 04:08 yuchunc

I think it's unnecessary, though. By default you can connect to any local database with a password by connecting to 127.0.0.1 using this line:

- { type: host,  database: all, user: all, address: "127.0.0.1/32", method: "{{ postgresql_default_auth_method }}", comment: "IPv4 local connections:" }

The Elixir Postgres db driver uses TCP. I don't think it supports Unix domain sockets.

reachfh avatar Aug 12 '18 12:08 reachfh