contrib: auth_delay module

From: 成之焕 <zhcheng(at)ceresdata(dot)com>
To: "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: contrib: auth_delay module
Date: 2022-11-16 03:37:25
Message-ID: AHwAxACqIwIVOEhs5YejpqoG.1.1668569845751.Hmail.zhcheng@ceresdata.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


The attached patch is a contrib module to set login restrictions on users with
too many authentication failure. The administrator could manage several GUC
parameters to control the login restrictions which are listed below.
- set the wait time when password authentication fails.
- allow the wait time grows when users of the same IP consecutively logon failed.
- set the maximum authentication failure number from the same user. The system
will prevent a user who gets too many authentication failures from entering the
database.

I hope this will be useful to future development.
Thanks.
-----

zhcheng(at)ceresdata(dot)com

Attachment Content-Type Size
pgsql-v12.8-auth-delay.1.patch application/octet-stream 24.3 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Thomas Munro 2022-11-16 03:57:08 Re: Suppressing useless wakeups in walreceiver
Previous Message Ted Yu 2022-11-16 03:31:55 Re: closing file in adjust_data_dir