Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

S3 Bucket policy evaluate #167

Open
lijh-cn opened this issue Nov 29, 2024 · 0 comments
Open

S3 Bucket policy evaluate #167

lijh-cn opened this issue Nov 29, 2024 · 0 comments

Comments

@lijh-cn
Copy link
Contributor

lijh-cn commented Nov 29, 2024

Describe the bug
In the S3Bucket.py file, the functions policyAllowsPublicRead and policyAllowsPublicWrite use Iam.simulate_principal_policy to evaluate if the bucket is public accessible. But Iam policy simulator can't evaluate resource policy. So these two functions won't work.

I suggest to just check if the bucket is public accessible by using s3: get-bucket-policy-status api to check if the bucket is public or not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant