Skip to content

Commit f1d07cd

Browse files
committed
Add password rotation to README
1 parent bfb8d31 commit f1d07cd

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,17 @@ juju remove-unit postgresql <name_of_unit1> <name_of_unit2>
4747
```
4848
The implementation of `remove-unit` allows the operator to remove more than one unit. The functionality of `remove-unit` functions by removing one replica at a time to avoid downtime.
4949

50+
### Password rotation
51+
#### Charm users
52+
For users used internally by the Charmed PostgreSQL Operator an action can be used to rotate their passwords.
53+
```shell
54+
juju run-action postgresql/0 set-password username=<username> password=<password> --wait
55+
```
56+
Currently, the users used by the operator are `operator` and `replication`. Those users should not be used outside the operator.
57+
58+
#### Related applications users
5059

60+
To rotate the passwords of users created for related applications the relation should be removed and the application should be related again to the Charmed PostgreSQL Operator. That process will generate a new user and password for the application (removing the old user).
5161

5262
## Relations
5363

0 commit comments

Comments
 (0)