From: rob stone <floriparob@gmail.com>
To: Matthias Apitz <guru@unixarea.de>
To: pgsql-general@lists.postgresql.org
Subject: Re: PGPASSWORD in crypted form, for example BlowFish or SHA-256
Date: Fri, 20 Sep 2019 11:45:11 +1000
Message-ID: <61030190ab24e39df8ebfd895b60ef4f90174fc2.camel@gmail.com> (raw)
In-Reply-To: <20190919132321.GA403679@sh4-5.1blu.de>
References: <20190919103039.GA2501@c720-r342378>
<afd6ab3f589bc44b79959623e58079e7b2223f51.camel@gmail.com>
<20190919132321.GA403679@sh4-5.1blu.de>
On Thu, 2019-09-19 at 15:23 +0200, Matthias Apitz wrote:
> El día Thursday, September 19, 2019 a las 10:31:01PM +1000, rob stone
> escribió:
>
> >
> > https://www.postgresql.org/docs/11/auth-password.html
> >
> > Chapters 20.5 and 20.6 may give you more information.
>
> The form of the password hash store in the PG server or interchange
> over
> the network is not my question. The question is more: When the Linux
> server starts and with this the (ESQL/C written) application servers
> are
> starting, they need the password to connect and this is not provided
> at
> this moment from some keyboard or humanbeing. It must be stored on
> the
> server and available in clear for the server, but not for other eyes
> on
> the server, i.e. the place of the sorage must be ciphered.
>
> matthias
>
Sorry. More caffeine needed.
If you use pg_service.conf you could write a little program to encrypt
the password and store it in this file in its encrypted form.
Then you application obtains the connection credentials from
pg_service.conf, de-encrypts the password and is then able to form the
connection string to access the required database.
HTH,
Robert
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-general@postgresql.org
Cc: floriparob@gmail.com, guru@unixarea.de
Subject: Re: PGPASSWORD in crypted form, for example BlowFish or SHA-256
In-Reply-To: <61030190ab24e39df8ebfd895b60ef4f90174fc2.camel@gmail.com>
References: <20190919103039.GA2501@c720-r342378> <afd6ab3f589bc44b79959623e58079e7b2223f51.camel@gmail.com> <20190919132321.GA403679@sh4-5.1blu.de> <61030190ab24e39df8ebfd895b60ef4f90174fc2.camel@gmail.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