Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jW2yG-0000An-0K for pgsql-general@arkaria.postgresql.org; Tue, 05 May 2020 19:11:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jW2yE-0006R5-Dc for pgsql-general@arkaria.postgresql.org; Tue, 05 May 2020 19:11:10 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jW2yE-0006Qy-6M for pgsql-general@lists.postgresql.org; Tue, 05 May 2020 19:11:10 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jW2y8-0001GN-VL for pgsql-general@lists.postgresql.org; Tue, 05 May 2020 19:11:09 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id 045JB0NU010843; Tue, 5 May 2020 15:11:00 -0400 From: Tom Lane To: "Wolff, Ken L" cc: Allan Kamau , "pgsql-general@lists.postgresql.org" , Adrian Klaver Subject: Re: Lock Postgres account after X number of failed logins? In-reply-to: References: Comments: In-reply-to "Wolff, Ken L" message dated "Tue, 05 May 2020 17:45:34 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <10841.1588705860.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Tue, 05 May 2020 15:11:00 -0400 Message-ID: <10842.1588705860@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk "Wolff, Ken L" writes: > I do understand what you described about locking down access through pg_= hba.conf, so only authorized users/applications can connect. That makes a= lot of sense and I=E2=80=99m going to take it forward to our Information = Security organization. However, in case they won=E2=80=99t budge from th= is requirement, can someone tell me what would be the best way to submit t= his as a feature request? Simply edit the PostgreSQL Wiki ToDo page (http= s://wiki.postgresql.org/wiki/Todo) or is there some other method. It's been discussed, but it's quite unlikely that we'd add features in this area. The project position is that if you have such requirements, you can address them by using external authentication management, like LDAP or PAM. If we tried to take this on board, first we'd have a bunch of problems with scope creep (because there are so many different random requirements that people might have), and second we'd have a bunch of architectural issues with where to keep the relevant state. It can't be ordinary database state --- at least not if you'd like to use the feature on read-only slave servers, and even a single server would have issues executing a transaction from a not-logged-in session --- but then where *do* we keep it, and how would an admin see or adjust the state? It's a can of worms we don't really care to open, especially when there are perfectly good solutions already available outside PG proper. regards, tom lane