Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1r1D7j-00A1Lk-VX for pgsql-docs@arkaria.postgresql.org; Thu, 09 Nov 2023 22:03:39 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1r1D7i-00HDGv-I8 for pgsql-docs@arkaria.postgresql.org; Thu, 09 Nov 2023 22:03:38 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1r1D7i-00HDGn-Aa for pgsql-docs@lists.postgresql.org; Thu, 09 Nov 2023 22:03:38 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1r1D7f-005czN-R2 for pgsql-docs@lists.postgresql.org; Thu, 09 Nov 2023 22:03:37 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 3A9M3X8j1258589; Thu, 9 Nov 2023 17:03:33 -0500 From: Tom Lane To: Bruce Momjian cc: greatvovan@gmail.com, pgsql-docs@lists.postgresql.org Subject: Re: User mapping security In-reply-to: References: <156324246053.1191.5972769566826595079@wrigleys.postgresql.org> Comments: In-reply-to Bruce Momjian message dated "Thu, 09 Nov 2023 16:42:18 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1258587.1699567413.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Thu, 09 Nov 2023 17:03:33 -0500 Message-ID: <1258588.1699567413@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Bruce Momjian 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 wit= h be >> stored as simple text and will be available for viewing in pg_user_mapp= ings. > 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. regards, tom lane