- 重要な情報
- アプリ内
- インフラストラクチャー
- アプリケーションパフォーマンス
- 継続的インテグレーション
- ログ管理
- セキュリティ
- UX モニタリング
- 管理
Update your bucket policy as the contents of your Amazon S3 bucket are publicly accessible.
Unintentionally exposed Amazon S3 buckets have led to numerous data breaches and leaks. When misconfigured, an S3 bucket policy can permit anyone to download the contents of an Amazon S3 bucket.
Ensure that there is a valid business justification as to why the bucket and all of its contents have been made public. If there is no valid reason, follow these steps to prevent public access.
Follow the Controlling access to a bucket with user policies docs to edit your existing policy and set the policy permissions to private.
delete-bucket-policy
command to fully remove any public access to the bucket.aws s3api delete-bucket-policy \
--bucket insert-bucket-name-here
put-bucket-policy
command.aws s3api put-bucket-policy
--bucket insert-bucket-name-here
--policy file://insert-bucket-policy-file-name-here.json