Re: Relaxing SSL key permission checks - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Relaxing SSL key permission checks
Date
Msg-id 26841.1455808669@sss.pgh.pa.us
Whole thread Raw
In response to Relaxing SSL key permission checks  (Christoph Berg <myon@debian.org>)
Responses Re: Relaxing SSL key permission checks  (Bruce Momjian <bruce@momjian.us>)
Re: Relaxing SSL key permission checks  (Andres Freund <andres@anarazel.de>)
Re: Relaxing SSL key permission checks  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-hackers
Christoph Berg <myon@debian.org> writes:
> Currently the server insists on ssl_key_file's permissions to be 0600
> or less, and be owned by the database user. Debian has been patching
> be-secure.c since forever (the git history goes back to 8.2beta1) to
> relax that to 0640 or less, and owned by root or the database user.

Debian can do that if they like, but it's entirely unacceptable as an
across-the-board patch.  Not all systems treat groups as being narrow
domains in which it's okay to assume that group-readable files are
secure enough to be keys.  As an example, on OS X user files tend to be
group "staff" or "admin" which'd be close enough to world readable.

We could allow group-readable if we had some way to know whether to
trust the specific group, but I don't think there's any practical
way to do that.  System conventions vary too much.
        regards, tom lane



pgsql-hackers by date:

Previous
From: "Constantin S. Pan"
Date:
Subject: Re: [WIP] speeding up GIN build with parallel workers
Next
From: Bruce Momjian
Date:
Subject: Re: Relaxing SSL key permission checks