PolarDB-X offers the three-role mode to help you implement the principle of separation of duties. This mode distributes the permissions of a single Privileged Account among three distinct Roles: a System Administrator, a Security Administrator (DSA), and an Audit Administrator (DAA). This approach enhances database security by reducing the risks of overly concentrated permissions.
Limitations
The three-role mode is available only for Enterprise Edition instances.
A Read Replica inherits its three-role mode setting from the Primary Instance and does not require separate configuration. When the three-role mode is enabled or disabled on the Primary Instance, the change is automatically synchronized with its associated Read Replicas.
Risks and solutions
-
Risks
In a traditional database operations model, the Database Administrator (DBA) holds extensive, centralized permissions.
-
Security incidents caused by DBA errors or misjudgment.
-
Malicious operations by DBAs.
-
Unauthorized access to sensitive data by DBAs, third-party contractors, or application developers.
-
-
Solution
PolarDB-X provides the three-role mode to implement the principle of separation of duties. This mode replaces the traditional single-administrator system by defining the responsibilities of three distinct Roles:
-
System Administrator: Can only perform Data Definition Language (DDL) operations.
-
Security Administrator (DSA): Manages Roles and Users, and grants permissions to other accounts.
-
Audit Administrator (DAA): Can only view the Audit Log.
-
Permission comparison for system accounts
The following table compares the permissions of different system accounts in Default Mode and Three-Role Mode.
-
In Default Mode, the Privileged Account is the sole administrative account. For more information about the Privileged Account, see Account types.
-
Enabling or disabling the three-role mode affects only the permissions of system accounts, which include the Privileged Account, System Administrator, Security Administrator (DSA), and Audit Administrator (DAA). The permissions of a Standard Account are not affected.
-
In three-role mode, system accounts cannot perform Data Manipulation Language (DML), Data Query Language (DQL), or Data Administration Language (DAL) operations. However, the Security Administrator (DSA) can grant these permissions to a Standard Account.
|
Permission |
Default mode |
Three-role mode |
|||
|
Category |
SQL |
Privileged account |
System administrator |
Security administrator (DSA) |
Audit administrator (DAA) |
|
DDL |
|
Supported |
Supported |
Not supported |
Not supported |
|
DML |
|
Supported |
Not supported |
Not supported |
Not supported |
|
DQL |
|
||||
|
DAL |
|
||||
|
Account and Role management |
Supported |
Not supported |
Supported |
Not supported |
|
|
View Audit Log |
View audit logs from the following two tables:
|
Supported |
Not supported |
Not supported |
Supported |