Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l6hGG-0001z9-Il for pgsql-hackers@arkaria.postgresql.org; Mon, 01 Feb 2021 22:01:32 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1l6hGF-0003bA-Gu for pgsql-hackers@arkaria.postgresql.org; Mon, 01 Feb 2021 22:01:31 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l6hGF-0003b3-A8 for pgsql-hackers@lists.postgresql.org; Mon, 01 Feb 2021 22:01:31 +0000 Received: from tamriel.snowman.net ([70.109.60.50]) by magus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1l6hGC-0000tM-Hm for pgsql-hackers@postgresql.org; Mon, 01 Feb 2021 22:01:30 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id CC9E05F799; Mon, 1 Feb 2021 17:01:26 -0500 (EST) Date: Mon, 1 Feb 2021 17:01:26 -0500 From: Stephen Frost To: Jacob Champion Cc: "magnus@hagander.net" , "pgsql-hackers@postgresql.org" Subject: Re: Proposal: Save user's original authenticated identity for logging Message-ID: <20210201220126.GW27507@tamriel.snowman.net> References: <20210129220101.GE27507@tamriel.snowman.net> <20210201164905.GI27507@tamriel.snowman.net> <57b741e9388f3bd97486615ea1f968c8eee9f055.camel@vmware.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="yVXkZ6wLsKv9EYuM" Content-Disposition: inline In-Reply-To: <57b741e9388f3bd97486615ea1f968c8eee9f055.camel@vmware.com> User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --yVXkZ6wLsKv9EYuM Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Greetings, * Jacob Champion (pchampion@vmware.com) wrote: > On Mon, 2021-02-01 at 11:49 -0500, Stephen Frost wrote: > > * Magnus Hagander (magnus@hagander.net) wrote: > > > But yes, I think the enforced cleartext password proxying is at the > > > core of the problem. LDAP also encourages the idea of centralized > > > password-reuse, which is not exactly a great thing for security. > >=20 > > Right- passing around a user's password in the clear (or even through an > > encrypted tunnel) has been strongly discouraged for a very long time, > > for very good reason. LDAP does double-down on that by being a > > centralized password, meaning that someone's entire identity (for all > > the services that share that LDAP system, at least) are compromised if > > any one system in the environment is. >=20 > Sure. I don't disagree with anything you've said in that paragraph, but > as someone who's implementing solutions for other people who are > actually deploying, I don't have a lot of control over whether a > customer's IT department wants to use LDAP or not. And I'm not holding > my breath for LDAP servers to start implementing federated identity, > though that would be nice. Not sure exactly what you're referring to here but AD already provides Kerberos with cross-domain trusts (aka forests). The future is here..? :) > > Also, if we do add > > it, I would think we'd have it under the same check as the other > > sensitive pg_stat_activity fields and not be superuser-only. >=20 > Just the standard HAS_PGSTAT_PERMISSIONS(), then? >=20 > To double-check -- since giving this ability to the pg_read_all_stats > role would expand its scope -- could that be dangerous for anyone? I don't agree that this really expands its scope- in fact, you'll see that the GSSAPI and SSL user authentication information is already allowed under HAS_PGSTAT_PERMISSIONS(). Thanks, Stephen --yVXkZ6wLsKv9EYuM Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJgGHo2AAoJEO1sijiDR2RV0B0P/idn29LhLfnY89mQECION7k4 M7KPeRL0g8VjiqmPYWnHHwLeJJxTaWIHeCywF24JBFNUNA+af/xz6NOeJsdf9pvw Z5w/5nFwsMrhgwKcPddCIFViNN4oX/a9zdEacqwmVI7CxnB6Mkz5n9QSjb/w4VfZ OQo8Ni1MWz2HdSceyGbws5XWHwmWXN8oaY08X6gncWUF9IJJkBWSaFt7c7IRmSeZ r6XeLgD4MWSaDj4YOk2BjLLIwBKGIe99z9zM6m7kpj5IHgOZeuWtIYjGDNGMKGsq XbwMiy/XYYGr+vGGi4cbX5mvczHLoJL42UvWtw09z3qsSlsEq/uW9qICxlzgu9EV TcLBiDOM3RiPXaz1s1hyKrASKJCDbU1IY8/FP8gUAA53RiZywqV7sofKmu7cStXi a8QbOrnfQYHe0kKqSfGo1h4rG473IsgiVpM9nvdJdwwZZobWWfw1fWmOJdd8uyzH UqrWpyhihl7OiJVWyUOpLGBP79t0JsQlb8Jzzd44Xi66aswT1hdNQbjGK1kQ5jXh nRLJY8ZFYbwc2xmtTbxZ69IkRWttwhQ0u22vVVb40yLGA8U5Wx70DwoU/71N5wFD Z3xq8CWX+jUsmf2OxR8y5wJDcKoI6D+o+gh2Pwm0vN3nrWdzwouiLGbt7udANqaD Sh4QSzc8HmzlpaY46DDG =mh9w -----END PGP SIGNATURE----- --yVXkZ6wLsKv9EYuM--