pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Dunstan <andrew.dunstan@2ndquadrant.com>
To: Craig Ringer <craig@2ndquadrant.com>
To: Christoph Berg <myon@debian.org>
To: Robert Haas <robertmhaas@gmail.com>
To: pgsql-hackers@postgresql.org <pgsql-hackers@postgresql.org>
Subject: Re: pgsql: Allow 'sslkey' and 'sslcert' in postgres_fdw user mappings
Date: Mon, 20 Jan 2020 04:00:34 -0500
Message-ID: <2fb2a879-725b-57c1-bd15-a9111a03416c@2ndQuadrant.com> (raw)
In-Reply-To: <CAMsr+YH1+jG0+23RVzab+y9ZrE=ps3GXCqYEyY7hLDdnveLPjQ@mail.gmail.com>
References: <E1ipSuj-0007Um-6M@gemulon.postgresql.org>
	<CA+TgmoZEjyv_PD=2cinkbDA_chyLNAcBPL_9bKJQ6bc=nw+FHA@mail.gmail.com>
	<20200109143845.GE4192@msg.df7cb.de>
	<CAMsr+YH1+jG0+23RVzab+y9ZrE=ps3GXCqYEyY7hLDdnveLPjQ@mail.gmail.com>


On 1/20/20 2:48 AM, Craig Ringer wrote:
> On Thu, 9 Jan 2020 at 22:38, Christoph Berg <myon@debian.org
> <mailto:myon@debian.org>> wrote:
>
>     Re: Robert Haas 2020-01-09
>     <CA+TgmoZEjyv_PD=2cinkbDA_chyLNAcBPL_9bKJQ6bc=nw+FHA@mail.gmail.com
>     <mailto:nw%2BFHA@mail.gmail.com>>
>     > Does this mean that a non-superuser can induce postgres_fdw to
>     read an
>     > arbitrary file from the local filesystem?
>
>     Yes, see my comments in the "Allow 'sslkey' and 'sslcert' in
>     postgres_fdw user mappings" thread.
>
>
> Ugh, I misread your comment.
>
> You raise a sensible concern.
>
> These options should be treated the same as the proposed option to
> allow passwordless connections: disallow creation or alteration of FDW
> connection strings that use them by non-superusers. So a superuser can
> define a user mapping that uses these options, but normal users may not.
>
>


Already done.


cheers


andrew


-- 
Andrew Dunstan                https://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services






view thread (5+ messages)

Message-ID: <2fb2a879-725b-57c1-bd15-a9111a03416c@2ndQuadrant.com>
Permalink:  ../2fb2a879-725b-57c1-bd15-a9111a03416c@2ndQuadrant.com/
Also on:    postgresql.org/message-id/2fb2a879-725b-57c1-bd15-a9111a03416c@2ndQuadrant.com

 · 

reply

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-committers@postgresql.org
  Cc: andrew.dunstan@2ndquadrant.com, craig@2ndquadrant.com, myon@debian.org, robertmhaas@gmail.com, pgsql-hackers@postgresql.org
  Subject: Re: pgsql: Allow 'sslkey' and 'sslcert' in postgres_fdw user mappings
  In-Reply-To: <2fb2a879-725b-57c1-bd15-a9111a03416c@2ndQuadrant.com>
  References: <E1ipSuj-0007Um-6M@gemulon.postgresql.org> <CA+TgmoZEjyv_PD=2cinkbDA_chyLNAcBPL_9bKJQ6bc=nw+FHA@mail.gmail.com> <20200109143845.GE4192@msg.df7cb.de> <CAMsr+YH1+jG0+23RVzab+y9ZrE=ps3GXCqYEyY7hLDdnveLPjQ@mail.gmail.com> <2fb2a879-725b-57c1-bd15-a9111a03416c@2ndQuadrant.com>

* 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