Proposal: Support custom authentication methods using hooks
От | samay sharma |
---|---|
Тема | Proposal: Support custom authentication methods using hooks |
Дата | |
Msg-id | CAJxrbyxTRn5P8J-p+wHLwFahK5y56PhK28VOb55jqMO05Y-DJw@mail.gmail.com обсуждение исходный текст |
Ответы |
Re: Proposal: Support custom authentication methods using hooks
Re: Proposal: Support custom authentication methods using hooks Re: Proposal: Support custom authentication methods using hooks |
Список | pgsql-hackers |
host all all ::1/128 custom provider=test
As an example and a test case, I've added an extension named test_auth_provider in src/test/modules which fetches credentials from a pre-defined array. I've also added tap tests for the extension to test this functionality.
One constraint in the current implementation is that we allow only one authentication provider to be loaded at a time. In the future, we can add more functionality to maintain an array of hooks and call the appropriate one based on the provider name in the pg_hba line.
A couple of my tests are flaky and sometimes fail in CI. I think the reason for that is I don't wait for pg_hba reload to be processed before checking logs for error messages. I didn't find an immediate way to address that and I'm looking into it but wanted to get an initial version out for feedback on the approach taken and interfaces. Once those get finalized, I can submit a patch to add docs as well.
Looking forward to your feedback.
Regards,
Samay
Вложения
В списке pgsql-hackers по дате отправления: