| От | Tom Lane |
|---|---|
| Тема | Re: Best way to "mask" password in DBLINK |
| Дата | |
| Msg-id | 9892.1250084933@sss.pgh.pa.us обсуждение |
| Ответ на | Re: Best way to "mask" password in DBLINK (Magnus Hagander <magnus@hagander.net>) |
| Список | pgsql-general |
Magnus Hagander <magnus@hagander.net> writes:
>>> If I'm not mistaken, it's possible to put your password in the .pgpass
>>> file in the postgres-users home folder, on the server where the postgres
>>> cluster is running.
> You need to put it in the .pgpass file of the postgres user - the one
> that runs the server. .pgpass is dealt with by libpq, and DBLink and
> DBI-Link both use libpq to connect to the remote server.
Didn't we recently add a security fix to prevent non-superusers from
relying on the server's .pgpass file?
I think 8.4 provides a reasonable solution to this via the SQL/MED
additions. In previous releases it's hard to find a nice place to
keep the password for a dblink connection.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера