This repository has been archived by the owner on Jan 23, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #86 from aquasecurity/liamg-aws-mfa
AWS IAM MFA enforcement and improved policy parsing/handling
- Loading branch information
Showing
26 changed files
with
513 additions
and
243 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
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,25 +1,37 @@ | ||
package iam | ||
|
||
import "github.com/aquasecurity/defsec/types" | ||
|
||
type IAM struct { | ||
PasswordPolicy PasswordPolicy | ||
Policies []Policy | ||
GroupPolicies []GroupPolicy | ||
UserPolicies []UserPolicy | ||
RolePolicies []RolePolicy | ||
Groups []Group | ||
Users []User | ||
Roles []Role | ||
} | ||
|
||
type Policy struct { | ||
Document PolicyDocument | ||
types.Metadata | ||
Name types.StringValue | ||
Document types.StringValue | ||
} | ||
|
||
type GroupPolicy struct { | ||
Document PolicyDocument | ||
type Group struct { | ||
types.Metadata | ||
Name types.StringValue | ||
Users []User | ||
Policies []Policy | ||
} | ||
|
||
type UserPolicy struct { | ||
Document PolicyDocument | ||
type User struct { | ||
types.Metadata | ||
Name types.StringValue | ||
Groups []Group | ||
Policies []Policy | ||
} | ||
|
||
type RolePolicy struct { | ||
Document PolicyDocument | ||
type Role struct { | ||
types.Metadata | ||
Name types.StringValue | ||
Policies []Policy | ||
} |
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.