Re: Super user password explicit in patroni yml

From: Ron Johnson <ronljohnsonjr(at)gmail(dot)com>
To: pgsql-admin <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Super user password explicit in patroni yml
Date: 2025-02-26 19:27:52
Message-ID: CANzqJaCSGSRXnA6voPqHm2sMbEp_cH=+DnD0h2QnBku+pBohUA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Wed, Feb 26, 2025 at 2:07 PM kamal deen <kamaldeendba(at)gmail(dot)com> wrote:

> Hi All,
>
[snip]

> And also pls share the best way to rotate the DB user password in postgres.
>

I wrote a shell script to generate(*) a password, run the ALTER ROLE
command, push the VALID UNTIL out by 3 months, and either(**) "sed edit
.pgpass" or send the user an email with the new password.

*Via picking two random words from /usr/share/dict/words, a random 2 digit
number, concatenated with a period. "openssl rand -base64 48" works, too.
Got the basics from a StackExchange post.

**Depending on the user

--
Death to <Redacted>, and butter sauce.
Don't boil me, I'm still alive.
<Redacted> lobster!

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message kamal deen 2025-02-26 20:00:55 Re: Super user password explicit in patroni yml
Previous Message kamal deen 2025-02-26 19:06:49 Super user password explicit in patroni yml