Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tLRgi-00Eq6f-0f for pgsql-general@arkaria.postgresql.org; Wed, 11 Dec 2024 18:43:56 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tLRge-0013p1-Ln for pgsql-general@arkaria.postgresql.org; Wed, 11 Dec 2024 18:43:53 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tLRge-0013oU-8l for pgsql-general@lists.postgresql.org; Wed, 11 Dec 2024 18:43:53 +0000 Received: from mail-oa1-x29.google.com ([2001:4860:4864:20::29]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1tLRgc-002Jpg-NI for pgsql-general@lists.postgresql.org; Wed, 11 Dec 2024 18:43:52 +0000 Received: by mail-oa1-x29.google.com with SMTP id 586e51a60fabf-29ff8053384so1218770fac.3 for ; Wed, 11 Dec 2024 10:43:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1733942629; x=1734547429; darn=lists.postgresql.org; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=2fcchw1PpRz5/is9NId9qgcCezFHXRoaaHY/4pEXgx4=; b=W9X9IbLO2Qa1lG1j4DZv7J0OJa3tIUWSTd8MrDYyiaRA4NJxycGNngUCsuXUoVnG8P pKGWkwAr/Qj68LCSMpp/L16JN44b0cBGr4lDN20ge8QgTDNYFK4SF2fUcKWggM+GWR1X UhQUyxOBT7wHkEXqS5YueUufR8C5jUw76TZH7SbppW1FpjwA7QMNTORXIK+1OSkfhQyw f6dLLl2Zaz1jxhLJb3LNjmsPUSYNOta3hvLu3PPo7dohTYUEfHA5/dRBVjdQ2Gl2q/jg zZopJdyE9+fJd95s4F9msqD/ytA/2iH/3oYzH2XFqKOnPQYhgwbWlcn/QXUBg7QhxRDz AxHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733942629; x=1734547429; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=2fcchw1PpRz5/is9NId9qgcCezFHXRoaaHY/4pEXgx4=; b=dfIFHxDxIVzYrnJ0i9h5SgH6RseeYpSeTEdTvxVABHniGcYeB5qF2ESBFszyNVW2Hn aSeO789c8bKeJymoDRbsB52EsIZOfBoQ60/wLT9sqzrMUBgWZ7vX3jDScm3LS1x284+X bqq1nKt9CWJqDcwUwwQEvlMi7BkMD5whOhsYf59pHOiyBrQz2OM8QDsNtIZmheVLP4C7 NihTRx8XrQWYEYxT0wZmsOzXbN+N20FxDtza520suodv2gR1rMJQVEWUnT54ggs8z5Bz rHKDdKTcdPvCZFDiLNErduadGk4AyE5xbCdwTuR0CWQqMICkDTZl9m03MJc42iI8hAej 3Lnw== X-Gm-Message-State: AOJu0Yw3hpkDtbNhbF+hUqBfv+BLX+wQcr3EAE46ew3/2k6My396raZb g6nYORpZl11aYDlw5y3YXpraWmBNWmXX9n4OMf/mWgmQqTGLPeK8lYvJX3/IWm/21+VW9I4+PZG st42j4/eYZUouZE2zbxNwWt+idR40ZA== X-Gm-Gg: ASbGnctYE9vx8zEFp0c7YgP/FSSz4WxQHir+tJl3agv9gYbnrOiSKAf0/n93ihZnwzW wSDWocChcJsZj5gHz+totgzGm5cwLJ32n2jCXDK5ITo7441LJwzTySlD24m3Dw63t2FHeGw== X-Google-Smtp-Source: AGHT+IFcHKzXPraGBCyb5dBOfvQgPy1e8e/22RweEbRFOJ2/jJ/4HaaNKLqmfBkZLGJkxgKleJhh34YQZWJOFA0rB0c= X-Received: by 2002:a05:6870:4d17:b0:29e:392d:afc8 with SMTP id 586e51a60fabf-2a3823e14b2mr625428fac.15.1733942629187; Wed, 11 Dec 2024 10:43:49 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Ron Johnson Date: Wed, 11 Dec 2024 13:43:38 -0500 Message-ID: Subject: Re: Credcheck- credcheck.max_auth_failure To: "pgsql-generallists.postgresql.org" Content-Type: multipart/alternative; boundary="0000000000007956de062902fad2" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000007956de062902fad2 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Dec 11, 2024 at 12:57=E2=80=AFPM Greg Sabino Mullane wrote: > On Wed, Dec 11, 2024 at 5:46=E2=80=AFAM =E5=BC=B5=E5=AE=B8=E7=91=8B wrote: > >> In the use of the Credcheck suite, the parameter >> "credcheck.max_auth_failure =3D '3'" is set in the postgresql.conf file = to >> limit users from entering incorrect passwords more than three times, aft= er >> which their account will be locked. >> > > Won't that allow absolutely anyone to lock out anyone else, including > admins/superusers? Sounds like a bad idea to me. > Isn't this a pretty common password setting? I know that for at least 35 years, and going back to the VAX/VMS days I've been locked out for X hours if I typed an invalid password. Same on Windows and I think also Linux (though ssh public keys and clients remembering passwords mean that rarely happens to me). > > >> Due to certain requirements, I would like to ask if there is a way or >> feature to set this parameter differently for a specific user or role, s= o >> that it does not apply to them. >> > > There is not, but there is always the credcheck.reset_superuser setting a= s > an emergency measure. I'd keep the password complexity settings and not > enable max_auth_failure at all, myself. Three strikes and you're out feel= s > pretty draconian. Is there a particular threat model that is driving that= ? > --=20 Death to , and butter sauce. Don't boil me, I'm still alive. lobster! --0000000000007956de062902fad2 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Wed, Dec 11, 2024 at 12:57=E2=80=AFPM = Greg Sabino Mullane <htamfids@gmai= l.com> wrote:
=
On Wed, Dec 11, 2024 at 5:46=E2=80=AFAM =E5=BC=B5=E5=AE=B8=E7=91= =8B <kenny020= 307@gmail.com> wrote:
In the use of the Credcheck s= uite, the parameter "credcheck.max_auth_failure =3D '3'" = is set in the postgresql.conf file to limit users from entering incorrect p= asswords more than three times, after which their account will be locked.

Won't that allow absolutely = anyone to lock out anyone else, including admins/superusers? Sounds like a = bad idea to me.

Isn't= this a pretty common password setting?=C2=A0 I know that for at least 35 y= ears, and going back to the VAX/VMS days I've been=C2=A0 locked out for= X hours if I typed an invalid password.=C2=A0 Same on Windows and I think = also Linux (though ssh public keys and clients remembering passwords mean t= hat rarely happens to me).
=C2=A0
= =C2=A0
Du= e to certain requirements, I would like to ask if there is a way or feature= to set this parameter differently for a specific user or role, so that it = does not apply to them.

There i= s not, but there is always the=C2=A0credcheck.reset_superuser setting as an= emergency measure. I'd keep the password complexity settings and not e= nable max_auth_failure at all, myself. Three strikes and you're out fee= ls pretty draconian. Is there a particular=C2=A0threat model that is drivin= g that?

--
Death to <Redacted>, and butter sauce.
Don&= #39;t boil me, I'm still alive.
<Redacted> lobster!<= /div>
--0000000000007956de062902fad2--