Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f01kU-0002oa-3z for pgsql-general@arkaria.postgresql.org; Sun, 25 Mar 2018 09:15:34 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1f01kR-0005rS-TR for pgsql-general@arkaria.postgresql.org; Sun, 25 Mar 2018 09:15:31 +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.89) (envelope-from ) id 1f01kR-0005rI-5V for pgsql-general@lists.postgresql.org; Sun, 25 Mar 2018 09:15:31 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f01kJ-0003d6-Gt for pgsql-general@postgresql.org; Sun, 25 Mar 2018 09:15:30 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id A007621AF8; Sun, 25 Mar 2018 05:15:20 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute4.internal (MEProxy); Sun, 25 Mar 2018 05:15:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=SQX24GoZr/T6EAztiKkShUE7thpnq/2eJM13xnIpuAc=; b=j5cIyZBN QEYFwIhFX+dE+pctTO6NrxaC7HPOtYjJkwaMeyDyuZun5kFmueV3o5cvMyOYedwZ 7h3mpmoZnCk2cZ2gEJWnVgOMErMRJsnOy5/TA+RklGnK+zJcvMx2+NVf3mMCD9YD W1A4v+SbtnQ8UiDwq1D1RFC3n0mzadMkdooK8d+nvokUlPrxqzPAIEx+VCdaoqMi xX17TLFNM6A7OZ1mFK1WjxvtBFq/+dWcBUwoakor6gsQShgRAhEihQQxgJrZgmib 27OFgUo9zCRYya+PGl/d7D30eC+zEcArmJTYdjej29s3oDNoOCk6RanwOgor4tL+ pqJEjnq0SIdS9g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; bh=SQX24GoZr/T6EAztiKkShUE7thpnq /2eJM13xnIpuAc=; b=Qq+tg6uKe6iWiVCVn8HF1eHTfvAnfp+c0CUTnttqAIGgR OcwH3Rlvn5WJBiCzG88TpV08im8UqLYKrx6aj6cTLUrDM1bU4TfqLzz6UTZe2ARh MaQGv0TDxMz1vuUdU0/Zi50ksXBZLY4hRryLcIdF03VQStuMrPDLdpc82znDSfm4 erUVlDU2vDMSTDxO1Gi038b2Zbz7PZEs8IAZptFhue6qdQhxAc0Ele5QPXaZA78h LSniesVtdCbVHYQ6whmviCkL7yoAJdUDNUiUNWFUjiUxh3W2YuUVtiwXgm9nWcXH exWesKtAwFYdnQ2LqRiHNP/bwfST9H++yNRP5c8CA== X-ME-Sender: Received: from paquier.xyz (c137162.net61215.cablenet.ne.jp [61.215.137.162]) by mail.messagingengine.com (Postfix) with ESMTPA id DBD6F7E16A; Sun, 25 Mar 2018 05:15:18 -0400 (EDT) Date: Sun, 25 Mar 2018 18:15:10 +0900 From: Michael Paquier To: David Rowley Cc: legrand legrand , pgsql-general Subject: Re: pg_stat_statements: password in command is not obfuscated Message-ID: <20180325091510.GA3707@paquier.xyz> References: <1521840648120-0.post@n3.nabble.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="VbJkn9YxBvnuCH5J" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --VbJkn9YxBvnuCH5J Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Mar 24, 2018 at 12:17:30PM +1300, David Rowley wrote: > If it is, then it's not a bug in pg_stat_statements. log_statement =3D > 'ddl' would have kept a record of the same thing. >=20 > Perhaps the best fix would be a documentation improvement to mention > the fact and that it's best not to use plain text passwords in > CREATE/ALTER ROLE. Passwords can be md5 encrypted. Yeah, this is bad practice. That's one of the reasons why storage of plain text passwords has been removed in Postgres 10 still they can be passed via command, and also why PQencryptPasswordConn and PQencryptPassword are useful. Using psql's \password is a good habit to have. -- Michael --VbJkn9YxBvnuCH5J Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAlq3aJ4ACgkQnvQgOdby QH2mvw/+KEM/gXXaz+f0BcEyJMVfQttKkLfiKwL+wbbuRuqjhRnuGk/nK0blNfOm I+ufisPU3nQnpK7OwWB4V0YElenoy2nJKLZCaZf0WD5UnygqJHa3DCgpzUGX/Zo1 c0EFPHX9lM0PHiWrIsWcMPPsUhmt8Uuj2CsaTEj7CCYrRFsg/g/3bZYVMk5nDYPh TJpZYjgliV/GUzDnO/2duwXLzigzJW/50kuEnLody81Fpo54opMJaRQmet8nRin9 bPyeMoxSvX0/UGudEUINv6gCaNX3bbi/NOHeMDQo+5Xg4k6e1VMBoz01tGP9sSZK nw2JiCeNsgFG1mqImVhhBX9vrIMYiYZ08/otKeaZ7eQ8a2IgY3hEYcQCTLzRS6um 1nXgWARvtqVGYmTbeQwE0ffX+v1D1wDrsTWnjZ+SaYX2svep2xPnhY69EcA7DTQm OD8k+kn/jQ/6KNzWgk3p+WlPJe435VsciRRLaJoRpL4YiCwJfV+/3qQBPsNWRcu8 bbirgSxUpK1LBt2cN9J+BTvEC2PzmR+hWqcReVyENug5XnR9qcRfOpxPRNlX1XiS 2hqGRpex9Cir1/nzt0BCR4GSR37Vk94OlTDAy4838I4b/q2LAIAJKKfsP4Atee6f c1SrtYsyQifOLkF7IGuuyzyffrvUzAUQfOtv/riCJnZrwFUShNw= =iNF9 -----END PGP SIGNATURE----- --VbJkn9YxBvnuCH5J--