01 Install and configure ossutil. ossutil is a command-line tool for Alibaba Cloud's Object Storage Service (OSS).
02 Run ls command (macOS/Linux/Windows) to list the OSS buckets available within your Alibaba Cloud account:
03 The command output should return the name of each OSS bucket available in your cloud account:
oss://tm-project-trail-bucket
oss://tm-project-data-bucket
oss://tm-project-app-utils
oss://tm-project-custom-logs
Bucket Number is: 4
0.235205(s) elapsed
04 Run bucket-encryption command (macOS/Linux/Windows) to describe the Server-Side Encryption (SSE) configuration information available for the selected OSS bucket:
ossutil bucket-encryption --method get oss://tm-project-trail-bucket
05 The command output should return the requested configuration information:
SSEAlgorithm: KMS
KMSMasterKeyID: abcd1234-abcd-1234-abcd-1234abcd1234
KMSDataEncryption:
06 Run kms DescribeKey command (macOS/Linux/Windows) to describe the KMS key configured for Server-Side Encryption (SSE), returned at the previous step (if the KMSMasterKeyID value is returned):
aliyun kms DescribeKey --KeyId 'abcd1234-abcd-1234-abcd-1234abcd1234'
07 The command output should return the information available for the specified KMS key (including the key creator):
{
"KeyMetadata": {
"Arn": "acs:kms:eu-west-1:1234567890123456:key/abcd1234-abcd-1234-abcd-1234abcd1234",
"AutomaticRotation": "Disabled",
"CreationDate": "2024-01-26T11:19:27Z",
"Creator": "Rds",
"DeleteDate": "",
"DeletionProtection": "Disabled",
"Description": "",
"KeyId": "abcd1234-abcd-1234-abcd-1234abcd1234",
"KeySpec": "Aliyun_AES_256",
"KeyState": "Enabled",
"KeyUsage": "ENCRYPT/DECRYPT",
"LastRotationDate": "2024-01-26T11:20:27Z",
"MaterialExpireTime": "",
"Origin": "Aliyun_KMS",
"PrimaryKeyVersion": "abcd1234-abcd-1234-abcd-1234abcd1234",
"ProtectionLevel": "SOFTWARE"
},
"RequestId": "ABCDABCD-1234-ABCD-1234-ABCD1234ABCD"
}
Check the
KeyMetadata.Creator attribute value to determine the KMS key creator. If the key creator is a cloud service and not a customer/user, as shown in the example above, the KMS key specified by
KMSMasterKeyID is not a customer-managed key (CMK).
08 Check the information returned at steps no. 5 and 7 to determine the Server-Side Encryption (SSE) feature configuration available for the selected OSS bucket. For compliance, the SSEAlgorithm must be set to KMS and the KMSMasterKeyID must be the ID of a customer-managed key (CMK). If the SSEAlgorithm is not KMS and the KMSMasterKeyID is not the ID of a CMK, Server-Side Encryption (SSE) with customer-managed keys (CMKs) is disabled for the selected OSS bucket.
09 Repeat steps no. 4 - 8 for each OSS bucket available within your Alibaba Cloud account.