On Thu, Sep 19, 2019 at 12:26:27PM -0400, Isaac Morland wrote: > If we're going to open this up, can we add an option to say "this key is > allowed to log in to this account", SSH style? > > I like the idea of using keys rather than .pgpass, but I like the ~/.ssh/ > authorized_keys model and don't like the "set up an entire certificate > infrastructure" approach.
This is actually a good question --- why does ssh do it that way and Postgres does it another, more like a web server/client. Maybe it is because ssh allows the user to create one key pair, and use it for several independent servers, while Postgres assumes the client will only connect to multiple related servers controlled by the same CA. With the Postgres approach, you can change the client certificate with no changes on the server, while with the ssh model, changing the client certificate requires sending the public key to the ssh server to be added to ~/.ssh/authorized_keys. -- Bruce Momjian <br...@momjian.us> http://momjian.us EnterpriseDB http://enterprisedb.com + As you are, so once was I. As I am, so you will be. + + Ancient Roman grave inscription +