Re: row_security GUC, BYPASSRLS

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: row_security GUC, BYPASSRLS
Дата
Msg-id CA+TgmobHy_o-5SeaeUsNJ3bD1=iB==a8wgupG-RNULse9Q1KXQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: row_security GUC, BYPASSRLS  (Noah Misch <noah@leadboat.com>)
Ответы Re: row_security GUC, BYPASSRLS  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: row_security GUC, BYPASSRLS  (Joe Conway <mail@joeconway.com>)
Список pgsql-hackers
On Tue, Sep 15, 2015 at 1:00 AM, Noah Misch <noah@leadboat.com> wrote:
>> ...but I'm not sure I like this, either.  Without row_security=force,
>> it's hard for a table owner to test their policy, unless they have the
>> ability to assume some other user ID, which some won't.  If someone
>> puts in place a policy which they believe secures their data properly
>> but which actually does not, and they are unable to test it properly
>> for lack of this setting, that too will be a security hole.  We will
>> be able to attribute it to user error rather than product defect, but
>> that will be cold comfort to the person whose sensitive data has been
>> leaked.
>
> The testing capability is nice, all else being equal.  Your scenario entails a
> data custodian wishing to test with row_security=force but willing to entrust
> sensitive data to an untested policy.

That's not really accurate.  You can test the policy first and only
afterwords GRANT access to others.

> It also requires a DBA unwilling to
> furnish test accounts to custodians of sensitive data.  With or without
> row_security=force, such a team is on the outer perimeter of the audience able
> to benefit from RLS.  Nonetheless, I'd welcome a replacement test aid.

I can't argue with that, I suppose, but I think row_security=force is
a pretty useful convenience.  If we must remove it, so be it, but I'd
be a little sad.

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



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [COMMITTERS] pgsql: Fix an O(N^2) problem in foreign key references.
Следующее
От: Jan Wieck
Дата:
Сообщение: Re: [COMMITTERS] pgsql: Fix an O(N^2) problem in foreign key references.