Ensure that Object Storage Service (OBS) buckets are not publicly accessible to prevent unauthorized access to stored objects.
Risk
Publicly accessible OBS buckets allow anyone on the internet to list, read, or modify stored objects, potentially exposing sensitive data to unauthorized access.
Run this check with Prowler CLI
prowler huaweicloud --checks obs_bucket_public_access
Recommendation
Remove public access permissions from OBS buckets and use IAM policies for controlled access.
Remediation
CLI
obsutil chattri obs://<bucket_name> -acl=private
Other
- Log on to the Huawei Cloud console.
- Navigate to Object Storage Service.
- Select the bucket.
- Click the Permissions tab.
- Remove any
public readorpublic read/writepermissions. - Click Save.
Source Code
Resource Type
NotDefined