From: Tom Lane <tgl@sss.pgh.pa.us>
To: Matthias Apitz <guru@unixarea.de>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: PGPASSWORD in crypted form, for example BlowFish or SHA-256
Date: Thu, 19 Sep 2019 10:09:57 -0400
Message-ID: <22653.1568902197@sss.pgh.pa.us> (raw)
In-Reply-To: <20190919103039.GA2501@c720-r342378>
References: <20190919103039.GA2501@c720-r342378>
Matthias Apitz <guru@unixarea.de> writes:
> Is there somehow an API in PG to use ciphered passwords and provide as a
> shared library the blob to decrypt it?
No. Consider a non-password auth mechanism, for instance SSL
certificates. You might find that an SSL certificate file
stored where libpq will find it is already about as secure as
what you're doing now. If you want to jump through extra
hoops for more security, I think you can use ssh-agent to
hold the keys.
regards, tom lane
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: tgl@sss.pgh.pa.us, guru@unixarea.de
Subject: Re: PGPASSWORD in crypted form, for example BlowFish or SHA-256
In-Reply-To: <22653.1568902197@sss.pgh.pa.us>
References: <20190919103039.GA2501@c720-r342378> <22653.1568902197@sss.pgh.pa.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