Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZOXnC-0005aW-7u for pgsql-hackers@arkaria.postgresql.org; Sun, 09 Aug 2015 21:06:06 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZOXnB-0007mG-4W for pgsql-hackers@arkaria.postgresql.org; Sun, 09 Aug 2015 21:06:05 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZOXnA-0007m2-Af for pgsql-hackers@postgresql.org; Sun, 09 Aug 2015 21:06:04 +0000 Received: from tamriel.snowman.net ([2001:4830:167b::11]) by makus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1ZOXn5-0005NV-HP for pgsql-hackers@postgresql.org; Sun, 09 Aug 2015 21:06:01 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 0EFE55F7A0; Sun, 9 Aug 2015 17:05:58 -0400 (EDT) Date: Sun, 9 Aug 2015 17:05:57 -0400 From: Stephen Frost To: Sehrope Sarkuni Cc: Michael Paquier , Josh Berkus , Heikki Linnakangas , Robert Haas , pgsql-hackers Subject: Re: WIP: SCRAM authentication Message-ID: <20150809210557.GI3685@tamriel.snowman.net> References: <55C4FCC2.3000503@iki.fi> <55C63B1E.2040101@iki.fi> <55C679C7.4060908@agliodbs.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="LQAwcd5tHl0Qlnzi" Content-Disposition: inline In-Reply-To: X-Editor: Vim http://www.vim.org/ X-Info: http://www.snowman.net X-Operating-System: Linux/3.13.0-61-generic (x86_64) X-Uptime: 17:02:09 up 5 days, 5:32, 3 users, load average: 0.08, 0.08, 0.06 User-Agent: Mutt/1.5.21 (2010-09-15) X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org --LQAwcd5tHl0Qlnzi Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Sehrope Sarkuni (sehrope@jackdb.com) wrote: > It'd be nice if the new auth mechanism supports multiple passwords in the > same format as well (not just one per format). >=20 > That way you could have two different passwords for a user that are active > at the same time. This would simplify rolling database credentials as it > wouldn't have to be done all at once. You could add the new credentials, > update your app servers one by one, then disable the old ones. >=20 > A lot of systems that use API keys let you see the last time a particular > set of keys was used. This helps answer the "Is this going to break > something if I disable it?" question. Having a last used at timestamp for > each auth mechanism (per user) would be useful. Excellent points and +1 to all of these ideas from me. > I'm not sure how updates should work when connecting to a read-only slave > though. It would need some way of letting the master know that user X > connected using credentials Y. That wouldn't be all that hard to add to the protocol.. What would be nice also would be to include slave connections in pg_stat_activity, so you could figure out what transaction on what slave is causing your master to bloat... And then if we could send signals =66rom the master to those processes, it'd be even nicer.. Thanks! Stephen --LQAwcd5tHl0Qlnzi Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJVx8C1AAoJEO1sijiDR2RV+1QQAJL4cuxRhQzNtVIeYL5BHUba 6X6+uJNAlkqk26Zp/9dxawnv5bj1uuJRMezq19XnUvm2MDqhk+rQWLnq1QIlyKeo wJjuYmv6YPhiRR+4pFpXaWc/7AUNBMWsLhDYPUgs6EbYa/tvjpadSRjLfbVwZof+ e7TeEyLwnTp1d/EXtXQSoA8HXshNwn7pKSWNM08NGBd54EYxaA8I3CHJlZFwipSj S7S7V4tjGg9fXX0FXuEfFBhXCYJVF2Y4pYHSaxFXjsxJVCNWIaM/g1K8ABYgl07r BU5KTFadmwU0mxgadOGGHhbqQKklNj68ZWkFOhjA4iKg575lB3Ne96YfqzZb0G9a sr5bmO3k3LUTtyWJ+/zfmABURI5veBT1JoFrwntkOSj/+sNWEKx/F30hUTsnloxj Qeov/7d4z8gN0VJdG0q67ZKcOFN2oAiKcFrRxNmLZWZHepXJu9uXgOWxA9Ey3lN8 H9tJRKYUpeOnMEhfCDu0AxmHUpPJYrQkpq4S7W+gK3yvQYmJTOGYFHBTOHlbnT2n Cyr2CTlVCHlf3usQ76xL6ib2RCb648vVT/VE1Vse+vb1EtQITVAXfRGFE2dVl2lW zbJGdMl/64BoL2yBgx073JXyCu1oleS60t9G72XWqycXiewJMiDQNr/+KDiq1aiH LKQyqtl+512xfFjx8zF+ =FcJj -----END PGP SIGNATURE----- --LQAwcd5tHl0Qlnzi--