From: Bruce Momjian <bruce@momjian.us>
To: Michael Paquier <michael@paquier.xyz>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Pavel Stehule <pavel.stehule@gmail.com>
Cc: pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Add pg_alterckey utility to change the cluster key
Date: Sun, 27 Dec 2020 12:44:50 -0500
Message-ID: <20201227174450.GC17037@momjian.us> (raw)
In-Reply-To: <X+hKbzy3SX9lslS4@paquier.xyz>
References: <CAFj8pRDAsT+Z+QOS6zEA-1C4K-8NGBk-0gYnJvaP5xD+HW9JKA@mail.gmail.com>
<20201226062043.GH19054@momjian.us>
<CAFj8pRBRNo4co5bqCx4BLx1ZZ45Z_T-opPxA+u7SLp7gAtBpNA@mail.gmail.com>
<CAFj8pRCHbfWC3ahXQNBL7bTGTbbXh7_=bV5KG+SUDBVWRU1+Ng@mail.gmail.com>
<X+b/dR6P4tPpm6kt@paquier.xyz>
<20201226152131.GL19054@momjian.us>
<1284775.1609001141@sss.pgh.pa.us>
<20201226171818.GO19054@momjian.us>
<20201226190002.GP19054@momjian.us>
<X+hKbzy3SX9lslS4@paquier.xyz>
On Sun, Dec 27, 2020 at 05:48:47PM +0900, Michael Paquier wrote:
> 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.
> >> 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.
OK, I will do so in the next few hours. My followup will be to:
* register it for the commit-fest so it gets cfbot and other visibility
* modify pgcrypto to use the new AES API (the SHA512 call no longer exists)
* develop TAP tests, though as I mentioned, they will be odd
--
Bruce Momjian <bruce@momjian.us> https://momjian.us
EnterpriseDB https://enterprisedb.com
The usefulness of a cup is in its emptiness, Bruce Lee
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: bruce@momjian.us, michael@paquier.xyz, tgl@sss.pgh.pa.us, pavel.stehule@gmail.com
Subject: Re: pgsql: Add pg_alterckey utility to change the cluster key
In-Reply-To: <20201227174450.GC17037@momjian.us>
References: <CAFj8pRDAsT+Z+QOS6zEA-1C4K-8NGBk-0gYnJvaP5xD+HW9JKA@mail.gmail.com> <20201226062043.GH19054@momjian.us> <CAFj8pRBRNo4co5bqCx4BLx1ZZ45Z_T-opPxA+u7SLp7gAtBpNA@mail.gmail.com> <CAFj8pRCHbfWC3ahXQNBL7bTGTbbXh7_=bV5KG+SUDBVWRU1+Ng@mail.gmail.com> <X+b/dR6P4tPpm6kt@paquier.xyz> <20201226152131.GL19054@momjian.us> <1284775.1609001141@sss.pgh.pa.us> <20201226171818.GO19054@momjian.us> <20201226190002.GP19054@momjian.us> <X+hKbzy3SX9lslS4@paquier.xyz> <20201227174450.GC17037@momjian.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox