pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <bruce@momjian.us>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: greatvovan@gmail.com
Cc: pgsql-docs@lists.postgresql.org
Subject: Re: User mapping security
Date: Thu, 9 Nov 2023 17:09:55 -0500
Message-ID: <ZU1Ys5jo9C99Wh4Y@momjian.us> (raw)
In-Reply-To: <1258588.1699567413@sss.pgh.pa.us>
References: <156324246053.1191.5972769566826595079@wrigleys.postgresql.org>
	<ZU1SOvgnwbBawgzN@momjian.us>
	<1258588.1699567413@sss.pgh.pa.us>

On Thu, Nov  9, 2023 at 05:03:33PM -0500, Tom Lane wrote:
> Bruce Momjian <bruce@momjian.us> writes:
> > On Tue, Jul 16, 2019 at 02:01:00AM +0000, PG Doc comments form wrote:
> >> I suppose it should be warned on the pages that foreign credentials with be
> >> stored as simple text and will be available for viewing in pg_user_mappings.
> 
> > I know this is four years old, but the attached patch documents it.  I
> > don't think postgresql-fdw needs it since it relies on user mapping and
> > discourages passwords in the connection string.
> 
> This is far too alarmist.  It ignores the privilege restrictions that
> are built into the pg_user_mappings view.  Random users can't see
> umoptions.

True.  I wasn't sure how much of an issue it was to expose passwords at
the SQL level, but I will drop the idea.

-- 
  Bruce Momjian  <bruce@momjian.us>        https://momjian.us
  EDB                                      https://enterprisedb.com

  Only you can decide what is important to you.





view thread (5+ messages)

Message-ID: <ZU1Ys5jo9C99Wh4Y@momjian.us>
Permalink:  ../ZU1Ys5jo9C99Wh4Y@momjian.us/
Also on:    postgresql.org/message-id/ZU1Ys5jo9C99Wh4Y@momjian.us

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-docs@postgresql.org
  Cc: bruce@momjian.us, tgl@sss.pgh.pa.us, greatvovan@gmail.com, pgsql-docs@lists.postgresql.org
  Subject: Re: User mapping security
  In-Reply-To: <ZU1Ys5jo9C99Wh4Y@momjian.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