(user string, permissions []string)
| 169 | } |
| 170 | |
| 171 | func UserPermissionStats(user string, permissions []string) Issue { |
| 172 | return Issue{ |
| 173 | ID: STATS_USER_PERM, |
| 174 | Name: AvailableChecks[STATS_USER_PERM], |
| 175 | Severity: severity.Informational, |
| 176 | Category: category.LeastPrivilege, |
| 177 | Description: fmt.Sprintf( |
| 178 | "User '%s' %v", |
| 179 | user, |
| 180 | strings.Join(permissions, ", and "), |
| 181 | ), |
| 182 | Resources: []resource.Resource{ |
| 183 | { |
| 184 | ID: user, |
| 185 | Kind: resource.UserAccount, |
| 186 | }, |
| 187 | }, |
| 188 | Remediation: "Please examine if the permissions for the given user match your expectations", |
| 189 | } |
| 190 | } |
| 191 | |
| 192 | func ApplicationRestrictionsDisabled(org string) Issue { |
| 193 | return Issue{ |
no outgoing calls
no test coverage detected