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 1ktEnX-0003Ge-H5 for pgsql-committers@arkaria.postgresql.org; Sat, 26 Dec 2020 19:00:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ktEnW-0005MM-9R for pgsql-committers@arkaria.postgresql.org; Sat, 26 Dec 2020 19:00:14 +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 1ktEnW-0005MD-4C for pgsql-committers@lists.postgresql.org; Sat, 26 Dec 2020 19:00:14 +0000 Received: from momjian.us ([72.94.173.45]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ktEnO-0006pn-8L for pgsql-committers@lists.postgresql.org; Sat, 26 Dec 2020 19:00:12 +0000 Received: from bruce by momjian.us with local (Exim 4.92) (envelope-from ) id 1ktEnK-0005mY-8G; Sat, 26 Dec 2020 14:00:02 -0500 Date: Sat, 26 Dec 2020 14:00:02 -0500 From: Bruce Momjian To: Tom Lane Cc: Michael Paquier , Pavel Stehule , pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Add pg_alterckey utility to change the cluster key Message-ID: <20201226190002.GP19054@momjian.us> References: <20201226062043.GH19054@momjian.us> <20201226152131.GL19054@momjian.us> <1284775.1609001141@sss.pgh.pa.us> <20201226171818.GO19054@momjian.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201226171818.GO19054@momjian.us> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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. > 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. I have an idea. I can add debug code that outputs key 0 as hex to the file descriptor open to the terminal, and compare the initdb value to the server-start value. The existing code doesn't do anything useful, so having debug output until it does seems acceptable, if it is enabled. -- Bruce Momjian https://momjian.us EnterpriseDB https://enterprisedb.com The usefulness of a cup is in its emptiness, Bruce Lee