Re: Thoughts on the location of configuration files - Mailing list pgsql-hackers

From Daniel Kalchev
Subject Re: Thoughts on the location of configuration files
Date
Msg-id 200112190836.KAA01851@dcave.digsys.bg
Whole thread Raw
In response to Re: Thoughts on the location of configuration files  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
>>>Tom Lane said:> Secondary password files are a fairly obvious example of stuff better> not left out in the cold.  We
couldprobably deprecate the practice> of keeping any actual passwords in such files ;-) ... but I wonder> whether it'd
notbe better to leave them under $PGDATA.  A person> slightly more paranoid than myself would argue against exposing
any>part of pg_hba.conf or pg_ident.conf.
 

Then, count me more paranoid that you.

In a 'serious' database setup, it is unlikely anyone to have 'shell' access to 
the database server except 'root' and the DBA (I tend to assume in many places 
such separation is valid). This will include larger setups. In these cases 
where the config files are is not important at all - perhaps the reason for 
the current situation.

In 'lets try it' setups, many people will have access to the files on the 
machine and the current setup is fairly secure. However, it will also be 
secure enough, if files in /etc are mode 600 (or just not writable/readable by 
other) - perhaps PostgreSQL should just refuse to run, if they are not?

The point in hiding pg_hba.conf and pg_ident.conf for example is that an 
inexperienced DBA may well make errors in these files that permit unwanted 
access - this is much easier to exploit - and no, I don't advocate security 
trough obscurity.

Daniel



pgsql-hackers by date:

Previous
From: Thomas Lockhart
Date:
Subject: Re: FreeBSD/alpha
Next
From: Daniel Kalchev
Date:
Subject: Re: Thoughts on the location of configuration files