Control: 2.1.5 Disable public (anonymous) access to IBM Cloud Object Storage buckets
Description
You can disable public (anonymous) access to IBM Cloud Object Storage buckets.
Remediation
From Console
To disable public access for buckets, complete the following steps:
- Log in to IBM Cloud.
- From the Menu bar, click Manage > Access (IAM).
- Click Access groups.
- Click Public Access to see a list of all public access policies currently in use.
- Find the policy that corresponds to the bucket that you want to return to enforced access control.
- From the list of actions, select Remove.
- Confirm that you want to remove the policy. The policy is removed from the bucket.
Usage
Run the control in your terminal:
powerpipe control run ibm_compliance.control.cis_v100_2_1_5
Snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run ibm_compliance.control.cis_v100_2_1_5 --share
SQL
This control uses a named query:
with account_public_access as ( select name, id, account_id, count(*) as public_access_grp_no from ibm_iam_access_group where name = 'Public Access' group by name,id,account_id)select id as resource, case when name is null then 'ok' else 'alarm' end as status, case when name is null then 'No public access group configured in account.' else name || ' group configured in account.' end as reason, account_idfrom account_public_access;