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 1ktRji-0007D5-7X for pgsql-committers@arkaria.postgresql.org; Sun, 27 Dec 2020 08:49:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ktRjh-0007VL-0O for pgsql-committers@arkaria.postgresql.org; Sun, 27 Dec 2020 08:49:09 +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 1ktRjf-0007VE-El for pgsql-committers@lists.postgresql.org; Sun, 27 Dec 2020 08:49:08 +0000 Received: from [66.111.4.27] (helo=out3-smtp.messagingengine.com) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ktRjb-0002Yy-ML for pgsql-committers@lists.postgresql.org; Sun, 27 Dec 2020 08:49:07 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 44EA15C007D; Sun, 27 Dec 2020 03:48:52 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Sun, 27 Dec 2020 03:48:52 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm3; bh=6iBH6QFBqyOKvPInx2DHV8mAql2 NCtMlaIt+pGiE7L4=; b=Hi9Cz+Ic0/dQDBueNZ+nyihvcMED+/0Di/MIvl7UDMV +HERTXJhnh1vEkUmsAWLSN1wBaYXElK7K241OrRO/s14Ikm1Yt0pWgyDxuMOZvro ZAqMEEHYNk7+3DZJeFRoSJnjaPse257aODihT+gWQ4C05M1gVVenu2Xoj0ZEwOoH I5UVDbuNvcehtdO6v8i8AVjR306vOS1B2Pn+jlxWzuD639sOw7fawGHf+qVdDwwv S3qRvceZWF09o3zMh4gKL2jKu+TG8/SctzS1l1Ybmnv8bve3BeY+4Hrq44nTFC0+ hVKQabuoIegAz1f5WpnhE4Ad4NSE5KzFwbVko6vUtlw== 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-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=6iBH6Q FBqyOKvPInx2DHV8mAql2NCtMlaIt+pGiE7L4=; b=BFLRYHYbaueh8UNDeIh+Wy wt5ASLmV7fwapRYRCvjIje9XuKry0nhqa+Hfss/PYsbqWEVmK7ckc8iBHCMSD0rg tlNx4niQeyJ5jOgesPbk3fN+wvlB/EX41W2IVm4wDFQsrME8nVJwl+azilJtiEHP JUNBDeNZKKlGenBAVvTyxHT+ejJgwbmDHUBbYBIQS8ommi6h1IGN9oZXKOq3+GLU 1lkyGkXbN5eedwh4aM8ylScR/T4NUoOnqVpfLF89dPevsELvRmkEJtw4IUpq9oDq fAqxWE3HJNiY3xnPJvGjZCgWVlDr+GerNYlFvYDRmRFrj1etvsYG8utH0md+cRSA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrvdduiedguddviecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enfghrlhcuvffnffculdejtddmnecujfgurhepfffhvffukfhfgggtuggjsehgtderredt tddvnecuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesph grqhhuihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepvdegudeuhfdtueeltedtveej heehieevueeigeelteegleejleeiueeiheegvefhnecukfhppeduuddurddutddvrdduke dtrddukeehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhho mhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiihii X-ME-Proxy: Received: from paquier.xyz (ee0822lan1.rev.em-net.ne.jp [111.102.180.185]) by mail.messagingengine.com (Postfix) with ESMTPA id 72EC81080057; Sun, 27 Dec 2020 03:48:50 -0500 (EST) Date: Sun, 27 Dec 2020 17:48:47 +0900 From: Michael Paquier To: Bruce Momjian Cc: Tom Lane , Pavel Stehule , pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Add pg_alterckey utility to change the cluster key Message-ID: References: <20201226062043.GH19054@momjian.us> <20201226152131.GL19054@momjian.us> <1284775.1609001141@sss.pgh.pa.us> <20201226171818.GO19054@momjian.us> <20201226190002.GP19054@momjian.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="OzHCIXErPXbiCp/G" Content-Disposition: inline In-Reply-To: <20201226190002.GP19054@momjian.us> X-Host-Lookup-Failed: Reverse DNS lookup failed for 66.111.4.27 (deferred) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --OzHCIXErPXbiCp/G Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Dec 26, 2020 at 02:00:02PM -0500, Bruce Momjian wrote: > On Sat, Dec 26, 2020 at 12:18:18PM -0500, Bruce Momjian wrote: >> I can easily revert and come back, though the buildfarm is green now.=20 >> As far as testing, I can test that the cluster key unlocks the data >> keys, but there is no current interface to the data keys. Ideally we >> would test the full input/output path, but with no access to the output, >> how can we test it? Also, as I stated, there are some shell script APIs >> that can't easily be tested, e.g. AWS, Yubikey. I can continue to test >> those manually. It seems to me that it is better to figure out that while the feature is being developed, not after committing it so as there are fully-functional tests at the same time the feature is committed. If we don't have that in place, how can people know the amount of testing that has been done for this feature? And how can anybody be sure that nothing breaks if this area of the code gets changed? Manual testing does not scale. For example, I have seen cases in the past where implementing tests improved the whole state of a feature design because it was possible to finish with a more flexible set of methods for this feature. Based on the number of concerns raised by various people over the last couple of days (including myself, one point being the refactoring of the ciphers taken from pgcrypto that should have been in its own commit), I agree that it would be better to revert this code for now. -- Michael --OzHCIXErPXbiCp/G Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAl/oSm8ACgkQnvQgOdby QH02pQ/+LVxicpfm0L9y7+ZxwUuLfT7+lITUYoUrUiGmRfNFyNcLunCMJXmI9XTe s+/CLQYfU5DKR4oE0zXNLIImakX4gC+GS8IHEqZapt2qMW05kqPYAgf3AZ7mZRqV LS/9nRqhQpsVE1ZTjKjSEXpPA5X9NIl0kQ5ONDwn1R8HoV1fE0+9hwueHzX+vDSq mZuS65rVfcsJfD/YZEt6URvLSll0+ApWdUDGiZzu3N0rg6o244NutcyN8KpZLr34 GUtBnv788t8JaBm/CxlqMjEdEwA4IuXrONyriXYX2xTCdtBP3qy5MiOHEzwX0OnT V8C2QZadMKJ/e/I3BpmwBufe9G2nz7yxOImQ5h0KwsUFUPfeecenE60ZHR+qiUlV Nnd4IbTyL9dtFulskAUw5AfWneud4WH0lbRxheKoxlvg9RqY1a6kzPks3vgpMh6Y wrs7TQ78Hcq/o7fSyRi/dX1Z3NRNRzLuAd0PlCubWvUOXApdUQ2LPFQnxqDbag0v mVqeQHjJMDNlGJZ2rj+rgig8aiurIsCLRbxUuAgko7pLRQM+Gf7IN5WiSnHIvLgY uHRvlGp2IAn5ISATe/1uyO5/SnQznIDiDcJKZCHPywxHJBTE8+sFD4qk2Yhd5LBM CHiQ7nOnJ/zFcH2CslfpA71v2Br4hu6a9lCk3rjMyanGGaNL3H0= =SGGY -----END PGP SIGNATURE----- --OzHCIXErPXbiCp/G--