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 1r1D7G-00A1Jy-QC for pgsql-docs@arkaria.postgresql.org; Thu, 09 Nov 2023 22:03:11 +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 1r1D7D-00HCdn-Er for pgsql-docs@arkaria.postgresql.org; Thu, 09 Nov 2023 22:03:07 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1r1D7C-00HCde-SI for pgsql-docs@lists.postgresql.org; Thu, 09 Nov 2023 22:03:07 +0000 Received: from tamriel.snowman.net ([70.109.60.50]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1r1D75-004nxE-FW for pgsql-docs@lists.postgresql.org; Thu, 09 Nov 2023 22:03:05 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id D3E705F7BA; Thu, 9 Nov 2023 17:02:53 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=snowman.net; s=dkim; t=1699567373; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=IHgiiHZvhYpVljoRulCLDaN1VuqBiLaNOp46JF7OZEs=; b=RrUpjEBFyY4lUvWauPzQe8nAcCKYEyBBRdCUZP7ylYU8uuonsI2lmi5I3rhjJmNShp0We9 2lfR0BVW7pL8hPykcZwhYHROjKJAb8x/r2MNEg/fFckEYJBR3uTSe25kz71cmCoLTyUPyK vq3JWgoX5Y3uMgcD7T/HQmdXmT9EFkI= Date: Thu, 9 Nov 2023 17:02:53 -0500 From: Stephen Frost To: Bruce Momjian Cc: 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/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="srpxXEp55q8JK2D/" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/2.1.4 (2021-12-11) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --srpxXEp55q8JK2D/ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Greetings, * Bruce Momjian (bruce@momjian.us) wrote: > 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: > >=20 > > Page: https://www.postgresql.org/docs/10/postgres-fdw.html > > Description: > >=20 > > Regarding the documentation pages > > https://www.postgresql.org/docs/10/postgres-fdw.html?origin_team=3DT02H= EPYKQ > > and https://www.postgresql.org/docs/10/sql-createusermapping.html > >=20 > > 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. >=20 > 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. A bit on the fence about it ... but I do wonder if we should encourage use of gssapi and credential delegation now that we support that and point out that storing passwords isn't required if you're using gssapi. Thanks, Stephen > 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 > + + linkend=3D"catalog-pg-user-mapping">pg_user_mapping > + system view. > > > --srpxXEp55q8JK2D/ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEwf6gbxKhD863zrx/7WyKOINHZFUFAmVNVw0ACgkQ7WyKOINH ZFXb8g/+JhNqopvHrdcZ60Syc0RSCGklRGZ8Map4kWj8jRoUmNhc2OXFtDKnPbXJ 8D+v+Eb7MJgbYycRHkiHfqF0gCH1dcm0WLxuH3WxcWc1f6l9WrxGTgnYiMJOQnOD NVDUelf7Vgy8PSTMNtZFuj+LvJLoDMuh4S6sSHB1zzok+gP4hr59kX34EHI+fqJh s2WQHTGegNeo8/OgIB9s1BWjjOQ9mcOVS11Pwaw/3vTc+hOljaiKCOTvojBfGWcG spYzLctXVE/91cqJO6r1P3BXtGAA4Y11YwjC81kbzjtL8QhGITrKlEiwST3+Zf9P TpsD29XwrmXmnCrty5dBW+bv86SHqlUsxTTQxbY5SN5B26Eou2NPI+f3TTNtXxPc f57l/5hAY9jm9viVSzBdyF7c+lDxqeoKngH1R6Te7MAq0fO8QChTqulQot34q7v5 Aisfy7dHcIIzkYK9E1Mbd9jNJ8wuk2VM61ySPWL6hbe6Pv62zTB9+ekfiY23tukx vVfJt5eGOxrvcsv9FTKbl1suWNMP/qnkAtBAgp473WE5sF1971zpWts8r3oiAS0k u3YZ8bFL31tV1A7Bb38nKh6gMTmu6WZutrJPraGJi0pescOD+76qbmCMssNemZZT 4xQSgGNlniTLYLW9yrfdxPl5BlYoqxojPmCAU72ls9SRHFDBoo8= =oESd -----END PGP SIGNATURE----- --srpxXEp55q8JK2D/--