Re: Allow postgres_fdw passwordless non-superuser conns with priorsuperuser permission

Поиск
Список
Период
Сортировка
От Laurenz Albe
Тема Re: Allow postgres_fdw passwordless non-superuser conns with priorsuperuser permission
Дата
Msg-id 1533540290.2780.8.camel@cybertec.at
обсуждение исходный текст
Ответ на Allow postgres_fdw passwordless non-superuser conns with priorsuperuser permission  (Craig Ringer <craig@2ndquadrant.com>)
Список 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 по дате отправления:

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: Re: Handling better supported channel binding types for SSLimplementations
Следующее
От: Heikki Linnakangas
Дата:
Сообщение: Re: [HACKERS] Optional message to user when terminating/cancellingbackend