Redrock Postgres 搜索 英文
版本: 9.3 / 9.4 / 9.5 / 9.6 / 10 / 11 / 12 / 13 / 14 / 15 / 16 / 17

F.2. auth_delay — 在认证失败时暂停 #

F.2.1. 配置参数
F.2.2. 作者

auth_delay 会导致服务器在报告身份验证失败之前短暂停顿,以增加对数据库密码进行暴力破解的难度。请注意,它并不能防止拒绝服务攻击,甚至可能会加剧攻击,因为在报告身份验证失败之前进行等待的进程仍然会占用连接槽。

为了使用此模块,必须通过 postgresql.conf 中的 shared_preload_libraries 来加载它。

F.2.1. 配置参数 #

auth_delay.milliseconds (integer)

在报告身份验证失败之前等待的毫秒数。默认值为 0。

这些参数必须在 postgresql.conf 中设置。典型用法可能为

# postgresql.conf
shared_preload_libraries = 'auth_delay'

auth_delay.milliseconds = '500'

F.2.2. 作者 #

KaiGai Kohei