You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allow for Postgres system account user passwords to be updated
This introduces the "--set-system-account-password" flag to allow
for one to update the password for a PostgreSQL system account user.
The flag allows for an override as well as a safety mechanism for
one to think about the action they are going to partake in.
Issue: #2169
Copy file name to clipboardExpand all lines: cmd/pgo/cmd/update.go
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -187,6 +187,7 @@ func init() {
187
187
UpdateUserCmd.Flags().BoolVar(&PasswordValidAlways, "valid-always", false, "Sets a password to never expire based on expiration time. Takes precedence over --valid-days")
188
188
UpdateUserCmd.Flags().BoolVar(&RotatePassword, "rotate-password", false, "Rotates the user's password with an automatically generated password. The length of the password is determine by either --password-length or the value set on the server, in that order.")
189
189
UpdateUserCmd.Flags().StringVarP(&Selector, "selector", "s", "", "The selector to use for cluster filtering.")
190
+
UpdateUserCmd.Flags().BoolVar(&ShowSystemAccounts, "set-system-account-password", false, "Allows for a system account password to be set.")
Copy file name to clipboardExpand all lines: docs/content/pgo-client/reference/pgo_update_user.md
+18-17Lines changed: 18 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,27 +32,28 @@ pgo update user [flags]
32
32
### Options
33
33
34
34
```
35
-
--all all clusters.
36
-
--disable-login Disables a PostgreSQL user from being able to log into the PostgreSQL cluster.
37
-
--enable-login Enables a PostgreSQL user to be able to log into the PostgreSQL cluster.
38
-
--expire-user Performs expiring a user if set to true.
39
-
--expired int Updates passwords that will expire in X days using an autogenerated password.
40
-
-h, --help help for user
41
-
-o, --output string The output format. Supported types are: "json"
42
-
--password string Specifies the user password when updating a user password or creating a new user. If --rotate-password is set as well, --password takes precedence.
43
-
--password-length int If no password is supplied, sets the length of the automatically generated password. Defaults to the value set on the server.
44
-
--password-type string The type of password hashing to use.Choices are: (md5, scram-sha-256). This only takes effect if the password is being changed. (default "md5")
45
-
--rotate-password Rotates the user's password with an automatically generated password. The length of the password is determine by either --password-length or the value set on the server, in that order.
46
-
-s, --selector string The selector to use for cluster filtering.
47
-
--username string Updates the postgres user on selective clusters.
48
-
--valid-always Sets a password to never expire based on expiration time. Takes precedence over --valid-days
49
-
--valid-days int Sets the number of days that a password is valid. Defaults to the server value.
35
+
--all all clusters.
36
+
--disable-login Disables a PostgreSQL user from being able to log into the PostgreSQL cluster.
37
+
--enable-login Enables a PostgreSQL user to be able to log into the PostgreSQL cluster.
38
+
--expire-user Performs expiring a user if set to true.
39
+
--expired int Updates passwords that will expire in X days using an autogenerated password.
40
+
-h, --help help for user
41
+
-o, --output string The output format. Supported types are: "json"
42
+
--password string Specifies the user password when updating a user password or creating a new user. If --rotate-password is set as well, --password takes precedence.
43
+
--password-length int If no password is supplied, sets the length of the automatically generated password. Defaults to the value set on the server.
44
+
--password-type string The type of password hashing to use.Choices are: (md5, scram-sha-256). This only takes effect if the password is being changed. (default "md5")
45
+
--rotate-password Rotates the user's password with an automatically generated password. The length of the password is determine by either --password-length or the value set on the server, in that order.
46
+
-s, --selector string The selector to use for cluster filtering.
47
+
--set-system-account-password Allows for a system account password to be set.
48
+
--username string Updates the postgres user on selective clusters.
49
+
--valid-always Sets a password to never expire based on expiration time. Takes precedence over --valid-days
50
+
--valid-days int Sets the number of days that a password is valid. Defaults to the server value.
50
51
```
51
52
52
53
### Options inherited from parent commands
53
54
54
55
```
55
-
--apiserver-url string The URL for the PostgreSQL Operator apiserver that will process the request from the pgo client.
56
+
--apiserver-url string The URL for the PostgreSQL Operator apiserver that will process the request from the pgo client. Note that the URL should **not** end in a '/'.
56
57
--debug Enable additional output for debugging.
57
58
--disable-tls Disable TLS authentication to the Postgres Operator.
58
59
--exclude-os-trust Exclude CA certs from OS default trust store
@@ -66,4 +67,4 @@ pgo update user [flags]
66
67
67
68
*[pgo update](/pgo-client/reference/pgo_update/) - Update a pgouser, pgorole, or cluster
68
69
69
-
###### Auto generated by spf13/cobra on 1-Oct-2020
70
+
###### Auto generated by spf13/cobra on 14-Jan-2021
0 commit comments