How the password is changed
When a PostgreSQL account rotates, the rotation account connects to the target database and runs:Rotation account requirements
The rotation account is the role that runs the statement above, so it must be allowed to set the target role’s password.- Self-rotation: a role can always change its own password, so no extra privileges are needed.
- Delegated rotation: the rotation account must be able to alter the target role. Grant it
CREATEROLE, or use a superuser.
Create the rotation account and the target account in Infisical PAM as separate PostgreSQL accounts on the same resource, then select the rotation account on the target account’s Rotation tab.