Back to Materialize

Enable Rbac

doc/user/content/headless/rbac-sm/enable-rbac.md

1231.3 KB
Original Source

{{< warning >}} If RBAC is not enabled, all users have <red>superuser</red> privileges. {{</ warning >}}

By default, role-based access control (RBAC) checks are not enabled (i.e., enforced) when using authentication. To enable RBAC, set the system parameter enable_rbac_checks to 'on' or True. You can enable the parameter in one of the following ways:

If more than one method is used, the ALTER SYSTEM command will take precedence over the Kubernetes configuration.

To view the current value for enable_rbac_checks, run the following SHOW command:

mzsql
SHOW enable_rbac_checks;

{{< important >}} If RBAC is not enabled, all users have <red>superuser</red> privileges. {{</ important >}}