-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix GenericWildcardPrincipalRule and refactor kms_key_wildcard_principal * fix tests * update GenericWildcardPrincipalRule message * update PartialWildcardPrincipalRule message * update version, changelog and docs * Fix to crrectly handle canonical IDs and account IDs * fix nit
- Loading branch information
Showing
18 changed files
with
127 additions
and
106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
VERSION = (1, 11, 0) | ||
VERSION = (1, 12, 0) | ||
|
||
__version__ = ".".join(map(str, VERSION)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -94,47 +94,7 @@ def test_load_filters_work_with_several_rules(template_two_roles_dict, test_file | |
), | ||
Failure( | ||
granularity=RuleGranularity.RESOURCE, | ||
reason="RootRoleTwo should not allow wildcard in principals or account-wide principals (principal: 'arn:aws:iam::123456789:user/[email protected]')", | ||
risk_value=RuleRisk.MEDIUM, | ||
rule="PartialWildcardPrincipalRule", | ||
rule_mode=RuleMode.BLOCKING, | ||
actions=None, | ||
resource_ids={"RootRoleTwo"}, | ||
resource_types={"AWS::IAM::Role"}, | ||
), | ||
Failure( | ||
granularity=RuleGranularity.RESOURCE, | ||
reason="RootRoleTwo should not allow wildcard in principals or account-wide principals (principal: 'arn:aws:iam::123456789:user/[email protected]')", | ||
risk_value=RuleRisk.MEDIUM, | ||
rule="PartialWildcardPrincipalRule", | ||
rule_mode=RuleMode.BLOCKING, | ||
actions=None, | ||
resource_ids={"RootRoleTwo"}, | ||
resource_types={"AWS::IAM::Role"}, | ||
), | ||
Failure( | ||
granularity=RuleGranularity.RESOURCE, | ||
reason="RootRoleTwo should not allow wildcard in principals or account-wide principals (principal: 'arn:aws:iam::123456789:root')", | ||
risk_value=RuleRisk.MEDIUM, | ||
rule="PartialWildcardPrincipalRule", | ||
rule_mode=RuleMode.BLOCKING, | ||
actions=None, | ||
resource_ids={"RootRoleTwo"}, | ||
resource_types={"AWS::IAM::Role"}, | ||
), | ||
Failure( | ||
granularity=RuleGranularity.RESOURCE, | ||
reason="RootRoleTwo should not allow wildcard in principals or account-wide principals (principal: 'arn:aws:iam::999999999:role/[email protected]')", | ||
risk_value=RuleRisk.MEDIUM, | ||
rule="PartialWildcardPrincipalRule", | ||
rule_mode=RuleMode.BLOCKING, | ||
actions=None, | ||
resource_ids={"RootRoleTwo"}, | ||
resource_types={"AWS::IAM::Role"}, | ||
), | ||
Failure( | ||
granularity=RuleGranularity.RESOURCE, | ||
reason="RootRoleTwo should not allow wildcard in principals or account-wide principals (principal: 'arn:aws:iam::123456789:user/[email protected]')", | ||
reason="RootRoleTwo should not allow wildcard, account-wide or root in resource-id like 'arn:aws:iam::12345:root' at 'arn:aws:iam::123456789:root'", | ||
risk_value=RuleRisk.MEDIUM, | ||
rule="PartialWildcardPrincipalRule", | ||
rule_mode=RuleMode.BLOCKING, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.