forked from duo-labs/parliament
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removes variables from arn when checking buckets (duo-labs#185)
* When checking a bucket arn the presence of a / was flagged as not a match. Because bucket resource arns can contain variables which in turn can contain / (e.g. ["arn:aws:s3:::bucket/${aws:PrincipalTag/department}"]) as seen https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_variables.html#policy-vars-wheretouse this is a false flag. * This change removes the variables from the arn before checking the presence of a / * Also updates variable removal code from is_arn_strictly_valid which did not account for a / * Fixes duo-labs#146
- Loading branch information
1 parent
58b59d4
commit 3873cf5
Showing
2 changed files
with
11 additions
and
4 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