pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Holger Jakobs <holger@jakobs.com>
To: pgsql-admin@lists.postgresql.org
Subject: Re: Upgrading password encryption from md5 to scram-sh-256
Date: Fri, 28 May 2021 16:41:21 +0200
Message-ID: <024F93BC-DB7C-4E00-8D46-5D7033CB0929@jakobs.com> (raw)
In-Reply-To: <CAFpL5VytCu6h4n1hnaRS1BYTNW8uv5jx_FDERwssL_vCNYAfzw@mail.gmail.com>
References: <CAFpL5VytCu6h4n1hnaRS1BYTNW8uv5jx_FDERwssL_vCNYAfzw@mail.gmail.com>



Am 28. Mai 2021 15:27:43 MESZ schrieb Nikhil Shetty <nikhil.dba04@gmail.com>:
>Hi Team,
>
>Just a quick check
>As per documentation, for upgrading password encryption from md5 to
>scram-sha-256, we have to set password_encryption to scram-sha-256,
>reset
>the user password and then change in pg_hba.conf.
>
>Is there any other way to do this without changing the password? if
>there
>are a lot of login users in the database it becomes difficult and it
>may
>incur downtime as well.
>
>I see there is a way the users can do it by themselves but still will
>incur some downtime.
>
>Thanks and Regards,
>Nikhil

It's no problem to leave the setting at md5 as this accepts the new scram passwords as well.

Just check after a while whether all passwords have been changed to scram. 

Since there is no way of retrieving a password in clear it's also impossible to change them to scram automatically.

Hope this helps.



-- 
Holger Jakobs, Bergisch Gladbach
+49 178 9759012
- sent from mobile, therefore short -

view thread (6+ messages)  latest in thread

Message-ID: <024F93BC-DB7C-4E00-8D46-5D7033CB0929@jakobs.com>
Permalink:  ../024F93BC-DB7C-4E00-8D46-5D7033CB0929@jakobs.com/
Also on:    postgresql.org/message-id/024F93BC-DB7C-4E00-8D46-5D7033CB0929@jakobs.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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: holger@jakobs.com, pgsql-admin@lists.postgresql.org
  Subject: Re: Upgrading password encryption from md5 to scram-sh-256
  In-Reply-To: <024F93BC-DB7C-4E00-8D46-5D7033CB0929@jakobs.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