[GENERAL] Not clear how to switch role without permitting switch back

Поиск
Список
Период
Сортировка
От Guyren Howe
Тема [GENERAL] Not clear how to switch role without permitting switch back
Дата
Msg-id 1398A0CB-EC4F-4C51-A731-0C6545A9AE00@gmail.com
обсуждение исходный текст
Ответы Re: [GENERAL] Not clear how to switch role without permitting switchback  (John R Pierce <pierce@hogranch.com>)
Re: [GENERAL] Not clear how to switch role without permitting switch back  ("Alexander M. Sauer-Budge" <ambudge@alum.mit.edu>)
Re: [GENERAL] Not clear how to switch role without permitting switch back  ("Alexander M. Sauer-Budge" <alex@sauer-budge.net>)
Список pgsql-general
For my Love Your Database Project:


I’m trying to see how a typical web developer might use Postgres’ roles and row-level security to implement their authorization.

What I’m struggling with is that connection pooling seems to make straightforward use of the roles to enforce access impossible.

If I’m using a connection pool, then I’m not re-connecting to Postgres with the user for the current transaction. But then my only option is to use SET ROLE. But that is not much security at all, because the current user can just do SET ROLE back to the (presumably privileged) default, or to any other user’s role.

What am I missing here?

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

Предыдущее
От: "David G. Johnston"
Дата:
Сообщение: Re: [GENERAL] Slow index scan - Pgsql 9.2
Следующее
От: John R Pierce
Дата:
Сообщение: Re: [GENERAL] Not clear how to switch role without permitting switchback