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 1r1CnA-009zsT-Sb for pgsql-docs@arkaria.postgresql.org; Thu, 09 Nov 2023 21:42:24 +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 1r1Cn9-00H8K3-Bh for pgsql-docs@arkaria.postgresql.org; Thu, 09 Nov 2023 21:42:23 +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 1r1Cn9-00H8Ju-3v for pgsql-docs@lists.postgresql.org; Thu, 09 Nov 2023 21:42:23 +0000 Received: from momjian.us ([72.94.173.45]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1r1Cn6-005cpv-7A for pgsql-docs@lists.postgresql.org; Thu, 09 Nov 2023 21:42:22 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=momjian.us; s=2023062407; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:To:From:Date:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description; bh=xDZQetH6qZBCB4OngpW0eZEhnVOu8CnYcnqpV3FUF3w=; b=fhFmK DxjVOLycM18o6Cv3aSxSzbd2+GKJmQ7+bwnQLWoJyVVPNYPsb3XJzNU1Tl2VO/K3bAXPKrxWwuv3l Z7Op0nN0MjjtWbRPoQa3aZihvY0kEOI2ULIrSkFxrhIIbnxoW73IYQmU69v5L6dTU/XJgL+ebWozr 6UM0leUs1gR+2gnefEdcbPFuE8aEhvNJyBIdiQX2dNCGun3igSyQYsgccfZDm6jGVdCNqwQ9Z6wo+ bmEwtOXb9HYKZWNCVdKXQ3rWOWLrVGRF4yE940Ko0+PYjnX8KtfE9d+G/zoHwAzN1dQ3JqWKKYAog cS2Zp4oAXTLHM/ESbg4Bhk8Ec2f2Q==; Received: from bruce by momjian.us with local (Exim 4.96) (envelope-from ) id 1r1Cn4-002ilw-1M; Thu, 09 Nov 2023 16:42:18 -0500 Date: Thu, 9 Nov 2023 16:42:18 -0500 From: Bruce Momjian To: greatvovan@gmail.com, pgsql-docs@lists.postgresql.org Subject: Re: User mapping security Message-ID: References: <156324246053.1191.5972769566826595079@wrigleys.postgresql.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="Z0ar3iXrjdIFtH0+" Content-Disposition: inline In-Reply-To: <156324246053.1191.5972769566826595079@wrigleys.postgresql.org> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --Z0ar3iXrjdIFtH0+ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Jul 16, 2019 at 02:01:00AM +0000, PG Doc comments form wrote: > The following documentation comment has been logged on the website: > > Page: https://www.postgresql.org/docs/10/postgres-fdw.html > Description: > > Regarding the documentation pages > https://www.postgresql.org/docs/10/postgres-fdw.html?origin_team=T02HEPYKQ > and https://www.postgresql.org/docs/10/sql-createusermapping.html > > 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. -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Only you can decide what is important to you. --Z0ar3iXrjdIFtH0+ Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="usermap.diff" diff --git a/doc/src/sgml/ref/create_user_mapping.sgml b/doc/src/sgml/ref/create_user_mapping.sgml index 55debd5401..e93bfe48f6 100644 --- a/doc/src/sgml/ref/create_user_mapping.sgml +++ b/doc/src/sgml/ref/create_user_mapping.sgml @@ -92,7 +92,11 @@ CREATE USER MAPPING [ IF NOT EXISTS ] FOR { user_ This clause specifies the options of the user mapping. The options typically define the actual user name and password of the mapping. Option names must be unique. The allowed option - names and values are specific to the server's foreign-data wrapper. + names and values are specific to the server's foreign-data + wrapper. Option values, including passwords, are visible in the + pg_user_mapping + system view. --Z0ar3iXrjdIFtH0+--