pgsql: Allow SSL server key file to have group read access if owned by

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Allow SSL server key file to have group read access if owned by
Date: 2016-03-19 10:39:45
Message-ID: E1ahEIL-0005t3-B0@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Allow SSL server key file to have group read access if owned by root

We used to require the server key file to have permissions 0600 or less
for best security. But some systems (such as Debian) have certificate
and key files managed by the operating system that can be shared with
other services. In those cases, the "postgres" user is made a member of
a special group that has access to those files, and the server key file
has permissions 0640. To accommodate that kind of setup, also allow the
key file to have permissions 0640 but only if owned by root.

From: Christoph Berg <myon(at)debian(dot)org>
Reviewed-by: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/9a83564c58b7f6363141a8f1d0c87c89a5ebab5d

Modified Files
--------------
doc/src/sgml/runtime.sgml | 13 ++++++++++++-
src/backend/libpq/be-secure-openssl.c | 33 ++++++++++++++++++++++++++++-----
2 files changed, 40 insertions(+), 6 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2016-03-19 13:38:38 Re: [COMMITTERS] pgsql: Improve memory management for external sorts.
Previous Message Andres Freund 2016-03-19 05:40:45 pgsql: Fix stupid omission in c4901a1e.