Help Center/ Config/ User Guide/ Resource Compliance/ Built-In Policies/ Object Storage Service/ OBS Bucket Policies Do Not Allow Public Write Access
Updated on 2025-08-25 GMT+08:00

OBS Bucket Policies Do Not Allow Public Write Access

Rule Details

Table 1 Rule details

Parameter

Description

Rule Name

obs-bucket-public-write-policy-check

Identifier

obs-bucket-public-write-policy-check

Description

If an OBS bucket allows public write access, this bucket is non-compliant.

Tag

obs, access-analyzer-verified

Trigger Type

Configuration change

Filter Type

obs.buckets

Rule Parameters

None

Application Scenarios

A bucket policy applies to the configured OBS bucket and objects in the bucket. You can use bucket policies to control the access of IAM users or other account to your OBS buckets. You are advised to apply the principle of least privilege to ensure that a bucket policy only grants necessary permissions for certain tasks.

Solution

Modify policies of non-compliant buckets with the visual editor or the JSON view to block the unintended writes.

Rule Logic

  • If an OBS bucket has a policy that allows write access from other accounts, this bucket is non-compliant.
  • If an OBS bucket has an ACL that allows write access from other principles in addition to the current account and the log delivery user groups of the bucket, this bucket is noncompliant.
  • If an OBS bucket has neither a policy nor an ACL as described above, this bucket is compliant.