Re: Disallow access from psql, or allow access only from specific client app

Поиск
Список
Период
Сортировка
От John R Pierce
Тема Re: Disallow access from psql, or allow access only from specific client app
Дата
Msg-id 4E2CC2E2.7000606@hogranch.com
обсуждение исходный текст
Ответ на Disallow access from psql, or allow access only from specific client app  (Mario Puntin <mariomop@gmail.com>)
Ответы Re: Disallow access from psql, or allow access only from specific client app  (Mario Puntin <mariomop@gmail.com>)
Список pgsql-general
On 07/24/11 2:36 PM, Mario Puntin wrote:
>
> Hi everybody:
> I searched the web trying to find an answer to this, but found none. I
> have a postgresql server and a database, and I granted access to some
> users.
> However I want them to access the data only through some specific
> client application. I do not want them to have access through psql or
> some other kind of client app. But, as I created them a user/pass they
> could use them.
> What would you do?
> Thanks in advance.
>

I would put ALL the database access in a webservice, running on a
secured server, which their client program accesses and ONLY that
webservice has the access credentials to connect to the database.

so, the user runs a client program, it has credentials to connect to
this webservice (tomcat, or whatever), but no direct access to the
database at all.   the user's workstations are flat denied any access to
the database even if they did have the credentials.

the webservice has all the business logic that queries the database.
so if the client app needs to edit a customer record, for example, it
makes a remote procedure call to the webservice
"EditClientRecord(....)", and that in turn connects to SQL and does the
dirty work.




--
john r pierce                            N 37, W 122
santa cruz ca                         mid-left coast


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

Предыдущее
От: Craig Ringer
Дата:
Сообщение: Re: Disallow access from psql, or allow access only from specific client app
Следующее
От: Yan Chunlu
Дата:
Сообщение: Re: streaming replication does not work across datacenter with 20ms latency?