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

Update GenericResourceWildcardPolicyRule to use REGEX_CONTAINS_WILDCARD #227

Merged

Conversation

w0rmr1d3r
Copy link
Member

@w0rmr1d3r w0rmr1d3r commented May 24, 2022

After doing some internal research of data, the Generic rule GenericResourceWildcardPolicyRule flagged more resources that the intended when it was first created. We found out as well that it was overlapping with other rules such as IAMRoleWildcardActionOnPolicyRule due to the regexes being used.

[1.11.0]

Additions

  • New regex REGEX_CONTAINS_WILDCARD to check for any wildcard

Updates

  • GenericResourceWildcardPolicyRule now uses REGEX_CONTAINS_WILDCARD instead of REGEX_HAS_STAR_OR_STAR_AFTER_COLON.
  • Bump dev dependency moto to ==3.1.9.

@w0rmr1d3r w0rmr1d3r self-assigned this May 24, 2022
@w0rmr1d3r w0rmr1d3r marked this pull request as ready for review May 24, 2022 13:21
@w0rmr1d3r w0rmr1d3r merged commit 2154f25 into master May 30, 2022
@w0rmr1d3r w0rmr1d3r deleted the update_GenericResourceWildcardPolicyRule_with_wildcard branch May 30, 2022 13:45
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.

3 participants