Re: SSL passphrase prompt external command - Mailing list pgsql-hackers

From Daniel Gustafsson
Subject Re: SSL passphrase prompt external command
Date
Msg-id FDE39406-5956-43EC-BA13-26285CEAA70C@yesql.se
Whole thread Raw
In response to SSL passphrase prompt external command  (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>)
Responses Re: SSL passphrase prompt external command  (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>)
List pgsql-hackers
> On 23 Feb 2018, at 11:14, Peter Eisentraut <peter.eisentraut@2ndquadrant.com> wrote:
>
> Here is a patch that adds a way to specify an external command for
> obtaining SSL passphrases.  There is a new GUC setting
> ssl_passphrase_command.

+1 on going down this route.

> Right now, we rely on the OpenSSL built-in prompting mechanism, which
> doesn't work in some situations, including under systemd.  This patch
> allows a configuration to make that work, e.g., with systemd-ask-password.

+        replaced by a prompt string.  (Write <literal>%%</literal> for a
+        literal <literal>%</literal>.)  Note that the prompt string will

I might be thick, but I don’t see where the %% handled?  Also, AFAICT a string
ending with %\0 will print a literal % without requiring %% (which may be a
perfectly fine case to allow, depending on how strict we want to be with the
format).

cheers ./daniel

pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: remove pg_class.relhaspkey
Next
From: Chapman Flack
Date:
Subject: Re: Precision loss casting float to numeric