pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Shinoda, Noriyoshi (PN Japan FSIP) <noriyoshi.shinoda@hpe.com>
To: Bruce Momjian <bruce@momjian.us>
To: Erik Rijkers <er@xs4all.nl>
Cc: pgsql-hackers@lists.postgresql.org <pgsql-hackers@lists.postgresql.org>
Subject: RE: pgsql: Add key management system
Date: Sat, 26 Dec 2020 14:38:40 +0000
Message-ID: <TU4PR8401MB1152E92B4D44C81E496D6032EEDB0@TU4PR8401MB1152.NAMPRD84.PROD.OUTLOOK.COM> (raw)
In-Reply-To: <20201225190106.GB19054@momjian.us>
References: <E1ksosn-00073I-0Q@gemulon.postgresql.org>
	<a27e7bb60fc4c4a1fe960f7b055ba822@xs4all.nl>
	<20201225190106.GB19054@momjian.us>

Hi,

Thank you for developing a great feature. I tested it immediately.
The attached patch changes the value of the --file-encryption-keylen option of the initdb command to mandatory. No value is currently required.
I also changed the help message and the manual.

Regards,
Noriyoshi Shinoda

-----Original Message-----
From: Bruce Momjian [mailto:bruce@momjian.us] 
Sent: Saturday, December 26, 2020 4:01 AM
To: Erik Rijkers <er@xs4all.nl>
Cc: pgsql-hackers@lists.postgresql.org
Subject: Re: pgsql: Add key management system

On Fri, Dec 25, 2020 at 07:30:01PM +0100, Erik Rijkers wrote:
> On 2020-12-25 16:19, Bruce Momjian wrote:
> 
> > Add key management system
> > doc/src/sgml/database-encryption.sgml         |  97 +++++
> 
> Attached are a few typos.
> 
> I also noticed that this option does not occur in the initdb --help:
> 
>   -u  --copy-encryption-keys
> 
> Was that deliberate?

No.  :-(  Attached patch applied.  Thanks.

-- 
  Bruce Momjian  <bruce@momjian.us>        https://momjian.us 
  EnterpriseDB                             https://enterprisedb.com 

  The usefulness of a cup is in its emptiness, Bruce Lee

Attachments:

keylength.diff (application/octet-stream, 1.9K) download diff --git a/doc/src/sgml/ref/initdb.sgml b/doc/src/sgml/ref/initdb.sgml index 44a2d69..d994f40 100644 --- a/doc/src/sgml/ref/initdb.sgml +++ b/doc/src/sgml/ref/initdb.sgml @@ -236,8 +236,8 @@ PostgreSQL documentation <varlistentry id="app-initdb-file-encryption-keylen" xreflabel="file encryption"> - <term><option>-K</option></term> - <term><option>--file-encryption-keylen</option></term> + <term><option>-K <replaceable class="parameter">length</replaceable></option></term> + <term><option>--file-encryption-keylen=<replaceable class="parameter">length</replaceable></option></term> <listitem> <para> Specifies the number of bits for the file encryption keys. The diff --git a/src/bin/initdb/initdb.c b/src/bin/initdb/initdb.c index 4d07ce6..33a11e0 100644 --- a/src/bin/initdb/initdb.c +++ b/src/bin/initdb/initdb.c @@ -2318,7 +2318,7 @@ usage(const char *progname) " to obtain the cluster key\n")); printf(_(" -d, --debug generate lots of debugging output\n")); printf(_(" -k, --data-checksums use data page checksums\n")); - printf(_(" -K, --file-encryption-keylen\n" + printf(_(" -K, --file-encryption-keylen=LENGTH\n" " bit length of the file encryption key\n")); printf(_(" -L DIRECTORY where to find the input files\n")); printf(_(" -n, --no-clean do not clean up after errors\n")); @@ -3008,7 +3008,7 @@ main(int argc, char *argv[]) {"wal-segsize", required_argument, NULL, 12}, {"data-checksums", no_argument, NULL, 'k'}, {"authprompt", no_argument, NULL, 'R'}, - {"file-encryption-keylen", no_argument, NULL, 'K'}, + {"file-encryption-keylen", required_argument, NULL, 'K'}, {"allow-group-access", no_argument, NULL, 'g'}, {"cluster-key-command", required_argument, NULL, 'c'}, {"copy-encryption-keys", required_argument, NULL, 'u'},

view thread (13+ messages)  latest in thread

Message-ID: <TU4PR8401MB1152E92B4D44C81E496D6032EEDB0@TU4PR8401MB1152.NAMPRD84.PROD.OUTLOOK.COM>
Permalink:  ../TU4PR8401MB1152E92B4D44C81E496D6032EEDB0@TU4PR8401MB1152.NAMPRD84.PROD.OUTLOOK.COM/
Also on:    postgresql.org/message-id/TU4PR8401MB1152E92B4D44C81E496D6032EEDB0@TU4PR8401MB1152.NAMPRD84.PROD.OUTLOOK.COM

 ·  · 

reply

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: noriyoshi.shinoda@hpe.com, bruce@momjian.us, er@xs4all.nl, pgsql-hackers@lists.postgresql.org
  Subject: Re: pgsql: Add key management system
  In-Reply-To: <TU4PR8401MB1152E92B4D44C81E496D6032EEDB0@TU4PR8401MB1152.NAMPRD84.PROD.OUTLOOK.COM>
  References: <E1ksosn-00073I-0Q@gemulon.postgresql.org> <a27e7bb60fc4c4a1fe960f7b055ba822@xs4all.nl> <20201225190106.GB19054@momjian.us> <TU4PR8401MB1152E92B4D44C81E496D6032EEDB0@TU4PR8401MB1152.NAMPRD84.PROD.OUTLOOK.COM>

* 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