pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: Bruce Momjian <bruce@momjian.us>
Cc: Ian Lawrence Barwick <barwick@gmail.com>
Cc: PostgreSQL-development <pgsql-hackers@postgresql.org>
Subject: Re: PG 14 release notes, first draft
Date: Sat, 15 May 2021 19:05:35 -0400
Message-ID: <20210515230535.GA3189@alvherre.pgsql> (raw)
In-Reply-To: <20210513032606.GE11075@momjian.us>

On 2021-May-12, Bruce Momjian wrote:

> OK, updated text:
> 
> 	<listitem>
> 	<!--
> 	Author: Peter Eisentraut <peter@eisentraut.org>
> 	2020-06-10 [c7eab0e97] Change default of password_encryption to scram-sha-256
> 	-->
> 	
> 	<para>
> 	Change the default of the password_encryption server parameter
> 	to scram-sha-256 (Peter Eisentraut)
> 	</para>
> 	
> 	<para>
> 	Previously it was md5.	All new passwords will be stored as SHA256
> 	unless this server variable is changed or the password is already
> 	md5-hashed.  Also, the legacy (and undocumented) boolean-like
> 	values which were previously synonyms of <literal>md5</literal>
> 	are no longer accepted.
> 	</para>
> 	</listitem>

Thanks, looks ok as far as what the original point was about.

I have to say that this sentence is a bit odd: "All new passwords will
be stored as sha256 unless ... the password is already md5-hashed".
Does this mean that if you change a password for a user whose password
was md5, the new one is stored as md5 too even if the setting is
scram-sha-256?  Or if "the password" means an old password, then why is
it a new password?

-- 
Álvaro Herrera       Valdivia, Chile





view thread (173+ messages)  latest in thread

Message-ID: <20210515230535.GA3189@alvherre.pgsql>
Permalink:  ../20210515230535.GA3189@alvherre.pgsql/
Also on:    postgresql.org/message-id/20210515230535.GA3189@alvherre.pgsql

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: alvherre@alvh.no-ip.org, bruce@momjian.us, barwick@gmail.com
  Subject: Re: PG 14 release notes, first draft
  In-Reply-To: <20210515230535.GA3189@alvherre.pgsql>

* 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