postgres-operator icon indicating copy to clipboard operation
postgres-operator copied to clipboard

It appears that there is no way to grant a role to a user/role?

Open jmcdonagh opened this issue 1 year ago • 1 comments

In some cases we will GRANT a role to another role that has the INHERIT option. I'm not seeing in the docs how to do this. So if this isn't possible, I want this to be a feature request. If it is possible, I'd like to know how. Thanks!

jmcdonagh avatar Sep 03 '24 20:09 jmcdonagh

Hi @jmcdonagh!

You can define roles and other options for any users defined via spec.users (e.g. INHERIT or NOINHERIT) by adjusting the options for the user, as shown in the following docs:

https://access.crunchydata.com/documentation/postgres-operator/latest/tutorials/basic-setup/user-management#adjusting-privileges

Hope this helps!

andrewlecuyer avatar Sep 05 '24 12:09 andrewlecuyer