From: Tom Lane <tgl@sss.pgh.pa.us>
To: Radoslaw Stachowiak <radek@alter.pl>
Cc: postgresql <pgsql-admin@postgresql.org>
Subject: Re: SSL Mode
Date: Mon, 23 Dec 2002 14:45:59 -0500
Message-ID: <7297.1040672759@sss.pgh.pa.us> (raw)
In-Reply-To: <20021223185911.GE3728@blue.alter.pl>
References: <20021223133733.P72978-100000@m20.unixathome.org>
<200212231842.gBNIgRo02712@candle.pha.pa.us>
<20021223185911.GE3728@blue.alter.pl>
Radoslaw Stachowiak <radek@alter.pl> writes:
> and one more suggestion, as this feature is a little bit to strong IMHO.
> Common practice for such files (private keys) is to make them owned by
> root user and postgres group with 640 mode.
I don't think that's either common practice or a good idea. For one
thing, it presumes that there *is* a postgres group; which is not a
requirement we ever had before. For another, root can read or write the
file if she chooses regardless of ownership or permissions, so it's not
like doing it that way gains anything.
As a counterexample, on a setup like mine (HP-UX), all normal users are
members of group "users" and so group readability is not much safer than
world readability. If Postgres neglected to complain about mode 640
then there'd be little point in having a file-security check at all, on
this system.
IMHO the existing check is just fine, although the complaint message
could be a lot more specific (it looks to me like three distinctly
different sanity checks are being folded into one error message :-().
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, radek@alter.pl
Subject: Re: SSL Mode
In-Reply-To: <7297.1040672759@sss.pgh.pa.us>
References: <20021223133733.P72978-100000@m20.unixathome.org> <200212231842.gBNIgRo02712@candle.pha.pa.us> <20021223185911.GE3728@blue.alter.pl> <7297.1040672759@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox