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

WIP: Improve is_internet_accessible() accuracy for Condition blocks #162

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

tweedge
Copy link
Contributor

@tweedge tweedge commented Oct 6, 2022

Resolves #150.

This is a demo of more accurate conditions handling within statement.py by addition of a new Condition class. This allows us to track the location of each condition entry, and use that to adhere to AWS' evaluation logic. This information is only exposed within the statement.py, and external references to these conditions (ex. whos_allowed() on a Policy object) return ConditionTuple namedtuples as normal, to hopefully avoid breaking downstream projects.

Open to any/all feedback and revision suggestions :)

@tweedge
Copy link
Contributor Author

tweedge commented Oct 6, 2022

Not sure what's going on with flake8 here but seems unrelated to the change ... ?

@tweedge
Copy link
Contributor Author

tweedge commented Oct 13, 2022

Whoops sorry pinged the wrong person ;-;

Hi @patricksanders - I don't see too much recent GitHub history for you, but if you have bandwidth would love to get feedback on the approach taken here. Happy to revise w/ feedback, clean it up, etc.!

@patricksanders
Copy link
Collaborator

Hey @tweedge! Sorry for the delay. Let me take a look.

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

Successfully merging this pull request may close these issues.

Wildcard in Account ID results in false positive for Internet accessibility
2 participants