Re: postgres_fdw super user checks

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: postgres_fdw super user checks
Дата
Msg-id CA+TgmoZYY7SrbOJWZpG0t-Zc=-XM0ngf02-xWhGRNbeMpw5+UA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: postgres_fdw super user checks  (Michael Paquier <michael.paquier@gmail.com>)
Ответы Re: postgres_fdw super user checks  (Michael Paquier <michael.paquier@gmail.com>)
Список pgsql-hackers
On Mon, Oct 17, 2016 at 2:18 AM, Michael Paquier
<michael.paquier@gmail.com> wrote:
> On Mon, Oct 17, 2016 at 3:33 AM, Jeff Janes <jeff.janes@gmail.com> wrote:
>> postgres_fdw has some checks to enforce that non-superusers must connect to
>> the foreign server with a password-based method.  The reason for this is to
>> prevent the authentication to the foreign server from happening on the basis
>> of the OS user who is running the non-foreign server.
>>
>> But I think these super user checks should be run against the userid of the
>> USER MAPPING being used for the connection, not the userid of currently
>> logged on user.
>
> So, if the user mapping user is a superuser locally, this would allow
> any lambda user of the local server to attempt a connection to the
> remote server. It looks dangerous rather dangerous to me to authorize
> that, even if the current behavior is a bit inconsistent I agree.

I don't know what "any lambda user" means.  Did you mean to write "any
random user"?

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: Gather Merge
Следующее
От: Aleksander Alekseev
Дата:
Сообщение: [PATCH] Better logging of COPY queries if log_statement='all'