Note
For V4.6.x, this view is available starting from V4.6.0.
Overview
Displays the definitions and attributes of all sensitive rules under all tenants.
Columns
Field Name |
Type |
Whether can be NULL |
Description |
|---|---|---|---|
| TENANT_ID | int(20) | NO | Tenant ID |
| RULE_NAME | varchar(256) | NO | Sensitive Rule Name |
| PROTECTION_POLICY | varchar(16) | NO | Protection policy. Valid values:ENCRYPTION/MASKING/INVALID.ENCRYPTIONindicates encryption protection.MASKINGindicates mask protection,INVALIDIndicates invalid. |
| METHOD | varchar(4096) | NO | Specifies the encryption method. For more information, see the values listed below. |
| ENABLED | varchar(3) | NO | Whether to enable. Valid values:YESorNO.YESindicates that the feature is enabled.NOIndicates disabled. |
Valid values of METHOD:
Values (used in SQL syntax) |
Actual Encryption Algorithm Used |
Key Length |
Mode |
Description |
|---|---|---|---|---|
| aes-256 | AES-256-ECB | 256-bit | ECB | Default Algorithm |
| aes-128 | AES-128-ECB | 128-bit | ECB | |
| aes-192 | AES-192-ECB | 192-bit | ECB | |
| aes-128-gcm | AES-128-GCM | 128-bit | GCM | High security level, providing Authenticated Encryption with Additional Data (AEAD) |
| aes-192-gcm | AES-192-GCM | 192-bit | GCM | High security level, providing Authenticated Encryption with Additional Data (AEAD) |
| aes-256-gcm | AES-256-GCM | 256-bit | GCM | High security level, providing Authenticated Encryption with Additional Data (AEAD) |
| sm4-cbc | SM4-CBC | CBC | High security level | |
| sm4-gcm | SM4-GCM | GCM | High security level, providing Authenticated Encryption with Additional Data (AEAD) |
Sample query
View the definitions and attributes of all sensitive rules under all tenants.
obclient [oceanbase]> SELECT * FROM oceanbase.CDB_OB_SENSITIVE_RULES;
The query result is as follows:
+-----------+-----------+-------------------+---------+---------+
| TENANT_ID | RULE_NAME | PROTECTION_POLICY | METHOD | ENABLED |
+-----------+-----------+-------------------+---------+---------+
| 1 | r1 | ENCRYPTION | aes-256 | YES |
+-----------+-----------+-------------------+---------+---------+
1 row in set
