From: raf <raf@raf.org>
To: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #15911: Why no Bcrypt in pg_hba.conf?
Date: Wed, 17 Jul 2019 09:22:42 +1000
Message-ID: <20190716232242.bvdu6w7jnk3fj237@raf.org> (raw)
In-Reply-To: <9218.1563300642@sss.pgh.pa.us>
References: <15911-a96c5fc2f29cdecc@postgresql.org>
<87ftn5zze8.fsf@news-spur.riddles.org.uk>
<9218.1563300642@sss.pgh.pa.us>
Tom Lane wrote:
> Andrew Gierth <andrew@tao11.riddles.org.uk> writes:
> > "PG" == PG Bug reporting form <noreply@postgresql.org> writes:
> > PG> Can you please add `bcrypt` as method option?
>
> > Not unless it gets added to the SCRAM specification.
>
> > Note that our primary goal here is to provide a secure and standard
> > challenge-response authentication mechanism, not to provide random
> > alternate algorithms for password storage.
>
> Worth noting here is that for us, the price of an additional
> authentication mechanism is very high, because it's not just a matter
> of adding some code to the server. Client-side libraries also need to
> be taught about it, and most of those are not maintained by the core
> PG project. So it takes years to make anything happen --- the
> addition of SCRAM is still a work in progress, for example.
>
> Thus, we aren't going to add stuff on a whim, and when we do add some
> new mechanism, there has to be a really solid argument that it's a
> *significant* advance over what we have.
>
> regards, tom lane
bcrypt is better than pbkdf2 but pbkdf2 is still good
for the same reasons that bcrypt is good (brute force
resistance). if you want bcrypt/scrypt/argon2, pbkdf2
will probably be good enough. and some organisations
may require pbkdf2 because it is NIST-approved while
the others aren't.
cheers,
raf
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-bugs@postgresql.org
Cc: raf@raf.org
Subject: Re: BUG #15911: Why no Bcrypt in pg_hba.conf?
In-Reply-To: <20190716232242.bvdu6w7jnk3fj237@raf.org>
References: <15911-a96c5fc2f29cdecc@postgresql.org> <87ftn5zze8.fsf@news-spur.riddles.org.uk> <9218.1563300642@sss.pgh.pa.us> <20190716232242.bvdu6w7jnk3fj237@raf.org>
* 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