v5 Admin password

111 views
Skip to first unread message

Charlie Holland

unread,
Aug 2, 2021, 12:06:15 PM8/2/21
to Postgres Operator
I'm sure I'm missing something but I can't find a way to get the 'postgres' admin password for a new cluster. 

I know that I can 'exec' into the database container to run commands as 'postgres' but that doesn't fit my use case. I have scripts that need to be able to run against any postgres deployment, (eg. AWS/Azure) not just PGO.

Looks like the password is blank but that causes it's own problems. Am I missing something or trying to fit a square peg into a round hole?

Jonathan S. Katz

unread,
Aug 2, 2021, 12:08:34 PM8/2/21
to Charlie Holland, Postgres Operator
This is addressed by this patch and will be available in the next release:


The "postgres" superuser is managed by PGO, but you can create your own superusers at bootstrap time once that patch is available.

As you mention, in the interim you can exec into the database container.

Jonathan S. Katz
VP Platform Engineering

Crunchy Data
Enterprise PostgreSQL 


Jonathan S. Katz

unread,
Aug 2, 2021, 7:50:34 PM8/2/21
to Charlie Holland, Postgres Operator
As an addendum, the "postgres" user will be manageable in the next release. A clip from the release notes:

The built-in `postgres` superuser can now be managed the same way as other users. Specifying it in `PostgresCluster.spec.users` will give it a password, allowing it to connect over the network.

Jonathan S. Katz
VP Platform Engineering

Crunchy Data
Enterprise PostgreSQL 


Wenwei Lin

unread,
Aug 3, 2021, 6:31:47 AM8/3/21
to Jonathan S. Katz, Charlie Holland, Postgres Operator
hello
when will the next version release?

--
You received this message because you are subscribed to the Google Groups "Postgres Operator" group.
To unsubscribe from this group and stop receiving emails from it, send an email to postgres-opera...@crunchydata.com.


--
Kevin lin (林文炜)

Specialist Solution Architect

Red Hat

we...@redhat.com    M: 86 18516567169    



Reply all
Reply to author
Forward
0 new messages