All Products
Search
Document Center

Cloud Config:BestPracticesForOSS

Last Updated:Sep 19, 2023

The BestPracticesForOSS compliance package checks the compliance in the read and write settings, protection settings, and zone-redundant storage (ZRS) settings of Object Storage Service (OSS) buckets. This topic describes the rules that are provided in the BestPracticesForOSS compliance package.

Rule name

Description

oss-bucket-public-read-prohibited

Checks whether the access control list (ACL) policy of each OSS bucket denies read access from the Internet. If so, the evaluation result is Compliant.

oss-bucket-public-write-prohibited

Checks whether the ACL policy of each OSS bucket denies read and write access from the Internet. If so, the evaluation result is Compliant.

oss-bucket-server-side-encryption-enabled

Checks whether the Encryption Method parameter of the server-side encryption feature is set to OSS-Managed for each OSS bucket. If so, the evaluation result is Compliant.

oss-bucket-referer-limit

Checks whether the hotlink protection feature is enabled for each OSS bucket and the Referer is added to a specified whitelist. If so, the evaluation result is Compliant.

oss-zrs-enabled

Checks whether the ZRS feature is enabled for each OSS bucket. If so, the evaluation result is Compliant. If the ZRS feature is disabled, OSS cannot provide consistent services and ensure data recovery when a data center becomes unavailable.

oss-bucket-logging-enabled

Checks whether the logging feature is enabled for each OSS bucket on the Logs page. If so, the evaluation result is Compliant.

oss-bucket-versioning-enabled

Checks whether versioning is enabled for each OSS bucket. If so, the evaluation result is Compliant. If versioning is disabled, data cannot be recovered when it is overwritten or deleted.

oss-bucket-policy-no-any-anonymous

Checks whether the authorization policy of each OSS bucket does not grant read or write permissions to anonymous accounts. If so, the evaluation result is Compliant. If no authorization policy is configured for an OSS bucket, the evaluation result is also Compliant.