Re: How to confirm the pg_hba.conf service is correctly working

Поиск
Список
Период
Сортировка
От Vijaykumar Jain
Тема Re: How to confirm the pg_hba.conf service is correctly working
Дата
Msg-id CAM+6J968tmDQvq8eyL8bfS63Lo_sJeTcrgBWhuJFnM0uUq8AEA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: How to confirm the pg_hba.conf service is correctly working  (shing dong <s7eqs7eq@gmail.com>)
Список pgsql-general

On Thu, 23 Dec 2021 at 15:45, shing dong <s7eqs7eq@gmail.com> wrote:
I  have tested this feature  ,  only had

host   VJ   VJ_USER   10.10.10.1/32 md5

in the pg_hba.conf file  


I may be a bit off , but can you try a couple of things, other than a fresh install, incase you have time to debug more.
 
is it possible to snapshot the vm, and and set it up in a controlled environment where you can play around with incoming connections at the network layer 
beyond the vm.
With that, is it possible for you to use gdb and debug a connection to the postmaster.
you can setup using below,

and then you can put a breakpoint at this function and check the input lines it gets for parsing.

but maybe this helps identify why other ips are being allowed.
to be more paranoid, you can all reject from the ip you are trying to make a connection, and trace that specific rule.

this might be an overkill and maybe a waste of effort given you already can query the hba view, but incase you want to try out.

 

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

Предыдущее
От: Imre Samu
Дата:
Сообщение: Re: How to confirm the pg_hba.conf service is correctly working
Следующее
От: Дмитрий Иванов
Дата:
Сообщение: Re: storing zipped SQLite inside PG ?