Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YRZxE-0007Fx-3f for pgsql-hackers@arkaria.postgresql.org; Sat, 28 Feb 2015 05:28:44 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YRZxC-0007iK-W1 for pgsql-hackers@arkaria.postgresql.org; Sat, 28 Feb 2015 05:28:43 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YRZx5-0007Ve-CB for pgsql-hackers@postgresql.org; Sat, 28 Feb 2015 05:28:35 +0000 Received: from mail-pa0-x235.google.com ([2607:f8b0:400e:c03::235]) by makus.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1YRZx2-0004tB-4b for pgsql-hackers@postgresql.org; Sat, 28 Feb 2015 05:28:33 +0000 Received: by padbj1 with SMTP id bj1so2319918pad.11 for ; Fri, 27 Feb 2015 21:28:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=ZpfDqsi7gTM2KLFFMpm8rEBcDTq9H4BLj3yx+70XVMU=; b=k21VkFC4br6wJAM0r+HNpACAj9M1x86ni1j2wCKTBUHmVaMzcvHHCQ9klvQ6wU/nJX +ZAxfox6ICyg8KmEKEc4MRu5LNcwQvg7ekdRxPCdkfQJi0bdU3E2zXv75NuIgkDMVr+9 tDSJRikYFc1FT2VA88+6GHa/wH1MNowQwkL90lmFYs4Ik1sJ8R0kq2m8rQUvdnP8H3S6 otJv9RiYFaRS6KLY/LOCHvk3tHQD1m7pOkARSQH/MLt1VvdE5VpEUCxparuKsuwAwji2 3TZk2GhIr0ynowtO2qo8xKAT6cE4Hu5U6lhnzPihGZI1Rj/9hp8JdEkjhkfEGCXu7Qj5 6jqw== X-Received: by 10.67.4.70 with SMTP id cc6mr29964002pad.136.1425101311242; Fri, 27 Feb 2015 21:28:31 -0800 (PST) MIME-Version: 1.0 Received: by 10.70.82.170 with HTTP; Fri, 27 Feb 2015 21:27:50 -0800 (PST) In-Reply-To: <29710.1425087618@sss.pgh.pa.us> References: <54C8156E.1080500@BlueTreble.com> <54C95C4B.2080901@BlueTreble.com> <54F09D68.2090700@2ndquadrant.com> <20150227165950.GP29780@tamriel.snowman.net> <20150227183236.GQ29780@tamriel.snowman.net> <20150227195529.GS29780@tamriel.snowman.net> <12545.1425072391@sss.pgh.pa.us> <20150228003749.GU29780@tamriel.snowman.net> <29710.1425087618@sss.pgh.pa.us> From: Pavel Stehule Date: Sat, 28 Feb 2015 06:27:50 +0100 Message-ID: Subject: Re: Providing catalog view to pg_hba.conf file - Patch submission To: Tom Lane Cc: Stephen Frost , Tomas Vondra , PostgreSQL Hackers Content-Type: multipart/alternative; boundary=001a11339a1c6cf8de05101f416f X-Pg-Spam-Score: -2.7 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org --001a11339a1c6cf8de05101f416f Content-Type: text/plain; charset=UTF-8 2015-02-28 2:40 GMT+01:00 Tom Lane : > Stephen Frost writes: > > I understand that there may be objections to that on the basis that it's > > work that's (other than for this case) basically useless, > > Got it in one. > > I'm also not terribly happy about leaving security-relevant data sitting > around in backend memory 100% of the time. We have had bugs that exposed > backend memory contents for reading without also granting the ability to > execute arbitrary code, so I think doing this does represent a > quantifiable decrease in the security of pg_hba.conf. > The Stephen's proposal changes nothing in security. These data are in memory now. The only one difference is, so these data will be fresh. Regards Pavel > > regards, tom lane > --001a11339a1c6cf8de05101f416f Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


2015-02-28 2:40 GMT+01:00 Tom Lane <tgl@sss.pgh.pa.us>:<= br>
Stephen Frost <sfrost@snowman.net> writes:
> I understand that there may be objections to that on the basis that it= 's
> work that's (other than for this case) basically useless,

Got it in one.

I'm also not terribly happy about leaving security-relevant data sittin= g
around in backend memory 100% of the time.=C2=A0 We have had bugs that expo= sed
backend memory contents for reading without also granting the ability to execute arbitrary code, so I think doing this does represent a
quantifiable decrease in the security of pg_hba.conf.
=
The Stephen's proposal changes nothing in security. Thes= e data are in memory now. The only one difference is, so these data will be= fresh.

Regards

Pavel
=C2= =A0

=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 regards, tom lane

--001a11339a1c6cf8de05101f416f--