fly-apps / postgres-ha

Postgres + Stolon for HA clusters as Fly apps.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Clarify credential requirements

davissp14 opened this issue · comments

On provision, we are creating three sets of credentials for users: flypgadmin, repluser and the postgres.

The README indicates that secrets for SU_PASSWORD and REPL_PASSWORD are required, but there's no mentioning of the OPERATOR_PASSWORD.

We should clarify these users as well as the actual requirements for provisions within the README.

OPERATOR_PASSWORD is what we use to give people a "root" account on their new db clusters. It's not required, if it exists when a cluster is inited, we create a user:

if err = initOperator(context.TODO(), pg, node.OperatorCredentials); err != nil {

SU_PASSWORD and REPL_PASSWORD are required. Stolon uses those for management and replication, respectively.