pgo update user
pgo update user
Update a postgres user
Synopsis
UPDATE allows you to update a pgo user. For example: //change a password, set valid days for 40 days from now pgo update user mycluster –username=someuser –password=foo –valid-days=40 //expire password for a user pgo update user mycluster –username=someuser –expire-user //Update all passwords older than the number of days specified pgo update user mycluster –expired=45 –password-length=8
pgo update user [flags]
Options
--all all clusters.
--expire-user Performs expiring a user if set to true.
--expired string Updates passwords that will expire in X days using an autogenerated password.
-h, --help help for user
--password string Specifies the user password when updating a user password or creating a new user.
--password-length int If no password is supplied, sets the length of the automatically generated password. Defaults to the value set on the server.
-s, --selector string The selector to use for cluster filtering.
--username string Updates the postgres user on selective clusters.
--valid-days int Sets passwords for new users to X days. (default 30)
Options inherited from parent commands
--apiserver-url string The URL for the PostgreSQL Operator apiserver that will process the request from the pgo client.
--debug Enable additional output for debugging.
--disable-tls Disable TLS authentication to the Postgres Operator.
--exclude-os-trust Exclude CA certs from OS default trust store
-n, --namespace string The namespace to use for pgo requests.
--pgo-ca-cert string The CA Certificate file path for authenticating to the PostgreSQL Operator apiserver.
--pgo-client-cert string The Client Certificate file path for authenticating to the PostgreSQL Operator apiserver.
--pgo-client-key string The Client Key file path for authenticating to the PostgreSQL Operator apiserver.
SEE ALSO
- pgo update - Update a pgouser, pgorole, or cluster