Skip to content

Commit

Permalink
Add column account_password_present to aws_iam_account_summary ta…
Browse files Browse the repository at this point in the history
…ble (#2346)
  • Loading branch information
dbermuehler authored Nov 26, 2024
1 parent da744b1 commit 28d08ae
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions aws/table_aws_iam_account_summary.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ type awsIamAccountSummary struct {
AccessKeysPerUserQuota int32
AccountAccessKeysPresent int32
AccountMFAEnabled bool
AccountPasswordPresent bool
AccountSigningCertificatesPresent int32
AssumeRolePolicySizeQuota int32
AttachedPoliciesPerGroupQuota int32
Expand Down Expand Up @@ -72,6 +73,11 @@ func tableAwsIamAccountSummary(_ context.Context) *plugin.Table {
Type: proto.ColumnType_BOOL,
Transform: transform.FromField("AccountMFAEnabled"),
},
{
Name: "account_password_present",
Description: "Specifies whether the root password is set for the account.",
Type: proto.ColumnType_BOOL,
},
{
Name: "account_signing_certificates_present",
Description: "Specifies the number of account signing certificates present.",
Expand Down Expand Up @@ -245,6 +251,7 @@ func listAccountSummary(ctx context.Context, d *plugin.QueryData, _ *plugin.Hydr
AccessKeysPerUserQuota: summaryMap["AccessKeysPerUserQuota"],
AccountAccessKeysPresent: summaryMap["AccountAccessKeysPresent"],
AccountMFAEnabled: summaryMap["AccountMFAEnabled"] == int32(1),
AccountPasswordPresent: summaryMap["AccountPasswordPresent"] == int32(1),
AccountSigningCertificatesPresent: summaryMap["AccountSigningCertificatesPresent"],
AssumeRolePolicySizeQuota: summaryMap["AssumeRolePolicySizeQuota"],
AttachedPoliciesPerGroupQuota: summaryMap["AttachedPoliciesPerGroupQuota"],
Expand Down

0 comments on commit 28d08ae

Please sign in to comment.