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 ListAliasesByKeyId command (macOS/Linux/Windows) to describe the alias (name) of the KMS key configured for Server-Side Encryption (SSE), returned at the previous step (if the KMSMasterKeyID value is returned):
aliyun kms ListAliasesByKeyId --KeyId 'abcd1234-abcd-1234-abcd-1234abcd1234'
07 The command output should return the alias information available for the specified KMS key (including the alias name):
{
"Aliases": {
"Alias": [
{
"AliasArn": "acs:kms:eu-west-1:1234567890123456:alias/acs/rds",
"AliasName": "alias/acs/rds",
"KeyId": "abcd1234-abcd-1234-abcd-1234abcd1234"
}
]
},
"PageNumber": 1,
"PageSize": 20,
"RequestId": "ABCDABCD-1234-ABCD-1234-ABCD1234ABCD",
"TotalCount": 1
}
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 Aliases.Alias.AliasName value for the KMS key specified by KMSMasterKeyID must be "alias/acs/oss". If the SSEAlgorithm is not KMS and the Aliases.Alias.AliasName value is not "alias/acs/oss", Server-Side Encryption (SSE) with the service-managed key is disabled for the selected OSS bucket.
09 Repeat steps no. 4 - 8 for each OSS bucket available within your Alibaba Cloud account.