Project

General

Profile

Actions

Bug #3918

closed

Password option is not effective in database.yaml

Added by Lukas Zapletal over 10 years ago. Updated over 6 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

It looks like the pg adapter in Rails uses UNIX sockets, which we
configure to trust when ident is set properly.

Here is my pgsql configuration (this is what puppet configured):

# grep -v '#' /var/lib/pgsql/data/pg_hba.conf
local   all     postgres                ident
local   all     all             ident
host    all     postgres        0.0.0.0/0       reject
host    all     all     127.0.0.1/32    md5
host    all     all     ::1/128 md5

As you can see, we allow ident authentication for local (UNIX) sockets
for all users and then we allow password authentication for TCP on
localhost (last two lines). The TCP connection is never used, at least
not for me on RHEL6 / Foreman 1.3.

It's not a security incident luckily, we should get this sorted for
sure by either disallowing all ident, or removing the (confusing)
password from the database.yaml file.

Actions

Also available in: Atom PDF