pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Passwordcheck configuration
Date: Fri, 20 Mar 2020 11:46:44 -0500
Message-ID: <2ae09ce4-3a4a-d6fd-18c4-58d3b33ffaeb@gmail.com> (raw)
In-Reply-To: <5502.1584659946@sss.pgh.pa.us>
References: <CAFTBbFB0DYHmn+ZPXpW641W7_Anz5y3iJAGXRR_dTvPiEk7t3Q@mail.gmail.com>
	<5502.1584659946@sss.pgh.pa.us>

On 3/19/20 6:19 PM, Tom Lane wrote:
> Dave Hughes <dhughes20@gmail.com> writes:
>> I have a requirement to set some password complexity for our database such
>> as length of password, upper case, lower case, special characters,
>> expiration limit, reuse, etc.
> Usually, if you have to do something like that, we recommend setting PG to
> use PAM authentication and configuring the restrictions on the PAM side.
> The only native capability in that direction is that you can set a
> password expiration date.
>
> Note that it's widely believed that this sort of thing makes you LESS
> secure, not more.

Correct.

https://pages.nist.gov/800-63-3/sp800-63b.html#memsecret

NIST Special Publication 800-63B
Digital Identity Guidelines

5.1.1.2 Memorized Secret Verifiers

"Verifiers SHALL require subscriber-chosen memorized secrets to be at least 
8 characters in length."
"Verifiers SHOULD NOT impose other composition rules (e.g., requiring 
mixtures of different character types or prohibiting consecutively repeated 
characters) for memorized secrets."
"Verifiers SHOULD NOT require memorized secrets to be changed arbitrarily 
(e.g., periodically)."


>    Quite aside from the well-established fact that forced
> password changes are bad from a human-factors standpoint, you can't check
> any of those other points unless the password is sent to the server as
> cleartext.  That creates its own set of vulnerabilities, and I don't
> know of anybody who considers it good practice.
>
>> I saw there was a module you can use for this called passwordcheck.  Seems
>> easy to install, but I don't see how you can configure it for you specific
>> needs?
> passwordcheck hasn't got any out-of-the-box configurability.  It's mainly
> meant as sample code that people could modify if they have a mind to.
>
> (I seem to recall some recent discussion about deprecating/removing
> passwordcheck altogether, but I can't find it right now.)
>
> 			regards, tom lane
>
>

-- 
Angular momentum makes the world go 'round.





view thread (8+ messages)  latest in thread

Message-ID: <2ae09ce4-3a4a-d6fd-18c4-58d3b33ffaeb@gmail.com>
Permalink:  ../2ae09ce4-3a4a-d6fd-18c4-58d3b33ffaeb@gmail.com/
Also on:    postgresql.org/message-id/2ae09ce4-3a4a-d6fd-18c4-58d3b33ffaeb@gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: ronljohnsonjr@gmail.com
  Subject: Re: Passwordcheck configuration
  In-Reply-To: <2ae09ce4-3a4a-d6fd-18c4-58d3b33ffaeb@gmail.com>
  References: <CAFTBbFB0DYHmn+ZPXpW641W7_Anz5y3iJAGXRR_dTvPiEk7t3Q@mail.gmail.com> <5502.1584659946@sss.pgh.pa.us> <2ae09ce4-3a4a-d6fd-18c4-58d3b33ffaeb@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox