Note
For V2.2.50, this parameter is available starting with V2.2.50.
Description
external_kms_info stores some key management information.
Privilege requirements
Query the parameter
The
systenant and all user tenants can use theSHOW PARAMETERSstatement or theGV$OB_PARAMETERSview to query this parameter.Modify the parameter
The
systenant and user tenants can modify this parameter.
Attributes
Attribute |
Description |
|---|---|
| Type | String |
| Default value | "", which indicates an empty string. |
| Modifiable | Yes. You can use the ALTER SYSTEM SET statement to modify the parameter. |
| Effective upon OBServer node restart | No. The setting takes effect immediately. |
Considerations
When you use an external KMS, you can store some key management information in the external_kms_info parameter. The content format of this parameter depends on the value of the tde_method parameter.
obcloud or ocp mode
When tde_method is obcloud or ocp, configure the attributes required for the KMS proxy service in the following format:
{
"kms_host": "https://kms.example.oceanbase.com", // The endpoint pointing to the KMS service.
"access_key_id": "******", // The AccessKey used for signature authentication.
"access_key_secret": "******", // The secret key used for signature authentication.
"cmk_id": "your_customer_master_key_id" // The CMK ID.
}
Notice
When you execute the ALTER SYSTEM SET external_kms_info statement, the system immediately connects to the KMS service specified by kms_host for verification. If the KMS service is unavailable or the authentication information is incorrect, the statement fails and returns the kms server connect failed error.
bkmi mode
When tde_method is bkmi, configure the attributes required for the external BKMI system in the following format:
{
"KMS_HOST": "TEST_SERVER", // KMS address
"ROOT_CERT": "TEST_CERT", // Public key of the certificate
"PRIVATE_KEY": "TEST_PKEY", // Private key of the certificate
"PRIVATE_KEY_PHRASE": "TEST_PHRASE", // Private key password of the certificate
"SCENE": "HK", // Scene. Valid values: HK, ANT, HK_SM, and ANT_SM.
"KEY_NAME": "TEST_NAME", // Key name
"CALLER": "TEST_CALLER" // Application name
}
Examples
When tde_method is obcloud, configure the KMS proxy service parameters:
obclient> ALTER SYSTEM SET external_kms_info = '
{
"kms_host": "https://kms.example.oceanbase.com",
"access_key_id": "******",
"access_key_secret": "******",
"cmk_id": "your_customer_master_key_id"
}';
When tde_method is bkmi, create a key named ob_cluster_key in the BKMI system and configure the external_kms_info parameter:
obclient> ALTER SYSTEM SET external_kms_info = '
{
"KMS_HOST": "kms.ob.com:443",
"ROOT_CERT": "******",
"PRIVATE_KEY": "******",
"PRIVATE_KEY_PHRASE": "ob2025",
"SCENE": "ANT",
"KEY_NAME": "ob_cluster_key",
"CALLER": "oceanbase_admin"
}';