Re: Allow postgres_fdw passwordless non-superuser conns with priorsuperuser permission - Mailing list pgsql-hackers

From Laurenz Albe
Subject Re: Allow postgres_fdw passwordless non-superuser conns with priorsuperuser permission
Date
Msg-id 1533540290.2780.8.camel@cybertec.at
Whole thread Raw
In response to Allow postgres_fdw passwordless non-superuser conns with priorsuperuser permission  (Craig Ringer <craig@2ndquadrant.com>)
List pgsql-hackers
Craig Ringer wrote:
> Currently postgres_fdw cannot be used with 'cert' authentication, i.e. client-certificate validation
> and cert cn => postgres username mapping. You also can't use things like Kerberos, SSPI, etc with
> a superuser-created FDW and username map.
> 
> To permit this, I'd like to allow postgres_fdw user mappings to be created with a new
> 'permit_passwordless' option. Only the superuser is allowed to create such a mapping.
> If it's set to true, we bypass the check_conn_params(...) connection-string password check
> and the connect_pg_server(...) check for the conn using a password when a non-superuser
> establishes a connection.
> 
> This doesn't re-open CVE-2007-6601 because the superuser has to explicitly grant the access.

I have wished for a feature like that before, so +1 on the idea.

ALTER USER MAPPING has to be restricted to superusers as well.

Yours,
Laurenz Albe


pgsql-hackers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: Re: Handling better supported channel binding types for SSLimplementations
Next
From: Heikki Linnakangas
Date:
Subject: Re: [HACKERS] Optional message to user when terminating/cancellingbackend