Implement a rule to block S3 public access at bucket levels.
Rule | S3 public access should be blocked at bucket levels |
Framework | GxP 21 CFR Part 11 |
Severity | ✔ High |
Rule Description:
This rule is aimed at ensuring compliance with GxP regulations, specifically 21 CFR Part 11, which governs electronic records and signatures in the pharmaceutical industry. It specifies that public access to S3 buckets should be restricted to prevent any unauthorized access, modification, or deletion of sensitive GxP data stored in those buckets.
Troubleshooting Steps:
The following steps can be taken to troubleshoot and address any issues related to blocking public access to S3 buckets:
Necessary Codes (If Applicable):
If necessary, the following code can be used to enable the block public access settings at the bucket level:
aws s3api put-public-access-block --bucket bucket-name --public-access-block-configuration "BlockPublicAcls=true,IgnorePublicAcls=true,BlockPublicPolicy=true,RestrictPublicBuckets=true"
Ensure to replace
bucket-name
with the actual name of the S3 bucket.Step-by-Step Guide for Remediation:
Follow these steps to remediate the issue and block public access to the S3 bucket:
It is also recommended to periodically review the bucket policies, IAM policies, and ACL permissions to ensure ongoing compliance with the rule.
Note: The provided instructions assume that you have the necessary permissions to access and modify S3 bucket settings.