Skip to content

Commit

Permalink
Remove unused debug code
Browse files Browse the repository at this point in the history
  • Loading branch information
christophetd committed May 31, 2023
1 parent e571304 commit 287cfc0
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions internal/aws/iam_evaluation/policy_parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,7 @@ func ParseRoleTrustPolicy(policy string) (*Policy, error) {
}
resultPolicy.Statements = append(resultPolicy.Statements, statement)
}

resultPolicy.Authorize(&AuthorizationContext{
Action: "sts:AssumeRole",
Principal: &Principal{
Type: PrincipalTypeAWS,
ID: "arn:aws:iam::123456789012:root",
},
ContextKeys: map[string]string{
"aws:SourceIP": "D",
},
})


return &resultPolicy, nil
}

Expand Down

0 comments on commit 287cfc0

Please sign in to comment.